본문으로 건너뛰기
cccskills
무료GitHub에 공개

session-report

Analyze Claude Code session transcripts and create an interactive HTML usage report. Explore token consumption, cache performance, subagents, skills, and costly prompts, with findings and improvement suggestions tied to the actual usage data.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

Generate an explorable HTML report of Claude Code session usage (tokens, cache, subagents, skills, expensive prompts) from ~/.claude/projects transcripts.

설치 방법 보기

이럴 때 유용합니다

  • Reviewing token usage over a chosen period
  • Comparing consumption across projects and skills
  • Investigating cache performance and breaks
  • Finding costly prompts and subagent activity

포함된 파일(3)

  • SKILL.md3.1 KB
  • analyze-sessions.mjs27.6 KB
  • template.html25.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Session Report

Produce a self-contained HTML report of Claude Code usage and save it to the current working directory.

Steps

  1. Get data. Run the bundled analyzer (default window: last 7 days; honor a different range if the user passed one, e.g. 24h, 30d, or all). The script analyze-sessions.mjs lives in the same directory as this SKILL.md — use its absolute path:

    node <skill-dir>/analyze-sessions.mjs --json --since 7d > /tmp/session-report.json
    

    For all-time, omit --since.

  2. Read /tmp/session-report.json. Skim overall, by_project, by_subagent_type, by_skill, cache_breaks, top_prompts.

  3. Copy the template (also bundled alongside this SKILL.md) to the output path in the current working directory:

    cp <skill-dir>/template.html ./session-report-$(date +%Y%m%d-%H%M).html
    
  4. Edit the output file (use Edit, not Write — preserve the template's JS/CSS):

    • Replace the contents of <script id="report-data" type="application/json"> with the full JSON from step 1. The page's JS renders the hero total, all tables, bars, and drill-downs from this blob automatically.
    • Fill the <!-- AGENT: anomalies --> block with 3–5 one-line findings. Express figures as a % of total tokens wherever possible (total = overall.input_tokens.total + overall.output_tokens). One line per finding, exact markup:
      <div class="take bad"><div class="fig">41.2%</div><div class="txt"><b>cc-monitor</b> consumed 41% of the week across just 3 sessions</div></div>
      
      Classes: .take bad for waste/anomalies (red), .take good for healthy signals (green), .take info for neutral facts (blue). The .fig is one short number (a %, a count, or a multiplier like 12×). The .txt is one plain-English sentence naming the project/skill/prompt; wrap the subject in <b>. Look for: a project or skill eating a disproportionate share, cache-hit <85%, a single prompt >2% of total, subagent types averaging >1M tokens/call, cache breaks clustering.
    • Fill the <!-- AGENT: optimizations --> block (at the bottom of the page) with 1–4 <div class="callout"> suggestions tied to specific rows (e.g. "/weekly-status spawned 7 subagents for 8.1% of total — scope it to fewer parallel agents").
    • Do not restructure existing sections.
  5. Report the saved file path to the user. Do not open it or render it.

Notes

  • The template is the source of interactivity (sorting, expand/collapse, block-char bars). Your job is data + narrative, not markup.
  • Keep commentary terse and specific — reference actual project names, numbers, timestamps from the JSON.
  • top_prompts already includes subagent tokens and rolls task-notification continuations into the originating prompt.
  • If the JSON is >2MB, trim top_prompts to 100 entries and cache_breaks to 100 before embedding (they should already be capped).

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

access

무료

Manage who can contact an assistant through the iMessage channel. Update approved senders, approve pairing codes, and configure direct message and group access rules by editing the channel’s local settings.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Add or remove approved iMessage senders
  • Approve or reject a pending pairing code
  • Set group access and mention requirements
anthropics/claude-plugins-official4.3만2026년 10월 18일 업데이트

access

무료

Manage access to a Telegram channel integration by approving pairing codes, updating allowed users, and setting direct-message and group policies. Check pending requests and adjust reply behavior through configuration files read by the channel server.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Approve or deny a Telegram pairing request
  • Review and update allowed users
  • Change direct-message access policies
anthropics/claude-plugins-official4.3만2026년 10월 18일 업데이트

access

무료

Manage access to a Discord channel integration by approving pairing codes, updating allowed users, and setting direct-message and channel policies. Check pending requests and adjust reply behavior through configuration files read by the channel server.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Approve or deny a Discord pairing request
  • Review and update allowed users
  • Change direct-message access policies
anthropics/claude-plugins-official4.3만2026년 10월 18일 업데이트

Design autonomous agents for Claude Code plugins, including when they should run, what they should do, and which tools they may use. Provides file templates and guidance for validating configuration and testing behavior.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Create a code review agent
  • Clarify when an agent should run
  • Limit the tools an agent can access
anthropics/claude-plugins-official4.3만2026년 10월 18일 업데이트

Add interactive panels to an MCP server so users can select records, view charts, or follow progress inside a conversation. The skill guides tool connections, interface implementation, sandbox restrictions, and testing in hosts that support these panels.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Build a searchable contact or file picker
  • Display charts and previews inside a conversation
  • Show live progress for a long-running job
anthropics/claude-plugins-official4.3만2026년 10월 18일 업데이트

Plan and build an MCP server, a connection that lets Claude use external tools. Choose hosting, tool structure, authentication, and a framework, then scaffold a server or hand off to specialized packaging and interface skills.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Connect a cloud API to Claude
  • Choose how to run and distribute an MCP server
  • Organize tools for an API with many actions
anthropics/claude-plugins-official4.3만2026년 10월 18일 업데이트

anthropics의 스킬 모두 보기

이 스킬의 문제 신고