session-report
하는 일
Claude Code를 얼마나 썼고 사용량이 어디에 쓰였는지 보여 주는 독립형 웹 페이지를 만듭니다. 사용 패턴을 이해하려는 사람을 위한 스킬입니다.
사용하는 경우
- ✓어떤 프로젝트나 프롬프트가 토큰을 가장 많이 썼는지 보고 싶을 때.
- ✓캐시 사용이 잘 되고 있는지 확인하고 싶을 때.
- ✓지난 일주일 동안 Claude Code 활동을 시각적으로 요약하고 싶은 경우.
스킬 링크
https://github.com/anthropics/claude-plugins-official/blob/main/plugins/session-report/skills/session-report/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“지난 7일 동안의 Claude Code 사용량 보고서를 보여 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
번들된 스크립트가 세션 기록을 읽고 합계를 모읍니다. AI는 그 수치와 몇 가지 짧은 발견 사항으로 템플릿 페이지를 채웁니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Session Report
Produce a self-contained HTML report of Claude Code usage and save it to the current working directory.
Steps
Get data. Run the bundled analyzer (default window: last 7 days; honor a different range if the user passed one, e.g.
24h,30d, orall). The scriptanalyze-sessions.mjslives in the same directory as this SKILL.md — use its absolute path:node <skill-dir>/analyze-sessions.mjs --json --since 7d > /tmp/session-report.jsonFor all-time, omit
--since.Read
/tmp/session-report.json. Skimoverall,by_project,by_subagent_type,by_skill,cache_breaks,top_prompts.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).htmlEdit 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:
Classes:<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>.take badfor waste/anomalies (red),.take goodfor healthy signals (green),.take infofor neutral facts (blue). The.figis one short number (a %, a count, or a multiplier like12×). The.txtis 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-statusspawned 7 subagents for 8.1% of total — scope it to fewer parallel agents"). - Do not restructure existing sections.
- Replace the contents of
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_promptsalready includes subagent tokens and rolls task-notification continuations into the originating prompt.- If the JSON is >2MB, trim
top_promptsto 100 entries andcache_breaksto 100 before embedding (they should already be capped).
자주 묻는 질문
어떤 기간을 쓸 수 있나요?
기본값은 최근 7일이지만, 24시간, 30일, 전체 기간 같은 다른 범위를 요청할 수 있습니다.
보고서는 어디에 저장되나요?
작업 중인 폴더에 HTML 파일로 저장됩니다.
발견 사항 섹션에는 무엇이 나오나요?
전체 토큰 중 비율로 표시된 수치와 함께 짧은 발견 사항 3~5개를 보여 줍니다.
상세 정보
작성자의 원본 설명
Generate an explorable HTML report of Claude Code session usage (tokens, cache, subagents, skills, expensive prompts) from ~/.claude/projects transcripts.
인기도
- GitHub 스타
- 46k
- 순위
- #6353
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
access
46kDiscord 채널에서 누가 에이전트에게 메시지를 보낼 수 있는지, 페어링 승인과 허용 목록을 포함해 관리하도록 돕습니다.
configure
46k봇 토큰을 저장하고 누가 어시스턴트에 닿을 수 있는지 확인해, Discord 채널을 어시스턴트에 연결하도록 설정합니다.
access
46kiMessage 채널에서 누가 에이전트에게 문자를 보낼 수 있는지, 승인과 허용 목록을 포함해 관리하도록 돕습니다.
configure
46kFull Disk Access를 포함해 iMessage 채널 설정을 확인하고, 누가 어시스턴트에 닿을 수 있는지 설명합니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.