mirror of
https://github.com/anthropics/claude-plugins-official.git
synced 2026-07-27 21:23:34 +00:00
Compare commits
46 Commits
morganl/re
...
add-azure-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca884a3085 | ||
|
|
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 | ||
|
|
a87b860f50 | ||
|
|
9ddfad2e99 | ||
|
|
69fd5a1a38 | ||
|
|
3b00b44438 | ||
|
|
ca3a8550d3 | ||
|
|
c484581437 | ||
|
|
c9b190d015 | ||
|
|
ab17f573eb | ||
|
|
10b20b78dc | ||
|
|
0ad2369b5d | ||
|
|
75cf64b482 | ||
|
|
e387ab4a52 | ||
|
|
ce6b489327 | ||
|
|
d01a59d362 | ||
|
|
b822a2974d | ||
|
|
e083d46028 |
@@ -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"
|
||||
},
|
||||
@@ -470,6 +470,20 @@
|
||||
"category": "database",
|
||||
"homepage": "https://github.com/AzureCosmosDB/cosmosdb-claude-code-plugin"
|
||||
},
|
||||
{
|
||||
"name": "azure-sql-developer",
|
||||
"description": "Agent skills for Azure SQL Developer, the Azure SQL Database engine running locally in a container. Teaches your agent to run the engine, connect, migrate, scaffold, build RAG, wire CI, and go local-to-cloud, using the real Private Preview image instead of the SQL Server image.",
|
||||
"author": {
|
||||
"name": "Microsoft"
|
||||
},
|
||||
"category": "database",
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/microsoft/azure-sql-database-container.git",
|
||||
"sha": "c64639ce9d03731180560ccca214695892a72fe4"
|
||||
},
|
||||
"homepage": "https://github.com/microsoft/azure-sql-database-container"
|
||||
},
|
||||
{
|
||||
"name": "base44",
|
||||
"description": "Build and deploy Base44 full-stack apps with CLI project management and JavaScript/TypeScript SDK development skills",
|
||||
@@ -565,7 +579,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/buildkite/skills.git",
|
||||
"sha": "369d93ebb0d6f9112615b7b8693f98f6fc241e5e"
|
||||
"sha": "e854e111766e9494d742fe6836d5b6ecefd10b68"
|
||||
},
|
||||
"homepage": "https://buildkite.com"
|
||||
},
|
||||
@@ -629,7 +643,7 @@
|
||||
"url": "https://github.com/carta/plugins.git",
|
||||
"path": "plugins/carta-investors",
|
||||
"ref": "main",
|
||||
"sha": "a007723c7149acab9f9357eaa74b98635bb63934"
|
||||
"sha": "80da56af79af8779f0dd1a08b8eaaf372fa48c9c"
|
||||
},
|
||||
"homepage": "https://carta.com"
|
||||
},
|
||||
@@ -656,7 +670,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 +899,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/coderabbitai/skills.git",
|
||||
"sha": "2fd091d9582deccf19929e21f934921d0e8f686e"
|
||||
"sha": "c61c4908d36dda6fb08a343cc8b19c59fbb47de3"
|
||||
},
|
||||
"homepage": "https://github.com/coderabbitai/skills"
|
||||
},
|
||||
@@ -924,7 +938,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/spotify/confidence-ai-plugins.git",
|
||||
"sha": "c96d060b79e8b8068dab3ba4489be2343b7f2caf"
|
||||
"sha": "a6e3760e5c274dd273e6e4677235422f98f01f4a"
|
||||
},
|
||||
"homepage": "https://confidence.spotify.com"
|
||||
},
|
||||
@@ -1038,7 +1052,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/astronomer/agents.git",
|
||||
"sha": "5432198caa8ef9ec33218124bcd44016db2d31bf"
|
||||
"sha": "87d780cd5dc85a25c7ceb1f1720031fa4e48f781"
|
||||
},
|
||||
"homepage": "https://github.com/astronomer/agents"
|
||||
},
|
||||
@@ -1062,7 +1076,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/astronomer/agents.git",
|
||||
"sha": "5432198caa8ef9ec33218124bcd44016db2d31bf"
|
||||
"sha": "87d780cd5dc85a25c7ceb1f1720031fa4e48f781"
|
||||
},
|
||||
"homepage": "https://github.com/astronomer/agents"
|
||||
},
|
||||
@@ -1175,7 +1189,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 +1506,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 +1610,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/heygen-com/hyperframes.git",
|
||||
"sha": "ff3627d5d97c32b88d9faf79ad8d6126ab673074"
|
||||
"sha": "696cbdbbd0e5c83faf72c767126d4a153110f130"
|
||||
},
|
||||
"homepage": "https://hyperframes.heygen.com"
|
||||
},
|
||||
@@ -1667,7 +1681,7 @@
|
||||
"source": "github",
|
||||
"repo": "jfrog/claude-plugin",
|
||||
"commit": "259c8e718266c16e99b4f30ae9b1ed0f9f00d98d",
|
||||
"sha": "427d2e68848b2d04df586bd6be4904a5934828fb"
|
||||
"sha": "11177f6698405976ee0eecbbfb4857ed9657f19f"
|
||||
},
|
||||
"homepage": "https://jfrog.com"
|
||||
},
|
||||
@@ -1856,7 +1870,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 +2083,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 +2194,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 +2515,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 +2605,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"
|
||||
},
|
||||
@@ -2776,7 +2804,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 +2852,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 +2884,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 +2924,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,7 +3101,7 @@
|
||||
"source": {
|
||||
"source": "url",
|
||||
"url": "https://github.com/spotify/ads-claude-plugin.git",
|
||||
"sha": "aedf7ed87312891ef2e357c02b9c22fcca8907b4"
|
||||
"sha": "9407475a5cd2a3986c48a58020fd47e23f9735e5"
|
||||
},
|
||||
"homepage": "https://github.com/spotify/ads-claude-plugin"
|
||||
},
|
||||
@@ -3086,7 +3114,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 +3289,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 +3307,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 +3325,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 +3447,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 +3554,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 +3568,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,12 @@ 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
|
||||
|
||||
```
|
||||
|
||||
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