본문으로 건너뛰기
Skillpedia
기타46k · #6352

receipts

하는 일

컴퓨터에 이미 저장된 Claude Code 세션 기록을 읽어, 무엇에 사용했는지 보고서로 작성합니다. 스스로 돌아보거나 관리자에게 사용 내역을 설명하려는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓관리자에게 Claude Code를 어떻게 써 왔는지 보여 주고 싶을 때.
  • ✓성과 면담을 위해 최근 AI 작업을 개인적으로 돌아보고 싶을 때.
  • ✓지난 한 달 동안 Claude Code를 무엇에 썼는지 궁금한 경우.

스킬 링크

https://github.com/anthropics/claude-plugins-official/blob/main/plugins/receipts/skills/receipts/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/anthropics/claude-plugins-official/blob/main/plugins/receipts/skills/receipts/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“지난 한 달 동안의 Claude Code 사용량 보고서를 만들어 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

로컬 스크립트가 저장된 세션 파일을 훑고 git 기록과 대조합니다. 그다음 AI가 확인된 수치를 바탕으로 짧은 요약을 씁니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

/receipts — personal Claude Code impact report

Generates a markdown report of one developer's own Claude Code activity, built entirely from local data:

  • Source data: this machine's session transcripts at ~/.claude/projects/**/*.jsonl (every session, every project, already on disk — nothing to set up).
  • Cost: the mining step is a local Node script — file I/O + regex, zero API calls. The only model call is one final write-up over a small (~10-20KB) JSON summary, regardless of how much history was scanned.
  • Cross-reference: local git log per repo (no network) to sanity-check commit activity against CC session activity.

Step 1 — figure out the period

Parse $ARGUMENTS:

  • "week" → 7, "month" → 30 (default if nothing given), "quarter" → 90, "year" → 365
  • a bare number → that many days
  • a project name/substring (e.g. "for anthropic") → pass through as --repo <substr>. It matches against the resolved project name, case-insensitively, and scopes the entire report — totals included — to matching projects.

Step 2 — run the miner

The script mine-transcripts.mjs ships alongside this SKILL.md, under scripts/. Use its absolute path:

node <skill-dir>/scripts/mine-transcripts.mjs --days <N> [--repo <substr>] --html /tmp/cc-receipt.html

Use that fixed temp path — the real since/until are computed by the script and only known once it has run, so don't try to put them in this filename. Steps 4 and 5 name the final files, by which point the JSON has the dates.

This prints one JSON object to stdout and writes a self-contained, styled HTML "receipt" to the --html path — built deterministically from the same data (no extra model cost). The receipt carries an Export CSV button that downloads the by-project table; the CSV is embedded in the page, so it works offline and there's nothing to wire up. Do not separately Read any *.jsonl transcript files — the script has already extracted everything relevant. Re-reading raw transcripts would burn a huge number of tokens for no benefit.

It reads every transcript file in the window and shells out to git, so it takes a few seconds — roughly 1s for a week, 5s for a year on a large history. That's local CPU time, not API spend. No need to warn the user.

What the numbers mean

Everything here is scoped to work done with Claude Code, mapped to the project it was done on. Two rules follow from that, and they explain most of the shapes below:

  • Claude Code's own machinery is not the dev's work. The agent's scratchpad, its per-session tool output, and ~/.claude are excluded. Files Claude wrote to talk to itself are not files the dev shipped.
  • A project is where work landed, not where the shell was. Each session is attributed to the project(s) its file operations touched — reads included, since reading a repo to answer a question is work in that repo — resolved to the git root, or to the containing directory when it isn't a repo. Subagents share their parent's session, so their work ladders into the same project automatically. There is no "delegated" bucket; delegation is a mechanism, not a kind of work.
{
  "generatedAt": "2026-06-08T17:04:22.000Z",
  "userName": "Ada Lovelace" | null,  // `git config --global user.name`, to personalize the receipt
  "since": "2026-05-10", "until": "2026-06-08", "periodDays": 30,
  // How much was read to build this — provenance, not an achievement. Don't
  // put these in the report; they are not sessions and not files touched.
  "filesScanned": 189, "linesScanned": 36536,
  "totals": {
    "sessions": 131, "prompts": 681,
    "activeDays": 24, "calendarDays": 30,   // activeDays <= calendarDays, always
    "filesTouched": 24, "linesTouched": 4447,
    "prCreateCmds": 3,      // `gh pr create` commands CC ran
    // There is no `git commit` counter: a Bash call carries no working
    // directory, so a commit in a throwaway fixture repo under /tmp can't be
    // told apart from one in the dev's project. Commits are counted against
    // git instead — see commitsWithOurWork.
    // Commits whose changed files include something CC touched, de-duplicated
    // by SHA. NOT "commits by your git identity": that counts snapshot crons,
    // release bots and formatters running under the dev's name, and it is how
    // a report ends up claiming thousands of commits. This number requires the
    // commit to be BOTH authored by the dev AND to
자주 묻는 질문

스캔에 인터넷 연결이 필요한가요?

스킬에 따르면 스캔은 사용자 컴퓨터에서 실행되며, git 확인도 로컬 기록만 사용합니다.

어떤 기간을 고를 수 있나요?

일주일, 한 달, 분기, 1년, 또는 일 수를 지정할 수 있습니다.

보고서를 한 프로젝트로 제한할 수 있나요?

예. 프로젝트 이름을 넘기면 일치하는 프로젝트로 합계를 제한합니다.

상세 정보

작성자의 원본 설명

Generate a personal Claude Code usage & impact report ("receipts") from this machine's local session transcripts — for justifying Claude Code usage/spend to a manager, self-review, or "what have I been using this for" check-ins. Mines ~/.claude/projects locally (no extra API calls beyond one final write-up), cross-references local git history, and writes a markdown report plus a self-contained HTML receipt to your home directory. Use when the user asks for "receipts", an "impact report", "usage report", wants to "show my Claude Code activity", "prove the value of Claude Code", or runs `/receip

repo: anthropics/claude-plugins-official

인기도

GitHub 스타
46k
순위
#6352
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬