[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M718BSVAWJRFN6MRCZZ0QX4X":3,"skill-same:01M718BSVAWJRFN6MRCZZ0QX4X":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":50,"ownerDescription":6,"updatedAt":51,"install":52,"resources":65},"01M718BSVAWJRFN6MRCZZ0QX4X","session-report",null,"Generate an explorable HTML report of Claude Code session usage (tokens, cache, subagents, skills, expensive prompts) from ~\u002F.claude\u002Fprojects transcripts.","anthropics\u002Fclaude-plugins-official","anthropics","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F76263028?v=4","01M697XGDPXJAVQ8391V2BCYTE","Anthropic","01M7188MR49TZ9N2ZKPXJ7M7HY",47030,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-plugins-official\u002Fblob\u002Fmain\u002Fplugins\u002Fsession-report\u002Fskills\u002Fsession-report\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000034","行政与办公人员","PROFESSION","适用职业",[24,25,26,27,28,29,30,31,32,33,34,35,36,37],"report","session report","session","generate","code","cache","projects","html report","subagents","html","prompts","tokens","transcripts","usage","2026-11-10 10:12:30",false,"---\nname: session-report\ndescription: Generate an explorable HTML report of Claude Code session usage (tokens, cache, subagents, skills, expensive prompts) from ~\u002F.claude\u002Fprojects transcripts.\n---\n\n# Session Report\n\nProduce a self-contained HTML report of Claude Code usage and save it to the current working directory.\n\n## Steps\n\n1. **Get data.** Run the bundled analyzer (default window: last 7 days; honor a different range if the user passed one, e.g. `24h`, `30d`, or `all`). The script `analyze-sessions.mjs` lives in the same directory as this SKILL.md — use its absolute path:\n   ```sh\n   node \u003Cskill-dir>\u002Fanalyze-sessions.mjs --json --since 7d > \u002Ftmp\u002Fsession-report.json\n   ```\n   For all-time, omit `--since`.\n\n2. **Read** `\u002Ftmp\u002Fsession-report.json`. Skim `overall`, `by_project`, `by_subagent_type`, `by_skill`, `cache_breaks`, `top_prompts`.\n\n3. **Copy the template** (also bundled alongside this SKILL.md) to the output path in the current working directory:\n   ```sh\n   cp \u003Cskill-dir>\u002Ftemplate.html .\u002Fsession-report-$(date +%Y%m%d-%H%M).html\n   ```\n\n4. **Edit the output file** (use Edit, not Write — preserve the template's JS\u002FCSS):\n   - Replace the contents of `\u003Cscript id=\"report-data\" type=\"application\u002Fjson\">` with the full JSON from step 1. The page's JS renders the hero total, all tables, bars, and drill-downs from this blob automatically.\n   - Fill the `\u003C!-- AGENT: anomalies -->` block with **3–5 one-line findings**. Express figures as a **% of total tokens** wherever possible (total = `overall.input_tokens.total + overall.output_tokens`). One line per finding, exact markup:\n     ```html\n     \u003Cdiv class=\"take bad\">\u003Cdiv class=\"fig\">41.2%\u003C\u002Fdiv>\u003Cdiv class=\"txt\">\u003Cb>cc-monitor\u003C\u002Fb> consumed 41% of the week across just 3 sessions\u003C\u002Fdiv>\u003C\u002Fdiv>\n     ```\n     Classes: `.take bad` for waste\u002Fanomalies (red), `.take good` for healthy signals (green), `.take info` for neutral facts (blue). The `.fig` is one short number (a %, a count, or a multiplier like `12×`). The `.txt` is one plain-English sentence naming the project\u002Fskill\u002Fprompt; wrap the subject in `\u003Cb>`. Look for: a project or skill eating a disproportionate share, cache-hit \u003C85%, a single prompt >2% of total, subagent types averaging >1M tokens\u002Fcall, cache breaks clustering.\n   - Fill the `\u003C!-- AGENT: optimizations -->` block (at the **bottom** of the page) with 1–4 `\u003Cdiv class=\"callout\">` suggestions tied to specific rows (e.g. \"`\u002Fweekly-status` spawned 7 subagents for 8.1% of total — scope it to fewer parallel agents\").\n   - Do not restructure existing sections.\n\n5. **Report** the saved file path to the user. Do not open it or render it.\n\n## Notes\n\n- The template is the source of interactivity (sorting, expand\u002Fcollapse, block-char bars). Your job is data + narrative, not markup.\n- Keep commentary terse and specific — reference actual project names, numbers, timestamps from the JSON.\n- `top_prompts` already includes subagent tokens and rolls task-notification continuations into the originating prompt.\n- If the JSON is >2MB, trim `top_prompts` to 100 entries and `cache_breaks` to 100 before embedding (they should already be capped).\n","# Session Report\n\nProduce a self-contained HTML report of Claude Code usage and save it to the current working directory.\n\n## Steps\n\n1. **Get data.** Run the bundled analyzer (default window: last 7 days; honor a different range if the user passed one, e.g. `24h`, `30d`, or `all`). The script `analyze-sessions.mjs` lives in the same directory as this SKILL.md — use its absolute path:\n   ```sh\n   node \u003Cskill-dir>\u002Fanalyze-sessions.mjs --json --since 7d > \u002Ftmp\u002Fsession-report.json\n   ```\n   For all-time, omit `--since`.\n\n2. **Read** `\u002Ftmp\u002Fsession-report.json`. Skim `overall`, `by_project`, `by_subagent_type`, `by_skill`, `cache_breaks`, `top_prompts`.\n\n3. **Copy the template** (also bundled alongside this SKILL.md) to the output path in the current working directory:\n   ```sh\n   cp \u003Cskill-dir>\u002Ftemplate.html .\u002Fsession-report-$(date +%Y%m%d-%H%M).html\n   ```\n\n4. **Edit the output file** (use Edit, not Write — preserve the template's JS\u002FCSS):\n   - Replace the contents of `\u003Cscript id=\"report-data\" type=\"application\u002Fjson\">` with the full JSON from step 1. The page's JS renders the hero total, all tables, bars, and drill-downs from this blob automatically.\n   - Fill the `\u003C!-- AGENT: anomalies -->` block with **3–5 one-line findings**. Express figures as a **% of total tokens** wherever possible (total = `overall.input_tokens.total + overall.output_tokens`). One line per finding, exact markup:\n     ```html\n     \u003Cdiv class=\"take bad\">\u003Cdiv class=\"fig\">41.2%\u003C\u002Fdiv>\u003Cdiv class=\"txt\">\u003Cb>cc-monitor\u003C\u002Fb> consumed 41% of the week across just 3 sessions\u003C\u002Fdiv>\u003C\u002Fdiv>\n     ```\n     Classes: `.take bad` for waste\u002Fanomalies (red), `.take good` for healthy signals (green), `.take info` for neutral facts (blue). The `.fig` is one short number (a %, a count, or a multiplier like `12×`). The `.txt` is one plain-English sentence naming the project\u002Fskill\u002Fprompt; wrap the subject in `\u003Cb>`. Look for: a project or skill eating a disproportionate share, cache-hit \u003C85%, a single prompt >2% of total, subagent types averaging >1M tokens\u002Fcall, cache breaks clustering.\n   - Fill the `\u003C!-- AGENT: optimizations -->` block (at the **bottom** of the page) with 1–4 `\u003Cdiv class=\"callout\">` suggestions tied to specific rows (e.g. \"`\u002Fweekly-status` spawned 7 subagents for 8.1% of total — scope it to fewer parallel agents\").\n   - Do not restructure existing sections.\n\n5. **Report** the saved file path to the user. Do not open it or render it.\n\n## Notes\n\n- The template is the source of interactivity (sorting, expand\u002Fcollapse, block-char bars). Your job is data + narrative, not markup.\n- Keep commentary terse and specific — reference actual project names, numbers, timestamps from the JSON.\n- `top_prompts` already includes subagent tokens and rolls task-notification continuations into the originating prompt.\n- If the JSON is >2MB, trim `top_prompts` to 100 entries and `cache_breaks` to 100 before embedding (they should already be capped).\n",{"name":5,"description":7},"main","dceb15d50832e6adf380bedc26dde03d251324b9","plugins\u002Fsession-report\u002Fskills\u002Fsession-report",4889,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-plugins-official","https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins","https:\u002F\u002Fgithub.com\u002Fanthropics","https:\u002F\u002Fanthropic.com","2026-11-13 04:18:23",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add anthropics\u002Fclaude-plugins-official --skill session-report",{"tool":58,"command":59},"bunx","bunx skills add anthropics\u002Fclaude-plugins-official --skill session-report",{"tool":61,"command":62},"pnpm","pnpm dlx skills add anthropics\u002Fclaude-plugins-official --skill session-report","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-plugins-official\u002Fblob\u002Fmain\u002Fplugins\u002Fsession-report\u002Fskills\u002Fsession-report\u002FSKILL.md",true,[66,72],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"analyze-sessions.mjs","SCRIPT","脚本",28225,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-plugins-official\u002Fblob\u002Fmain\u002Fplugins\u002Fsession-report\u002Fskills\u002Fsession-report\u002Fanalyze-sessions.mjs",{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"template.html","REFERENCE","参考文档",26382,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-plugins-official\u002Fblob\u002Fmain\u002Fplugins\u002Fsession-report\u002Fskills\u002Fsession-report\u002Ftemplate.html",[79,112,137,162,183,204],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":83,"sourceHtmlUrl":84,"categories":85,"keywords":91,"publishedAt":38},"01M718BVSPNAK6S5NZCYFDBG6E","skill-creator","Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-plugins-official\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-creator\u002Fskills\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-plugins-official\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-creator\u002Fskills\u002Fskill-creator\u002FSKILL.md",[86],{"categoryNo":87,"categoryName":88,"taxonomyType":89,"taxonomyTypeDesc":90},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111],"skill creator","creator","performance","improve","run evals","new","when","analysis","create","optimize","variance analysis","run","edit","benchmark","existing skill","evals","for","accuracy","scratch","use",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":121,"publishedAt":38},"01M718BPKHVD214FAS1T4E5XCE","receipts","Generate a personal Claude Code usage & impact report (\"receipts\") from this machine's local session transcripts — for justifying Claude Code usage\u002Fspend to a manager, self-review, or \"what have I been using this for\" check-ins. Mines ~\u002F.claude\u002Fprojects 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 `\u002Freceipts`.","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-plugins-official\u002Fblob\u002Fmain\u002Fplugins\u002Freceipts\u002Fskills\u002Freceipts\u002FSKILL.md",[118],{"categoryNo":119,"categoryName":120,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000030","开发工程师",[114,30,122,123,124,125,98,28,126,127,128,129,27,130,131,132,133,134,135,136],"show","up","local","impact","api","review","self","references","markdown","directory","write","git","activity","my","manager",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":38},"01M718BJMX0T4691FJQ62GYY5C","project-artifact","Generate and publish a project status artifact — an opinionated, tabbed status page for a project too big for one update (overview & success criteria, the workstream sequence, next steps, plus background, plan, risks & open questions, and decisions\u002FFAQ when they earn a tab) — published with the built-in Artifact tool to a default-private claude.ai page the user can share with teammates. Use when a piece of work spans several workstreams and you want a shareable overview kept current. Each artifact is backed by a small per-project config in the plugin data dir, so refreshing it re-gathers live state, redeploys the same URL, and reports only the delta. For software projects whose workstreams are PRs, also read swe.md (the X.Y PR-numbering convention; pulling PR state with gh\u002Fgit; a per-PR detail block). Needs the built-in Artifact tool (claude.ai login). Not for single-PR changes or public docs.","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-plugins-official\u002Fblob\u002Fmain\u002Fplugins\u002Fproject-artifact\u002Fskills\u002Fproject-artifact\u002FSKILL.md",[],[144,145,146,147,30,148,149,150,151,152,153,98,154,155,156,157,158,159,160,161],"project","artifact","project artifact","project status","re","default","next steps","open","only","SWE","URL","you","reports","publish","work","plan","status page","next",{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":169,"publishedAt":38},"01M718BF1TTFP5CM0S5HBW64FJ","skill-development","This skill should be used when the user wants to \"create a skill\", \"add a skill to plugin\", \"write a new skill\", \"improve skill description\", \"organize skill content\", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-plugins-official\u002Fblob\u002Fmain\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fskill-development\u002FSKILL.md",[168],{"categoryNo":87,"categoryName":88,"taxonomyType":89,"taxonomyTypeDesc":90},[170,171,172,95,97,173,98,28,100,174,132,175,176,177,178,108,179,180,181,182],"development","skill development","skill to plugin","improve skill","structure","organize","new skill","claude code plugins","add","progressive","best practices","progressive disclosure","plugin",{"skillNo":184,"name":185,"nameZh":6,"description":186,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":190,"publishedAt":38},"01M718BCARZ2J4PW0X3AJCZ8MZ","plugin-structure","This skill should be used when the user asks to \"create a plugin\", \"scaffold a plugin\", \"understand plugin structure\", \"organize plugin components\", \"set up plugin.json\", \"use ${CLAUDE_PLUGIN_ROOT}\", \"add commands\u002Fagents\u002Fskills\u002Fhooks\", \"configure auto-discovery\", or needs guidance on plugin directory layout, manifest configuration, component organization, file naming conventions, or Claude Code plugin architecture best practices.","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-plugins-official\u002Fblob\u002Fmain\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fplugin-structure\u002FSKILL.md",[189],{"categoryNo":87,"categoryName":88,"taxonomyType":89,"taxonomyTypeDesc":90},[174,191,182,192,193,194,123,195,196,98,197,28,198,199,100,200,201,202,131,203],"Plugin Structure","SET","plugin architecture","hooks","auto-discovery","auto","configure","components","architecture","component","layout","organization","commands",{"skillNo":205,"name":206,"nameZh":6,"description":207,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":208,"categories":209,"keywords":211,"publishedAt":38},"01M718B96YP8C46R8KW4KYYMPZ","plugin-settings","This skill should be used when the user asks about \"plugin settings\", \"store plugin configuration\", \"user-configurable plugin\", \".local.md files\", \"plugin state files\", \"read YAML frontmatter\", \"per-project plugin settings\", or wants to make plugin behavior configurable. Documents the .claude\u002Fplugin-name.local.md pattern for storing plugin-specific configuration with YAML frontmatter and markdown content.","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-plugins-official\u002Fblob\u002Fmain\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fplugin-settings\u002FSKILL.md",[210],{"categoryNo":87,"categoryName":88,"taxonomyType":89,"taxonomyTypeDesc":90},[212,182,213,144,124,214,215,98,216,130,217,218,219,220,108,221,222,223,224,225],"Plugin Settings","settings","files","documents","markdown content","read","pattern","frontmatter","make","store","with","state","make plugin","name"]