मुख्य सामग्री पर जाएँ
Skillpedia
विविध46k · #6352

receipts

यह क्या करती है

यह स्किल आपके कंप्यूटर पर पहले से सेव Claude Code सेशन रिकॉर्ड पढ़ती है और लिखती है कि आपने उसे किस काम में लगाया। यह अपनी समीक्षा करने या मैनेजर को उपयोग समझाने के लिए है।

कब इस्तेमाल करें

  • ✓जब आप मैनेजर को दिखाना चाहें कि आप Claude Code का उपयोग कैसे कर रहे हैं।
  • ✓जब परफ़ॉर्मेंस चेक-इन के लिए अपने हालिया AI काम की निजी समीक्षा चाहिए।
  • ✓जब आप जानना चाहें कि पिछले एक महीने में आपने Claude Code किन कामों में लगाया।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/anthropics/claude-plugins-official/blob/main/plugins/receipts/skills/receipts/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मुझे पिछले एक महीने के मेरे Claude Code उपयोग की रिपोर्ट बनाकर दीजिए।”

हर हफ़्ते 5 नई skills, 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 जाँच केवल लोकल इतिहास का उपयोग करती है।

कौन-से समय अंतराल चुने जा सकते हैं?

आप एक हफ़्ता, एक महीना, एक तिमाही, एक साल या कुछ दिनों की संख्या माँग सकते हैं।

क्या रिपोर्ट को एक प्रोजेक्ट तक सीमित कर सकते हैं?

हाँ। आप प्रोजेक्ट का नाम दे सकते हैं, और तब कुल आँकड़े केवल मेल खाने वाले प्रोजेक्ट तक सीमित होंगे।

जानकारी

लेखक का मूल विवरण

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
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills