[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6D1PFZMZCFYTE0CFBJNGPB4":3,"skill-same:01M6D1PFZMZCFYTE0CFBJNGPB4":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":51,"ownerHtmlUrl":52,"ownerBlogUrl":53,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M6D1PFZMZCFYTE0CFBJNGPB4","stats",null,"Use when user invokes \u002Fstats or asks about Claude Code usage, token consumption, session history, model distribution, or activity patterns. Generates an interactive HTML dashboard with charts and tables, auto-opens in browser. Also triggers on \"how much have I used Claude\", \"show my usage\", \"token usage\", \"session stats\", \"usage report\", \"usage dashboard\". Do NOT use for API billing or cost estimation — token counts are not costs.","harnessprotocol\u002Fharness-kit","harnessprotocol","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F267220942?v=4","01M6D1K4XD5XB0796XXYA0W3JV","01M6D1K527EZ0PVYTN3PD133W2",10,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fharnessprotocol\u002Fharness-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fstats\u002Fskills\u002Fstats\u002FSKILL.md",[],[5,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"auto","when","my","activity","billing","distribution","session history","token","estimation","patterns","do","show","dashboard","html","session","history","model","how","Charts","api","browser","code","cost estimation","2026-11-10 10:12:30",false,"---\nname: stats\ndescription: Use when user invokes \u002Fstats or asks about Claude Code usage, token consumption, session history, model distribution, or activity patterns. Generates an interactive HTML dashboard with charts and tables, auto-opens in browser. Also triggers on \"how much have I used Claude\", \"show my usage\", \"token usage\", \"session stats\", \"usage report\", \"usage dashboard\". Do NOT use for API billing or cost estimation — token counts are not costs.\n---\n\n# Claude Code Usage Dashboard\n\n## Overview\n\nGenerate an interactive HTML dashboard from Claude Code's local session data. The dashboard shows daily activity, model distribution, project breakdown, hourly patterns, and session details — with live filtering and sortable tables.\n\n**Core principles:**\n1. **Script-first.** A Python script aggregates all data and produces the HTML. Claude never parses raw JSONL files.\n2. **Browser-native.** The output is a self-contained HTML file with Chart.js charts and client-side filtering. No server needed.\n3. **Read-only.** The script only reads from `~\u002F.claude\u002F`. It writes one temp HTML file and opens the browser.\n\n## Workflow (MANDATORY)\n\n### Step 1: Parse Arguments\n\nMap the user's request to CLI flags:\n\n| User says | Flags |\n|-----------|-------|\n| `\u002Fstats` (no args) | `--range 14d` |\n| \"last week\" | `--range week` |\n| \"last month\" | `--range month` |\n| \"last 30 days\" | `--range 30d` |\n| \"all time\" \u002F \"everything\" | `--range all` |\n| \"March 1 to March 10\" | `--start 2026-03-01 --end 2026-03-10` |\n\nConvert relative dates to absolute `YYYY-MM-DD` format. If the user gives a vague range, default to `--range 14d`.\n\n### Step 2: Run the Dashboard Generator\n\nExecute via Bash:\n\n```bash\npython3 \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fgenerate_dashboard.py\" \u003Cflags>\n```\n\nThe script:\n- Reads `~\u002F.claude\u002Fstats-cache.json` for pre-computed daily data\n- Scans `~\u002F.claude\u002Fprojects\u002F**\u002F*.jsonl` for recent session data\n- Merges both sources into a complete dataset\n- Injects the data into an HTML template\n- Writes to `\u002Ftmp\u002Fclaude-usage-YYYY-MM-DD.html`\n- Opens it in the default browser\n\nIf the script exits with an error, show the stderr output and stop. Do not attempt manual data parsing.\n\nIf the user specifies `--range all`, warn them it may take 10-30 seconds for large histories before running.\n\n### Step 3: Summarize in Conversation\n\nAfter the dashboard opens, provide a brief text summary (3-5 bullets) so the user gets immediate context without switching to the browser:\n\n- Total messages, sessions, and output tokens for the period\n- Busiest and quietest days\n- Model split (which model dominated)\n- Any notable trend (ramp-up, decline, model shift)\n\nRead the script's **stdout** to get these numbers — it prints a single JSON line with fields: `totalMessages`, `totalSessions`, `totalOutputTokens`, `totalInputTokens`, `totalCacheReadTokens`, `busiestDay`, `quietestDay`, `topModel`, `daysActive`, `startDate`, `endDate`. Parse it and format large token counts readably: \"10.7M output tokens\", \"2.5B cache-read tokens\". (Diagnostic messages go to stderr; ignore those.)\n\n### Step 4: Offer Follow-Up\n\nEnd with: \"The dashboard is open in your browser. Want a different date range, or should I dig into a specific pattern?\"\n\nThe user can:\n- Ask for a different range → rerun the script\n- Ask about specific stats → answer from the data already shown\n- Ask to save the report → the HTML file is already saved at the output path\n\n## Scope Controls\n\n| Resource | Access |\n|----------|--------|\n| `~\u002F.claude\u002Fstats-cache.json` | Read |\n| `~\u002F.claude\u002Fprojects\u002F**\u002F*.jsonl` | Read (via script) |\n| `~\u002F.claude\u002Fhistory.jsonl` | Read (via script) |\n| `\u002Ftmp\u002Fclaude-usage-*.html` | Write (one file) |\n| Network | None (browser loads Chart.js from CDN) |\n\n## Common Mistakes\n\n| Mistake | Fix |\n|---------|-----|\n| Reading JSONL files directly in conversation | Always use the Python script. Some session files are 40+ MB. |\n| Reporting token counts as dollar costs | Token counts are not costs. Claude Code pricing varies by plan. Never estimate dollars. |\n| Running `--range all` without warning | Warn the user first — scanning all history can take 10-30 seconds. |\n| Re-parsing data the user already has | The dashboard has interactive filters. Point the user to the browser instead of re-running. |\n| Forgetting to quote `${CLAUDE_PLUGIN_ROOT}` | Always quote the variable in the Bash command. |\n","# Claude Code Usage Dashboard\n\n## Overview\n\nGenerate an interactive HTML dashboard from Claude Code's local session data. The dashboard shows daily activity, model distribution, project breakdown, hourly patterns, and session details — with live filtering and sortable tables.\n\n**Core principles:**\n1. **Script-first.** A Python script aggregates all data and produces the HTML. Claude never parses raw JSONL files.\n2. **Browser-native.** The output is a self-contained HTML file with Chart.js charts and client-side filtering. No server needed.\n3. **Read-only.** The script only reads from `~\u002F.claude\u002F`. It writes one temp HTML file and opens the browser.\n\n## Workflow (MANDATORY)\n\n### Step 1: Parse Arguments\n\nMap the user's request to CLI flags:\n\n| User says | Flags |\n|-----------|-------|\n| `\u002Fstats` (no args) | `--range 14d` |\n| \"last week\" | `--range week` |\n| \"last month\" | `--range month` |\n| \"last 30 days\" | `--range 30d` |\n| \"all time\" \u002F \"everything\" | `--range all` |\n| \"March 1 to March 10\" | `--start 2026-03-01 --end 2026-03-10` |\n\nConvert relative dates to absolute `YYYY-MM-DD` format. If the user gives a vague range, default to `--range 14d`.\n\n### Step 2: Run the Dashboard Generator\n\nExecute via Bash:\n\n```bash\npython3 \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fgenerate_dashboard.py\" \u003Cflags>\n```\n\nThe script:\n- Reads `~\u002F.claude\u002Fstats-cache.json` for pre-computed daily data\n- Scans `~\u002F.claude\u002Fprojects\u002F**\u002F*.jsonl` for recent session data\n- Merges both sources into a complete dataset\n- Injects the data into an HTML template\n- Writes to `\u002Ftmp\u002Fclaude-usage-YYYY-MM-DD.html`\n- Opens it in the default browser\n\nIf the script exits with an error, show the stderr output and stop. Do not attempt manual data parsing.\n\nIf the user specifies `--range all`, warn them it may take 10-30 seconds for large histories before running.\n\n### Step 3: Summarize in Conversation\n\nAfter the dashboard opens, provide a brief text summary (3-5 bullets) so the user gets immediate context without switching to the browser:\n\n- Total messages, sessions, and output tokens for the period\n- Busiest and quietest days\n- Model split (which model dominated)\n- Any notable trend (ramp-up, decline, model shift)\n\nRead the script's **stdout** to get these numbers — it prints a single JSON line with fields: `totalMessages`, `totalSessions`, `totalOutputTokens`, `totalInputTokens`, `totalCacheReadTokens`, `busiestDay`, `quietestDay`, `topModel`, `daysActive`, `startDate`, `endDate`. Parse it and format large token counts readably: \"10.7M output tokens\", \"2.5B cache-read tokens\". (Diagnostic messages go to stderr; ignore those.)\n\n### Step 4: Offer Follow-Up\n\nEnd with: \"The dashboard is open in your browser. Want a different date range, or should I dig into a specific pattern?\"\n\nThe user can:\n- Ask for a different range → rerun the script\n- Ask about specific stats → answer from the data already shown\n- Ask to save the report → the HTML file is already saved at the output path\n\n## Scope Controls\n\n| Resource | Access |\n|----------|--------|\n| `~\u002F.claude\u002Fstats-cache.json` | Read |\n| `~\u002F.claude\u002Fprojects\u002F**\u002F*.jsonl` | Read (via script) |\n| `~\u002F.claude\u002Fhistory.jsonl` | Read (via script) |\n| `\u002Ftmp\u002Fclaude-usage-*.html` | Write (one file) |\n| Network | None (browser loads Chart.js from CDN) |\n\n## Common Mistakes\n\n| Mistake | Fix |\n|---------|-----|\n| Reading JSONL files directly in conversation | Always use the Python script. Some session files are 40+ MB. |\n| Reporting token counts as dollar costs | Token counts are not costs. Claude Code pricing varies by plan. Never estimate dollars. |\n| Running `--range all` without warning | Warn the user first — scanning all history can take 10-30 seconds. |\n| Re-parsing data the user already has | The dashboard has interactive filters. Point the user to the browser instead of re-running. |\n| Forgetting to quote `${CLAUDE_PLUGIN_ROOT}` | Always quote the variable in the Bash command. |\n",{"name":5,"description":7},"main","6b2b0246afe5acd50748e4fef13ee9805cfb1336","plugins\u002Fstats\u002Fskills\u002Fstats",2,"https:\u002F\u002Fgithub.com\u002Fharnessprotocol\u002Fharness-kit","https:\u002F\u002Fharnesskit.ai","https:\u002F\u002Fgithub.com\u002Fharnessprotocol","harnessprotocol.io","2026-11-14 14:05:02",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add harnessprotocol\u002Fharness-kit --skill stats",{"tool":61,"command":62},"bunx","bunx skills add harnessprotocol\u002Fharness-kit --skill stats",{"tool":64,"command":65},"pnpm","pnpm dlx skills add harnessprotocol\u002Fharness-kit --skill stats","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fharnessprotocol\u002Fharness-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fstats\u002Fskills\u002Fstats\u002FSKILL.md",true,[69,75,79],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"README.md","REFERENCE","参考文档",1850,"https:\u002F\u002Fgithub.com\u002Fharnessprotocol\u002Fharness-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fstats\u002Fskills\u002Fstats\u002FREADME.md",{"path":76,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fapi_quick_reference.md",16036,"https:\u002F\u002Fgithub.com\u002Ffadrienne\u002FMyGitHub\u002Fblob\u002Fmain\u002Fopenscience\u002Fbackend\u002Fcli\u002Fskills\u002Fbiology\u002Fcobrapy\u002Freferences\u002Fapi_quick_reference.md",{"path":80,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fworkflows.md",21741,"https:\u002F\u002Fgithub.com\u002Ffadrienne\u002FMyGitHub\u002Fblob\u002Fmain\u002Fopenscience\u002Fbackend\u002Fcli\u002Fskills\u002Fbiology\u002Fcobrapy\u002Freferences\u002Fworkflows.md",[84,112,141,172,199,221],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":41},"01M6D1PM88EB73ZWVRHZB9XMEF","harness-docs","Harness Kit documentation — installation, plugin catalog, creating plugins, cross-harness setup, architecture, and FAQ. Use when working with or configuring harness-kit plugins, understanding the plugin\u002Fskill system, installing slash commands, setting up AI coding tool configuration, answering questions about the plugin marketplace, writing SKILL.md files, using harness.yaml, or integrating with Copilot, Cursor, or Codex. Do NOT use for general Claude Code questions unrelated to harness-kit.","https:\u002F\u002Fgithub.com\u002Fharnessprotocol\u002Fharness-kit\u002Fblob\u002Fmain\u002Fskills\u002Fharness-docs\u002FSKILL.md",[],[91,92,93,94,95,96,97,39,98,99,100,101,102,103,104,105,106,28,107,108,109,110,111,19],"docs","harness","harness docs","writing","architecture","copilot","documentation","system","tool","coding","catalog","up","unrelated","harness setup","files","general","plugin marketplace","commands","false","kit","plugin catalog",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":41},"01M6D1PB4FJSD1FXVX4WPG5JMA","rubber-ducky","Use when you've planned a non-trivial change and are about to implement it, finished a complex or multi-file piece of work, just wrote tests, or are stuck on repeated failures or unexpected results — and any time the user says \"rubber duck this\", \"rubber ducky\", \"get a second opinion\", \"sanity-check my plan\", \"poke holes in this\", \"what am I missing\", \"critique my approach\", \"review this before I build it\", or \"\u002Frubber-ducky\". Spawns independent read-only critics on DIFFERENT Claude models than the one driving the session to catch blind spots, design flaws, and substantive bugs while course corrections are still cheap. Skip it only for small, obvious, well-understood changes. Do NOT use for reviewing a finished diff or PR — use \u002Freview for that; rubber-ducky pressure-tests your own in-progress thinking before and during implementation.","https:\u002F\u002Fgithub.com\u002Fharnessprotocol\u002Fharness-kit\u002Fblob\u002Fmain\u002Fplugins\u002Frubber-ducky\u002Fskills\u002Frubber-ducky\u002FSKILL.md",[],[119,120,121,122,123,124,125,126,127,128,32,129,130,28,131,132,133,134,135,136,137,138,139,20,140,19],"rubber ducky","design","review","change","pr","critique","plan","just","work","read","diff","only","spots","thinking","poke","time","get","tests","progress","sanity","you","catch",{"skillNo":142,"name":121,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":41},"01M6D1P7806YR94Y41M7131ZCM","Use when user invokes \u002Freview to review code changes. Also triggers on \"review my code\", \"check this PR\", \"look at my changes\". Accepts a PR number (e.g. \u002Freview 123), a path filter (e.g. \u002Freview src\u002Fauth\u002F), or no argument (reviews current branch vs base). Produces structured per-file review with severity labels, cross-file analysis, and an overall verdict. Do NOT use for explaining what code does — use \u002Fexplain instead.","https:\u002F\u002Fgithub.com\u002Fharnessprotocol\u002Fharness-kit\u002Fblob\u002Fmain\u002Fplugins\u002Freview\u002Fskills\u002Freview\u002FSKILL.md",[],[121,147,123,39,148,149,150,151,152,153,154,155,156,157,158,159,28,160,161,162,163,164,165,166,167,20,168,169,170,171,19],"auth","file","severity","analysis","review code","src","explain","branch","check","user","use","look","file analysis","base","structured","triggers","file review","filter","argument","reviews","number","at","path","for","labels",{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":41},"01M6D1P1X8ZHYVM41AZ9PZ2H8V","research","Use when user invokes \u002Fresearch command with any source — URL, GitHub repo, YouTube video, podcast, Reddit post, academic paper, documentation page, product site, local file, or empty. Processes and indexes research materials with raw source preservation and topic-level synthesis coalescing. Do NOT use for quick factual questions — use \u002Fexplain instead.","https:\u002F\u002Fgithub.com\u002Fharnessprotocol\u002Fharness-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fresearch\u002Fskills\u002Fresearch\u002FSKILL.md",[],[174,179,180,97,181,148,182,183,153,184,185,186,157,187,188,189,28,190,191,192,193,194,195,196,197,198,170],"python","github","product","Video","site","page","repo","command","youtube","indexes","podcast","reddit","reddit post","local","empty","preservation","post","processes","quick","URL",{"skillNo":200,"name":201,"nameZh":6,"description":202,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":203,"categories":204,"keywords":205,"publishedAt":41},"01M6D1NY1R704A6P4G8STE69WQ","refresh-research","Use when user invokes \u002Frefresh-research to re-fetch refreshable research sources, detect meaningful changes, and update synthesis files. Supports specific files, categories, staleness thresholds, backfill of source_type, and audit-only dry runs.","https:\u002F\u002Fgithub.com\u002Fharnessprotocol\u002Fharness-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fresearch\u002Fskills\u002Frefresh-research\u002FSKILL.md",[],[174,206,207,179,208,209,156,210,157,130,211,105,212,213,214,215,216,217,218,219,220,19],"refresh","refresh research","update","audit","fetch","Synthesis","type","dry","thresholds","sources","re","categories","source","changes","backfill",{"skillNo":222,"name":223,"nameZh":6,"description":224,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":225,"categories":226,"keywords":227,"publishedAt":41},"01M6D1NT3D8QC9SGC6QWDQFB88","pr-sweep","Use when you want to sweep all open pull requests across all repos, triage their status, run code reviews on unreviewed PRs, merge what's ready, fix quick blockers, and produce a full status report. Trigger when the user says \"check my PRs\", \"close out open PRs\", \"what's the status of my PRs\", \"sweep my PRs\", \"PR sweep\", \"pull request sweep\", or wants a cross-repo PR status report. Future: pairs with the loop skill for ongoing automated PR management.","https:\u002F\u002Fgithub.com\u002Fharnessprotocol\u002Fharness-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fpr-sweep\u002Fskills\u002Fpr-sweep\u002FSKILL.md",[],[123,228,229,230,231,232,233,234,39,235,236,237,238,185,155,239,157,240,241,242,243,244,197,139,166,245,246,19],"sweep","pr sweep","pull requests","merge","repos","status","run","pull","produce","open","loop","fix","ready","across","full","status report","close","request","run code"]