mirror of
https://github.com/anthropics/claude-plugins-official.git
synced 2026-07-28 05:33:33 +00:00
Compare commits
50 Commits
add-newrel
...
add-stackh
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc263991f0 | ||
|
|
552fbcd37e | ||
|
|
fa24b84855 | ||
|
|
3a24a3204d | ||
|
|
744fb286c6 | ||
|
|
6e42152956 | ||
|
|
bcedb45269 | ||
|
|
fc3a0dc635 | ||
|
|
c823e1fc24 | ||
|
|
bc1049c6c8 | ||
|
|
ee11fbeea9 | ||
|
|
2a8836d310 | ||
|
|
97f6beffed | ||
|
|
70f6b1a8ab | ||
|
|
494ec7c032 | ||
|
|
4261908617 | ||
|
|
aafd0190d1 | ||
|
|
35dad4f25f | ||
|
|
5808930e7e | ||
|
|
56467552d4 | ||
|
|
ac8d849bd7 | ||
|
|
fa62fc3640 | ||
|
|
7d5b592a49 | ||
|
|
84d8a4c765 | ||
|
|
a03f1f5191 | ||
|
|
e5e1497f24 | ||
|
|
8d29bdc838 | ||
|
|
730bea9a65 | ||
|
|
608e07e6d5 | ||
|
|
defad4c4b9 | ||
|
|
a21a9e781d | ||
|
|
9ddfad2e99 | ||
|
|
69fd5a1a38 | ||
|
|
3b00b44438 | ||
|
|
ca3a8550d3 | ||
|
|
c484581437 | ||
|
|
c9b190d015 | ||
|
|
ab17f573eb | ||
|
|
10b20b78dc | ||
|
|
0ad2369b5d | ||
|
|
75cf64b482 | ||
|
|
e387ab4a52 | ||
|
|
ce6b489327 | ||
|
|
d01a59d362 | ||
|
|
b822a2974d | ||
|
|
a41296f255 | ||
|
|
3189d70500 | ||
|
|
616c30b7d8 | ||
|
|
f186518811 | ||
|
|
85abe0edea |
@@ -173,7 +173,7 @@
|
||||
"url": "https://github.com/amd/skills.git",
|
||||
"path": "skills",
|
||||
"ref": "main",
|
||||
"sha": "7ef8dd99ffd6d82208f1a0ae211a782ec2edee82"
|
||||
"sha": "228980933abd97a8aa4a2656c8ea3ae9e8b590c7"
|
||||
},
|
||||
"strict": false,
|
||||
"skills": [
|
||||
@@ -207,7 +207,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/apolloio/apollo-mcp-plugin.git",
|
||||
"sha": "1fa5c26b6c99283883db5858804234fbe1c10818"
|
||||
"sha": "2adde980e45f421b7e9383d92870455627936bce"
|
||||
},
|
||||
"homepage": "https://www.apollo.io/"
|
||||
},
|
||||
@@ -253,7 +253,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/astronomer/agents.git",
|
||||
"sha": "5432198caa8ef9ec33218124bcd44016db2d31bf"
|
||||
"sha": "87d780cd5dc85a25c7ceb1f1720031fa4e48f781"
|
||||
},
|
||||
"homepage": "https://github.com/astronomer/agents"
|
||||
},
|
||||
@@ -306,7 +306,7 @@
|
||||
"url": "https://github.com/auth0/agent-skills.git",
|
||||
"path": "plugins/auth0",
|
||||
"ref": "main",
|
||||
"sha": "de929462cae879bab1c880fc4b9ad3645bf8588b"
|
||||
"sha": "d1b19854e60c6dfde048df91e4d97e536dba2491"
|
||||
},
|
||||
"homepage": "https://auth0.com"
|
||||
},
|
||||
@@ -367,7 +367,7 @@
|
||||
"url": "https://github.com/aws/agent-toolkit-for-aws.git",
|
||||
"path": "plugins/aws-core",
|
||||
"ref": "main",
|
||||
"sha": "eb96852087e2b2757b67d358d6d38c17c5c28205"
|
||||
"sha": "493b45323dd3163fb561792b9e091de3d4966709"
|
||||
},
|
||||
"homepage": "https://github.com/aws/agent-toolkit-for-aws"
|
||||
},
|
||||
@@ -565,7 +565,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/buildkite/skills.git",
|
||||
"sha": "369d93ebb0d6f9112615b7b8693f98f6fc241e5e"
|
||||
"sha": "e854e111766e9494d742fe6836d5b6ecefd10b68"
|
||||
},
|
||||
"homepage": "https://buildkite.com"
|
||||
},
|
||||
@@ -629,7 +629,7 @@
|
||||
"url": "https://github.com/carta/plugins.git",
|
||||
"path": "plugins/carta-investors",
|
||||
"ref": "main",
|
||||
"sha": "a007723c7149acab9f9357eaa74b98635bb63934"
|
||||
"sha": "80da56af79af8779f0dd1a08b8eaaf372fa48c9c"
|
||||
},
|
||||
"homepage": "https://carta.com"
|
||||
},
|
||||
@@ -656,7 +656,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/ChromeDevTools/chrome-devtools-mcp.git",
|
||||
"sha": "dcbaf495183a34d9bb0e3d9e8f3e566de6b425f8"
|
||||
"sha": "b4546ef86b86e8733f88f075169d2124f436dd1e"
|
||||
},
|
||||
"homepage": "https://github.com/ChromeDevTools/chrome-devtools-mcp"
|
||||
},
|
||||
@@ -885,7 +885,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/coderabbitai/skills.git",
|
||||
"sha": "2fd091d9582deccf19929e21f934921d0e8f686e"
|
||||
"sha": "c61c4908d36dda6fb08a343cc8b19c59fbb47de3"
|
||||
},
|
||||
"homepage": "https://github.com/coderabbitai/skills"
|
||||
},
|
||||
@@ -924,7 +924,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/spotify/confidence-ai-plugins.git",
|
||||
"sha": "c96d060b79e8b8068dab3ba4489be2343b7f2caf"
|
||||
"sha": "a6e3760e5c274dd273e6e4677235422f98f01f4a"
|
||||
},
|
||||
"homepage": "https://confidence.spotify.com"
|
||||
},
|
||||
@@ -1038,7 +1038,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/astronomer/agents.git",
|
||||
"sha": "5432198caa8ef9ec33218124bcd44016db2d31bf"
|
||||
"sha": "87d780cd5dc85a25c7ceb1f1720031fa4e48f781"
|
||||
},
|
||||
"homepage": "https://github.com/astronomer/agents"
|
||||
},
|
||||
@@ -1062,7 +1062,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/astronomer/agents.git",
|
||||
"sha": "5432198caa8ef9ec33218124bcd44016db2d31bf"
|
||||
"sha": "87d780cd5dc85a25c7ceb1f1720031fa4e48f781"
|
||||
},
|
||||
"homepage": "https://github.com/astronomer/agents"
|
||||
},
|
||||
@@ -1175,7 +1175,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/confident-ai/deepeval.git",
|
||||
"sha": "ae2cb499653628ef7b1f44337715456b680aee5f"
|
||||
"sha": "c6293c1201515293541d515a2da1b4de387e2c01"
|
||||
},
|
||||
"homepage": "https://github.com/confident-ai/deepeval"
|
||||
},
|
||||
@@ -1492,7 +1492,7 @@
|
||||
"url": "https://github.com/grafana/ai-marketplace.git",
|
||||
"path": "plugins/grafana-cloud-mcp",
|
||||
"ref": "main",
|
||||
"sha": "a5c72f2d74c640e9675eb0249526447968535015"
|
||||
"sha": "12be5634a492f73c189d466c5449d09b853ad7a4"
|
||||
},
|
||||
"homepage": "https://grafana.com"
|
||||
},
|
||||
@@ -1596,7 +1596,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/heygen-com/hyperframes.git",
|
||||
"sha": "ff3627d5d97c32b88d9faf79ad8d6126ab673074"
|
||||
"sha": "696cbdbbd0e5c83faf72c767126d4a153110f130"
|
||||
},
|
||||
"homepage": "https://hyperframes.heygen.com"
|
||||
},
|
||||
@@ -1667,7 +1667,7 @@
|
||||
"source": "github",
|
||||
"repo": "jfrog/claude-plugin",
|
||||
"commit": "259c8e718266c16e99b4f30ae9b1ed0f9f00d98d",
|
||||
"sha": "427d2e68848b2d04df586bd6be4904a5934828fb"
|
||||
"sha": "11177f6698405976ee0eecbbfb4857ed9657f19f"
|
||||
},
|
||||
"homepage": "https://jfrog.com"
|
||||
},
|
||||
@@ -1856,7 +1856,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/gemini-cli-extensions/looker.git",
|
||||
"sha": "e05aac7d0287e337ff13cfa3183f39675d67dd97"
|
||||
"sha": "8ca746f8d6b0079d1f872c96bd3e0530bf4571d3"
|
||||
},
|
||||
"homepage": "https://github.com/gemini-cli-extensions/looker"
|
||||
},
|
||||
@@ -2069,6 +2069,20 @@
|
||||
},
|
||||
"homepage": "https://miro.com"
|
||||
},
|
||||
{
|
||||
"name": "mlflow",
|
||||
"description": "Skills for tracing, evaluating, and improving AI agents with MLflow. Supports the full agent improvement loop: instrument → trace → evaluate → iterate → validate.",
|
||||
"author": {
|
||||
"name": "MLflow Team"
|
||||
},
|
||||
"category": "monitoring",
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/mlflow/skills.git",
|
||||
"sha": "c33bb3d303a2c6113bbaed6dbfe756e88e80f1df"
|
||||
},
|
||||
"homepage": "https://mlflow.org/"
|
||||
},
|
||||
{
|
||||
"name": "monday-crm",
|
||||
"description": "Run your monday CRM in plain language. Build a pipeline from scratch, start the day with a ranked deal briefing, spin up a forecast dashboard, audit board health, clean up messy data in bulk, and turn meeting notes into deal updates. Every skill writes back into monday as a real update, doc, or dashboard. Built on the official monday MCP connector.",
|
||||
@@ -2166,7 +2180,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/nvsecurity/nightvision-skills.git",
|
||||
"sha": "97c72cbcddf51ab2d8387b61c68d5d999fec645e"
|
||||
"sha": "928d334e24354161a20f91de39ca60029338ba47"
|
||||
},
|
||||
"homepage": "https://github.com/nvsecurity/nightvision-skills"
|
||||
},
|
||||
@@ -2487,7 +2501,7 @@
|
||||
"url": "https://github.com/pydantic/skills.git",
|
||||
"path": "plugins/ai",
|
||||
"ref": "main",
|
||||
"sha": "ec86ff6b8e978b7461a4cb195241cf9fa4fe5e9c"
|
||||
"sha": "97f67e13e353a9370b208c7b259dbe7c3768a80b"
|
||||
},
|
||||
"homepage": "https://github.com/pydantic/skills/tree/main/plugins/ai"
|
||||
},
|
||||
@@ -2577,7 +2591,7 @@
|
||||
"url": "https://github.com/railwayapp/railway-skills.git",
|
||||
"path": "plugins/railway",
|
||||
"ref": "main",
|
||||
"sha": "2405547f2044071c9d43bf6782edeb5d93e5bb4e"
|
||||
"sha": "191601b4954527a87f4f004eaa355c8f30a855bf"
|
||||
},
|
||||
"homepage": "https://docs.railway.com/ai/claude-code-plugin"
|
||||
},
|
||||
@@ -2606,7 +2620,7 @@
|
||||
},
|
||||
{
|
||||
"name": "receipts",
|
||||
"description": "Generate a personal Claude Code impact report from your local ~/.claude/projects transcripts, cross-referenced against your local git history — what you shipped, which projects it went to, and each project's share of your usage — for justifying usage to a manager or a self-review. Reads your session transcripts and runs read-only git commands in the projects they mention; mining is local and only a small aggregate summary (counts and project names) is sent to write the report, which is saved to your home directory and published nowhere.",
|
||||
"description": "A personal Claude Code impact report for justifying your usage to a manager or a self-review: what you shipped, which projects it went to, and each project's share of your usage. Reads your ~/.claude/projects transcripts and runs read-only git locally; only counts and project names are sent to write it up, and the report stays on your machine.",
|
||||
"author": {
|
||||
"name": "Anthropic",
|
||||
"email": "support@anthropic.com"
|
||||
@@ -2776,7 +2790,7 @@
|
||||
"url": "https://github.com/awslabs/agent-plugins.git",
|
||||
"path": "plugins/sagemaker-ai",
|
||||
"ref": "main",
|
||||
"sha": "c65ee436b0db77bb75d380aef6fbdc9b114edf2a"
|
||||
"sha": "153b28e3c10de3661b8744b80d72c3a96fcdb0ab"
|
||||
},
|
||||
"homepage": "https://github.com/awslabs/agent-plugins"
|
||||
},
|
||||
@@ -2824,7 +2838,7 @@
|
||||
"url": "https://github.com/SAP/open-ux-tools.git",
|
||||
"path": "packages/fiori-mcp-server",
|
||||
"ref": "main",
|
||||
"sha": "c288dadb279a9bb928f1e5246aac7a62efee1f6f"
|
||||
"sha": "98cd40f91ba943df42382e5216af9f6f17a1c215"
|
||||
},
|
||||
"homepage": "https://github.com/SAP/open-ux-tools/tree/main/packages/fiori-mcp-server"
|
||||
},
|
||||
@@ -2856,7 +2870,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/SAP/mdk-mcp-server.git",
|
||||
"sha": "006c41c8c0962c1cf83e0a6416598595b8833ae0"
|
||||
"sha": "1a42cfc38a2f12cb2be2a98c6604074446b1639e"
|
||||
},
|
||||
"homepage": "https://help.sap.com/docs/MDK"
|
||||
},
|
||||
@@ -2896,7 +2910,7 @@
|
||||
"source": "git-subdir",
|
||||
"url": "https://github.com/semgrep/mcp-marketplace.git",
|
||||
"path": "plugin",
|
||||
"sha": "63fac121296f3f102651de6beb7c15649c8b11d3"
|
||||
"sha": "7ae38e4bec51877cec71fcacc5857d746fb8b468"
|
||||
},
|
||||
"homepage": "https://github.com/semgrep/mcp-marketplace.git"
|
||||
},
|
||||
@@ -3073,10 +3087,26 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/spotify/ads-claude-plugin.git",
|
||||
"sha": "aedf7ed87312891ef2e357c02b9c22fcca8907b4"
|
||||
"sha": "9407475a5cd2a3986c48a58020fd47e23f9735e5"
|
||||
},
|
||||
"homepage": "https://github.com/spotify/ads-claude-plugin"
|
||||
},
|
||||
{
|
||||
"name": "stackhawk-api",
|
||||
"description": "Query the StackHawk platform API for security posture reporting, findings analysis, and app management. Guides agents through authentication, data retrieval, and result presentation.",
|
||||
"author": {
|
||||
"name": "StackHawk"
|
||||
},
|
||||
"category": "security",
|
||||
"source": {
|
||||
"source": "git-subdir",
|
||||
"url": "https://github.com/stackhawk/agent-skills.git",
|
||||
"path": "plugins/api",
|
||||
"ref": "main",
|
||||
"sha": "248e3fedba8ff80fadfd17f72a0454aa02b66a0b"
|
||||
},
|
||||
"homepage": "https://docs.stackhawk.com/ai-security/"
|
||||
},
|
||||
{
|
||||
"name": "stripe",
|
||||
"description": "Stripe development plugin for Claude",
|
||||
@@ -3086,7 +3116,7 @@
|
||||
"url": "https://github.com/stripe/ai.git",
|
||||
"path": "providers/claude/plugin",
|
||||
"ref": "main",
|
||||
"sha": "c29cd23cfd27830bf10961d58646a9fd127fa6df"
|
||||
"sha": "a3267712f2268975e4ecc5912634d900ae4cb8e6"
|
||||
},
|
||||
"homepage": "https://github.com/stripe/ai/tree/main/providers/claude/plugin"
|
||||
},
|
||||
@@ -3261,7 +3291,7 @@
|
||||
"url": "https://github.com/UI5/plugins-coding-agents.git",
|
||||
"path": "plugins/ui5",
|
||||
"ref": "main",
|
||||
"sha": "c61e0b7fc7e38168f1df4f705f54c57e59d44c98"
|
||||
"sha": "6b2d7f95a739857082fa9cb50bfd5ce8b1163fdc"
|
||||
},
|
||||
"homepage": "https://github.com/UI5/plugins-coding-agents"
|
||||
},
|
||||
@@ -3279,7 +3309,7 @@
|
||||
"url": "https://github.com/UI5/plugins-coding-agents.git",
|
||||
"path": "plugins/ui5-modernization",
|
||||
"ref": "main",
|
||||
"sha": "d1e3a43fa80ef160cb42689b88d665e25a5a81a1"
|
||||
"sha": "6b2d7f95a739857082fa9cb50bfd5ce8b1163fdc"
|
||||
},
|
||||
"homepage": "https://github.com/UI5/plugins-coding-agents"
|
||||
},
|
||||
@@ -3297,7 +3327,7 @@
|
||||
"url": "https://github.com/UI5/plugins-coding-agents.git",
|
||||
"path": "plugins/ui5-typescript-conversion",
|
||||
"ref": "main",
|
||||
"sha": "d1e3a43fa80ef160cb42689b88d665e25a5a81a1"
|
||||
"sha": "6b2d7f95a739857082fa9cb50bfd5ce8b1163fdc"
|
||||
},
|
||||
"homepage": "https://github.com/UI5/plugins-coding-agents"
|
||||
},
|
||||
@@ -3419,7 +3449,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/wix/skills.git",
|
||||
"sha": "5d7b1e90215fc5be8b62980f185f235e4d3bfb39"
|
||||
"sha": "bef043f07972401e14fc4b129cf3895417f09352"
|
||||
},
|
||||
"homepage": "https://dev.wix.com/docs/wix-cli/guides/development/about-wix-skills"
|
||||
},
|
||||
@@ -3526,7 +3556,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/zscaler/zscaler-mcp-server.git",
|
||||
"sha": "23912913f8588c650b104d3bd30c0c755d6962cd"
|
||||
"sha": "47fe874551023bf8d138c24612aa4ea0f16aaa56"
|
||||
},
|
||||
"homepage": "https://github.com/zscaler/zscaler-mcp-server"
|
||||
},
|
||||
@@ -3540,7 +3570,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/langfuse/skills.git",
|
||||
"sha": "b6253b2c659c93a4033bb9a6e7c04d7e2ebc0de6"
|
||||
"sha": "abe69fac6b0e0df94605dc5ae162da4726d0fb78"
|
||||
},
|
||||
"homepage": "https://langfuse.com"
|
||||
},
|
||||
|
||||
9
.github/workflows/validate-plugins.yml
vendored
9
.github/workflows/validate-plugins.yml
vendored
@@ -19,6 +19,15 @@ on:
|
||||
# pull_request and the required check would sit "Expected" forever (a dispatch
|
||||
# check run isn't associated with the PR, so it can't satisfy the gate either).
|
||||
- '.github/policy/**'
|
||||
# And once more for a plugin's own docs: a PR that only edits a README or
|
||||
# adds a screenshot matches nothing above, so the required check never
|
||||
# reports and the PR can't be merged. Spelled out per level because `*`
|
||||
# doesn't cross a `/` — plugins live at plugins/<name>/, so `*/README.md`
|
||||
# would not match one.
|
||||
- 'plugins/*/README.md'
|
||||
- 'plugins/*/assets/**'
|
||||
- 'external_plugins/*/README.md'
|
||||
- 'external_plugins/*/assets/**'
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
|
||||
@@ -4,6 +4,20 @@ Generate a personal Claude Code impact report — "receipts" — from your own
|
||||
session transcripts, for the conversation where someone asks what all this
|
||||
Claude Code usage is actually buying.
|
||||
|
||||
<img src="assets/sample-receipt.png" width="400"
|
||||
alt="A printed-receipt-styled report headed 'Claude Code — usage receipt, Morgan Lunt', covering 2026-06-21 to 2026-07-20, active on 28 of 30 days. It lists 40 sessions, 64 prompts, 14 files touched, 3,120 lines touched, 12 commits carrying that work and 7 PRs opened, headlined as 19 commits and PRs shipped. A by-project table gives 'Research and investigation (no project)' 53% of spend with no files touched, then acme-api 29%, acme-web 10%, billing-service 5%, infra-terraform 3%, and a plain ~/notes directory 1%. Footnotes explain which columns do not sum, and an Export CSV button sits above a barcode.">
|
||||
|
||||
*Sample output — the projects and numbers are invented. It's rendered from a
|
||||
synthetic corpus, not from anyone's real usage.*
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
/plugin install receipts@claude-plugins-official
|
||||
```
|
||||
|
||||
## Use
|
||||
|
||||
```
|
||||
/receipts # last 30 days (default)
|
||||
/receipts week # last 7 days
|
||||
@@ -12,115 +26,52 @@ Claude Code usage is actually buying.
|
||||
/receipts for myrepo # scope to one project
|
||||
```
|
||||
|
||||
You get two files in your home directory: a markdown report to paste into a
|
||||
doc or a review, and a self-contained HTML receipt to open or attach. The
|
||||
receipt has an **Export CSV** button for the by-project table, and prints to a
|
||||
clean PDF.
|
||||
Two files land in your home directory: a markdown report to paste into a doc or
|
||||
a review, and a self-contained HTML receipt to open or attach. The receipt has
|
||||
an **Export CSV** button and prints to a clean PDF. Nothing is published
|
||||
anywhere.
|
||||
|
||||
## What it reports
|
||||
Takes a few seconds — about 1s for a week, 5s for a year.
|
||||
|
||||
## What you get
|
||||
|
||||
- **What you shipped** — files and lines touched, commits carrying that work,
|
||||
PRs opened.
|
||||
- **By project** — sessions, active days, and each project's share of your
|
||||
total compute.
|
||||
usage. Work outside a repo is named for its directory; sessions that touched
|
||||
no files at all (web searches, chat tools, dashboards) show as
|
||||
*Research & investigation (no project)*, which for a lot of people is the
|
||||
biggest row.
|
||||
- **Framing for a manager** — how to present the above without overclaiming.
|
||||
|
||||
## What counts
|
||||
|
||||
The report's universe is **work you did with Claude Code**, mapped to the
|
||||
project you did it on. Two consequences worth knowing before you read a number:
|
||||
|
||||
**Claude Code's own machinery isn't your work.** The agent's scratchpad, its
|
||||
per-session tool output, and `~/.claude` are excluded. On a real 30-day corpus
|
||||
that removed 82% of the raw "lines touched" figure — files Claude wrote to talk
|
||||
to itself, which no one shipped.
|
||||
|
||||
**A project is where work landed, not where your shell was.** Sessions are
|
||||
attributed to the projects their file operations touched (reads included —
|
||||
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. Work outside a repo
|
||||
still counts; it's named for its directory. Subagents share their parent's
|
||||
session, so their work lands on the same project — there's no "delegated"
|
||||
category, because delegation is a mechanism, not a kind of work.
|
||||
|
||||
Sessions that touched no files and didn't run in a repo — web searches, Slack
|
||||
reads, dashboard queries — land in **Research & investigation (no project)**.
|
||||
That row is often the biggest one. It's real work that genuinely has no home on
|
||||
disk, and naming it beats inventing a project for it.
|
||||
|
||||
## Design notes
|
||||
|
||||
**No dollar figures, anywhere.** A cost computed from local token counts is
|
||||
inferred, not measured, and won't match your actual bill. Presenting one
|
||||
invites the "that can't be right" reaction that discredits everything else in
|
||||
the report. Spend appears only as relative percentages.
|
||||
|
||||
**No invented "hours saved."** There's no baseline in local data to compute a
|
||||
counterfactual from, and a fabricated multiplier undermines the real numbers
|
||||
sitting next to it. The report deliberately leaves room for you to add
|
||||
concrete wins by hand — those land better than any aggregate anyway.
|
||||
|
||||
**No breakdown of spend by activity.** "38% of your compute went to reading
|
||||
code" is the chart everyone wants and the data can't support. A turn's cost is
|
||||
~90% context handling, half of it re-reading what earlier turns added, so
|
||||
charging it to whichever tool fired that turn is a modeling choice rather than
|
||||
a measurement — and the choice decides the answer. On one real month, three
|
||||
equally defensible weightings put web search at 11%, 28% or 51%. Spend appears
|
||||
once, per project, where it divides a real quantity by a real fact and the
|
||||
ranking holds whichever weighting you pick.
|
||||
|
||||
**Careful claims.** Commits are counted only when they were authored under the
|
||||
identity git uses in that repo *and* their changed files include something
|
||||
Claude Code touched. Both tests have to pass, which is what keeps a snapshot
|
||||
cron out — it commits under your name but never touches the files Claude
|
||||
edited — while still counting the commit you made by hand after Claude wrote
|
||||
the code. The gap it leaves: a repo configured with a *shared* identity (a
|
||||
release bot's, say) makes that bot "you" for that repo, so a bot commit
|
||||
touching a file Claude also edited would count. Rare, and the alternative —
|
||||
reading only your global identity — silently zeroes the commit count for
|
||||
anyone using git's standard `includeIf` work/personal split, which is far more
|
||||
common.
|
||||
|
||||
Lines are "touched", not "written". Sessions, active days and commits are all
|
||||
marked as columns that don't sum: a session spanning two projects is genuinely
|
||||
in both, and worktrees of one repo share commits.
|
||||
A few things the report deliberately won't tell you: no dollar figures, no
|
||||
"hours saved", and no breakdown of spend by activity. Each of those would be a
|
||||
guess dressed up as a measurement, and one bad number discredits the rest of
|
||||
the page. What's left is meant to survive someone pushing back on it.
|
||||
|
||||
## Privacy
|
||||
|
||||
Mining is a local Node script — file I/O and `git`, no network calls.
|
||||
Everything is read locally — file I/O and read-only `git`, no network calls.
|
||||
|
||||
It reads `~/.claude/projects/**/*.jsonl` — your own session history, already on
|
||||
disk, all projects, for the window you ask for. To find out which of the
|
||||
directories in there are repos, it runs `git rev-parse` in **every** directory
|
||||
any session mentioned (on one real month, 152 of them), and in the ones that
|
||||
are repos it also reads `user.email` and runs `git log`. All read-only, all
|
||||
local.
|
||||
It reads `~/.claude/projects/**/*.jsonl`, your own session history, already on
|
||||
disk. To work out which of the directories mentioned there are git repos, it
|
||||
runs `git rev-parse` in each of them, and in the ones that are, reads
|
||||
`user.email` and runs `git log`.
|
||||
|
||||
The only thing that reaches the model is a small JSON summary: your name from
|
||||
`git config user.name`, aggregate counts, and project names. Your email is read
|
||||
but never emitted — it's used locally to match commit authorship. No code, no
|
||||
conversation content, and no tool or MCP server names — the report has no
|
||||
per-tool breakdown at all, so the list of services you've connected never
|
||||
leaves the script.
|
||||
The only thing that reaches the model is a small summary: your name from
|
||||
`git config`, aggregate counts, and project names. No code, no conversation
|
||||
content, and no tool or MCP server names — so the list of services you've
|
||||
connected never leaves your machine. Your email is used locally to match commit
|
||||
authorship and is never sent.
|
||||
|
||||
The report is written to your disk and published nowhere unless you explicitly
|
||||
ask for a shareable version. Because repo names appear verbatim, the skill
|
||||
lists them before you send the report anywhere.
|
||||
Project names appear verbatim in the report, so the skill reads them back to
|
||||
you before you send it anywhere. Use `/receipts for <project>` to scope it down.
|
||||
|
||||
## Relationship to `session-report`
|
||||
## Which plugin do I want?
|
||||
|
||||
Both plugins read the same transcripts, and that's about where the similarity
|
||||
ends.
|
||||
[`session-report`](../session-report) reads the same transcripts to answer
|
||||
*where am I wasting tokens* — cache hit rates, expensive prompts — and hands
|
||||
you a list of optimizations. Install it to make your usage cheaper.
|
||||
|
||||
[`session-report`](../session-report) is a tuning tool. It asks *where am I
|
||||
wasting tokens* — cache hit rates, disproportionate projects, expensive
|
||||
prompts — and its output is a list of optimizations. The audience is you, and
|
||||
the goal is to drive usage down.
|
||||
|
||||
`receipts` is a justification tool. It asks *was this worth it* — what shipped,
|
||||
in which repos, against what spend — and cross-references local git history to
|
||||
tie usage to output. The audience is your manager, and the goal is to defend
|
||||
the spend rather than trim it.
|
||||
|
||||
Install `session-report` to make your usage cheaper. Install `receipts` to
|
||||
explain why it was worth paying for.
|
||||
`receipts` answers *was this worth it* — what shipped, in which projects,
|
||||
against what spend. Install it to explain why the usage was worth paying for.
|
||||
|
||||
183
plugins/receipts/assets/make-sample.mjs
Normal file
183
plugins/receipts/assets/make-sample.mjs
Normal file
@@ -0,0 +1,183 @@
|
||||
// make-sample.mjs — regenerate assets/sample-receipt.png for the README.
|
||||
//
|
||||
// The README's sample must never contain anyone's real projects, so it isn't a
|
||||
// screenshot of a real run. This builds a throwaway HOME with invented repos,
|
||||
// invented files and invented sessions, then points the real miner at it — the
|
||||
// picture is genuinely what the tool produces, from data that never existed.
|
||||
//
|
||||
// node assets/make-sample.mjs ~/receipts-sample
|
||||
// HOME=~/receipts-sample/home node skills/receipts/scripts/mine-transcripts.mjs \
|
||||
// --days 30 --html /tmp/sample.html
|
||||
// # screenshot /tmp/sample.html at 620px wide, crop to the receipt
|
||||
//
|
||||
// Build it somewhere with no symlink above it — NOT /tmp, which on macOS is a
|
||||
// symlink to /private/tmp. `git rev-parse --show-toplevel` resolves symlinks
|
||||
// and these transcripts don't, so under /tmp every repo reports zero commits
|
||||
// and the sample comes out silently wrong.
|
||||
//
|
||||
// Keep the invented names obviously fake (acme-*, example.com).
|
||||
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import { execFileSync } from 'node:child_process';
|
||||
|
||||
const ROOT = process.argv[2];
|
||||
const HOME = path.join(ROOT, 'home');
|
||||
fs.rmSync(ROOT, { recursive: true, force: true });
|
||||
|
||||
const NAME = 'Morgan Lunt';
|
||||
const EMAIL = 'morgan@example.com';
|
||||
|
||||
const git = (cwd, ...a) => execFileSync('git', ['-C', cwd, ...a], { stdio: ['ignore', 'pipe', 'ignore'] });
|
||||
|
||||
// --- invented projects -------------------------------------------------------
|
||||
const REPOS = {
|
||||
'acme-api': ['src/routes/orders.ts', 'src/routes/refunds.ts', 'src/db/schema.sql', 'src/lib/auth.ts', 'tests/orders.test.ts'],
|
||||
'acme-web': ['app/checkout/page.tsx', 'app/cart/state.ts', 'components/PriceTag.tsx'],
|
||||
'billing-service': ['internal/invoice/render.go', 'internal/tax/rates.go'],
|
||||
'infra-terraform': ['envs/prod/main.tf', 'modules/rds/variables.tf'],
|
||||
};
|
||||
const NOTES = ['migration-plan.md', 'oncall-runbook.md'];
|
||||
|
||||
fs.mkdirSync(path.join(HOME, 'notes'), { recursive: true });
|
||||
fs.writeFileSync(path.join(HOME, '.gitconfig'), `[user]\n\tname = ${NAME}\n\temail = ${EMAIL}\n`);
|
||||
for (const f of NOTES) fs.writeFileSync(path.join(HOME, 'notes', f), 'note\n'.repeat(40));
|
||||
|
||||
for (const [repo, files] of Object.entries(REPOS)) {
|
||||
const dir = path.join(HOME, 'code', repo);
|
||||
fs.mkdirSync(dir, { recursive: true });
|
||||
git(dir, 'init', '-q', '-b', 'main');
|
||||
git(dir, 'config', 'user.name', NAME);
|
||||
git(dir, 'config', 'user.email', EMAIL);
|
||||
git(dir, 'config', 'commit.gpgsign', 'false');
|
||||
for (const f of files) {
|
||||
fs.mkdirSync(path.dirname(path.join(dir, f)), { recursive: true });
|
||||
fs.writeFileSync(path.join(dir, f), 'x\n'.repeat(60));
|
||||
}
|
||||
git(dir, 'add', '-A');
|
||||
git(dir, 'commit', '-qm', 'initial');
|
||||
}
|
||||
|
||||
// --- invented transcripts ----------------------------------------------------
|
||||
const PROJ = path.join(HOME, '.claude', 'projects', 'sample');
|
||||
fs.mkdirSync(PROJ, { recursive: true });
|
||||
|
||||
let uid = 0;
|
||||
const U = () => `u${++uid}`;
|
||||
const day = (back) => {
|
||||
const d = new Date();
|
||||
d.setDate(d.getDate() - back);
|
||||
d.setHours(10 + (back % 6), 15, 0, 0);
|
||||
return d.toISOString();
|
||||
};
|
||||
const usage = (out) => ({
|
||||
input_tokens: 900,
|
||||
output_tokens: out,
|
||||
cache_creation: { ephemeral_5m_input_tokens: 4000, ephemeral_1h_input_tokens: 0 },
|
||||
cache_read_input_tokens: 30000,
|
||||
});
|
||||
const asst = (sid, ts, cwd, blocks, out = 300) => ({
|
||||
type: 'assistant', sessionId: sid, uuid: U(), requestId: `r${uid}`, timestamp: ts, cwd,
|
||||
message: { usage: usage(out), content: blocks },
|
||||
});
|
||||
const user = (sid, ts, cwd, text) => ({
|
||||
type: 'user', sessionId: sid, uuid: U(), promptId: `p${uid}`, timestamp: ts, cwd,
|
||||
message: { content: text },
|
||||
});
|
||||
const tool = (name, input) => ({ type: 'tool_use', id: `t${++uid}`, name, input });
|
||||
|
||||
// One .jsonl per session, the way Claude Code actually lays them out.
|
||||
const bySession = new Map();
|
||||
const emit = (o) => {
|
||||
const k = o.sessionId;
|
||||
if (!bySession.has(k)) bySession.set(k, []);
|
||||
bySession.get(k).push(JSON.stringify(o));
|
||||
};
|
||||
|
||||
// Sessions that build things, spread across the invented repos.
|
||||
const plan = [
|
||||
{ repo: 'acme-api', sessions: 9, daysBack: [2, 3, 5, 6, 9, 12, 16, 20, 24], edits: 5, writes: 2 },
|
||||
{ repo: 'acme-web', sessions: 5, daysBack: [4, 7, 11, 18, 22], edits: 3, writes: 1 },
|
||||
{ repo: 'billing-service', sessions: 3, daysBack: [8, 15, 26], edits: 2, writes: 1 },
|
||||
{ repo: 'infra-terraform', sessions: 2, daysBack: [13, 19], edits: 2, writes: 0 },
|
||||
];
|
||||
let sid = 0;
|
||||
for (const p of plan) {
|
||||
const dir = path.join(HOME, 'code', p.repo);
|
||||
const files = REPOS[p.repo];
|
||||
for (let i = 0; i < p.sessions; i++) {
|
||||
const S = `s-${p.repo}-${++sid}`;
|
||||
const ts = day(p.daysBack[i % p.daysBack.length]);
|
||||
emit(user(S, ts, dir, 'add the thing'));
|
||||
for (let e = 0; e < p.edits; e++) {
|
||||
const f = path.join(dir, files[e % files.length]);
|
||||
emit(asst(S, ts, dir, [tool('Read', { file_path: f })], 120));
|
||||
emit(asst(S, ts, dir, [tool('Edit', { file_path: f, old_string: 'x\n'.repeat(9), new_string: 'y\n'.repeat(14) })], 400));
|
||||
}
|
||||
for (let w = 0; w < p.writes; w++) {
|
||||
const f = path.join(dir, files[(w + 1) % files.length]);
|
||||
emit(asst(S, ts, dir, [tool('Write', { file_path: f, content: 'z\n'.repeat(70) })], 700));
|
||||
}
|
||||
emit(asst(S, ts, dir, [tool('Bash', { command: 'npm test' })], 200));
|
||||
if (i % 3 === 0) {
|
||||
emit(user(S, ts, dir, 'open the PR'));
|
||||
emit(asst(S, ts, dir, [tool('Bash', { command: 'gh pr create --fill' })], 150));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Work in a plain directory — no repo.
|
||||
for (let i = 0; i < 4; i++) {
|
||||
const S = `s-notes-${i}`;
|
||||
const ts = day([6, 10, 17, 23][i]);
|
||||
const dir = path.join(HOME, 'notes');
|
||||
emit(user(S, ts, dir, 'draft the migration plan'));
|
||||
emit(asst(S, ts, dir, [tool('Write', { file_path: path.join(dir, NOTES[i % 2]), content: 'n\n'.repeat(55) })], 900));
|
||||
}
|
||||
|
||||
// Research: no files touched, not in a repo. The row that surprises people.
|
||||
for (let i = 0; i < 17; i++) {
|
||||
const S = `s-res-${i}`;
|
||||
const ts = day([1, 2, 3, 5, 7, 8, 9, 11, 12, 14, 16, 18, 20, 21, 25, 27, 28][i]);
|
||||
emit(user(S, ts, HOME, 'what changed in the pricing API?'));
|
||||
for (let k = 0; k < 6; k++) {
|
||||
emit(asst(S, ts, HOME, [tool('WebFetch', { url: 'https://example.com/docs' })], 350));
|
||||
emit(asst(S, ts, HOME, [tool('WebSearch', { query: 'pricing api changelog' })], 250));
|
||||
}
|
||||
emit(user(S, ts, HOME, 'and the rate limits?'));
|
||||
emit(asst(S, ts, HOME, [tool('WebFetch', { url: 'https://example.com/limits' })], 400));
|
||||
}
|
||||
|
||||
for (const [k, ls] of bySession) fs.writeFileSync(path.join(PROJ, `${k}.jsonl`), ls.join('\n') + '\n');
|
||||
|
||||
// --- commits carrying that work ---------------------------------------------
|
||||
const COMMITS = {
|
||||
'acme-api': [
|
||||
['src/routes/orders.ts', 'orders: handle partial refunds', 2],
|
||||
['src/lib/auth.ts', 'auth: rotate signing keys', 5],
|
||||
['src/db/schema.sql', 'schema: add refund_reason', 9],
|
||||
['tests/orders.test.ts', 'tests: cover partial refunds', 16],
|
||||
],
|
||||
'acme-web': [
|
||||
['app/checkout/page.tsx', 'checkout: inline tax breakdown', 4],
|
||||
['app/cart/state.ts', 'cart: fix stale totals', 11],
|
||||
],
|
||||
'billing-service': [['internal/invoice/render.go', 'invoice: round to minor units', 8]],
|
||||
'infra-terraform': [['envs/prod/main.tf', 'prod: bump rds instance class', 13]],
|
||||
};
|
||||
// Date each commit to the day the session that produced it ran, so the
|
||||
// "N of your M active days ended in a commit" line reflects a real rhythm
|
||||
// rather than a fixture written all at once.
|
||||
for (const [repo, cs] of Object.entries(COMMITS)) {
|
||||
const dir = path.join(HOME, 'code', repo);
|
||||
for (const [f, msg, back] of cs) {
|
||||
fs.appendFileSync(path.join(dir, f), 'changed\n');
|
||||
const when = day(back);
|
||||
execFileSync('git', ['-C', dir, 'add', '-A'], { stdio: 'ignore' });
|
||||
execFileSync('git', ['-C', dir, 'commit', '-qm', msg], {
|
||||
stdio: 'ignore',
|
||||
env: { ...process.env, GIT_AUTHOR_DATE: when, GIT_COMMITTER_DATE: when },
|
||||
});
|
||||
}
|
||||
}
|
||||
console.log(HOME);
|
||||
BIN
plugins/receipts/assets/sample-receipt.png
Normal file
BIN
plugins/receipts/assets/sample-receipt.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 258 KiB |
Reference in New Issue
Block a user