[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72YXMSVD28QYHJ70AVJ9SBP":3,"skill-same:01M72YXMSVD28QYHJ70AVJ9SBP":55},{"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":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":13,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":44},"01M72YXMSVD28QYHJ70AVJ9SBP","session-audit",null,"Audit the cost and efficiency of Claude Code sessions that ran agile-skills: per-skill and per-subagent spend, a before\u002Fafter delta normalised by work shipped, and ranked skill improvements. Triggers: audit this session's cost, analyze the session transcripts, compare before and after sessions, is the new version more efficient, where do the tokens go, subagent cost breakdown, find efficiency improvements.","cedricfarinazzo\u002Fagile-skills","cedricfarinazzo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F34288081?v=4","01M72YSXQAMF9679DT1EGZV51E","01M72YSXRG377986J64G71PJZE",0,"MIT","https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo\u002Fagile-skills\u002Fblob\u002Fmaster\u002Fsession-audit\u002Fskills\u002Fsession-audit\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: session-audit\ndescription: \"Audit the cost and efficiency of Claude Code sessions that ran agile-skills: per-skill and per-subagent spend, a before\u002Fafter delta normalised by work shipped, and ranked skill improvements. Triggers: audit this session's cost, analyze the session transcripts, compare before and after sessions, is the new version more efficient, where do the tokens go, subagent cost breakdown, find efficiency improvements.\"\nuser-invocable: true\n---\n\n# session-audit\n\nAnswers two questions from session transcripts: **does the run work**, and **does it ship more work for less spend** than another run. Then names where the remaining waste is and which skill or agent edit removes it.\n\nRead-only: it reads transcripts, the plugin source and the consumer repo's `gh` history. It edits no skill unless the user asks afterwards.\n\n**Input:** one run to profile, or two to compare (before \u002F after). A run is a session title, a session id, or transcript paths; one run may span several transcripts. Ask once for whatever is missing.\n\n**Host scope:** this skill can run on either host, but its input is Claude Code transcripts only. On Codex, ask for a Claude transcript when the request identifies a native Codex session; do not report zero usage as a successful audit. Native Codex transcript parsing is intentionally unsupported. Keep `${CLAUDE_PLUGIN_ROOT}` in the bundled commands.\n\n## 1. Locate the runs and what changed between them\n\n```bash\nS=\"${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fsession-audit\u002Fscripts\u002Fsession_usage.py\"\npython3 \"$S\" find \u003Ctitle-or-session-id>          # exact title or id → transcript paths\n```\n\nTwo transcripts under one title are one run (a resume or fork); the script counts their shared messages once.\n\nFor a comparison, read the plugin history between the two runs (`git log` of the skills source when it is available) and the `human turns` the report prints. **A run is rarely a clean sample**: a mid-run instruction, a plugin reload or a model switch splits it into segments. Find those from the human turns and the dispatch timeline (`--agents`), and say which segment is which.\n\n## 2. Measure spend\n\n```bash\npython3 \"$S\" report --run before=\u003Ca.jsonl> --run after=\u003Cb.jsonl>,\u003Cc.jsonl> [--agents] [--price opus=\u003Cin>,\u003Cout>]\n```\n\nPer run it prints total spend, the top-level share, top-level context growth, tool and shell mix, wait\u002Fpoll calls, dispatch prompt and receipt sizes, a per-agent-type table, and the human turns.\n\n- Default prices are assumptions. Confirm current prices or state them as assumed; ratios between runs hold either way.\n- Transcripts under-record output; cache reads dominate, so compare on total units and cost, never on output alone.\n\n## 3. Measure work shipped\n\nSpend means nothing until divided by output. From the consumer repo, over each run's window:\n\n```bash\ngh pr list --state all --limit 100 --search \"created:>=\u003Cdate>\" \\\n  --json number,state,additions,deletions,changedFiles,createdAt,mergedAt,title\n```\n\nCount merged PRs and added lines per run. Leave out throwaway PRs closed unmerged and name any outlier (a generated fixture, a vendored file) excluded from the line count. No `gh` → use tickets moved to Done in the window and say the measure is coarser.\n\n## 4. Normalise and compare\n\nRe-run the report with the counts from step 3; it prints the efficiency table:\n\n```bash\npython3 \"$S\" report --run before=… --run after=… --shipped before=\u003CPRs>,\u003Clines> --shipped after=\u003CPRs>,\u003Clines>\n```\n\n| measure | before | after | gain |\n|---|---|---|---|\n| Cost per merged PR | | | |\n| Cost per added line | | | |\n| Units per merged PR | | | |\n| Units per added line | | | |\n\n**Always show this table to the user**, with the script's figures, for a single run too (no gain column). When PR sizes differ between runs, the per-line figure is the fair one; give both and say which you lead with. Give the cost gain and the unit gain separately: a model-tier change lowers cost without lowering units.\n\n## 5. Check that it still works\n\nCheaper is only a win if the gates held. Sample at least two transcripts of whichever agent got cheaper or moved down a tier, and read what it did, not its receipt: did the review read the changed files, were the reviewed-sha and CI gates run, was a follow-up filed. Then check base-branch CI after the run's merges. State what you did not attribute rather than implying a clean result.\n\n## 6. Find the waste\n\nRank by cost, and back each with a number from the report:\n\n- **Top-level share and context growth.** Every top-level call re-reads its whole context: calls × median context is the bill. Look at `wait\u002Fpoll calls`, the shell mix, and first → max context.\n- **Wait loops.** A `sleep` loop or a short wait re-issued on expiry wakes the session many times per CI run.\n- **Work done in the wrong context.** Diagnosis, log reading or review performed at the top level instead of in a short-lived agent.\n- **Prompt and receipt size.** Standing rules restated in every dispatch; receipts longer than the orchestrator needs.\n- **Cold re-reads.** Per-phase agents each re-reading the same ticket, plan and files: high `$\u002Fdispatch` on agents whose own work is small.\n- **Tier against the downstream check.** An expensive tier on a phase something re-reads, or a cheap tier on a phase nothing re-reads.\n- **Tool-grant gaps.** A workaround in a transcript (a raw `curl`, a credential read from the environment) means a read tool is missing from that agent's grant.\n\nEvery finding names the skill or agent file to change and a rough saving.\n\n## Report\n\nVerdict first, in one line. Then the step-4 efficiency table, the run totals (PRs merged, lines added, total cost, top-level share), where the saving came from, problems ranked by cost, and proposed edits. Close with the caveats that bound the claim: mixed segments, assumed prices, anything not verified.\n\nKeep the report generic enough to share: counts and ratios, not ticket text or customer content.\n\nEnd with `✅ Done \u002F ⚠️ Still needed \u002F 👉 Next step`.\n","# session-audit\n\nAnswers two questions from session transcripts: **does the run work**, and **does it ship more work for less spend** than another run. Then names where the remaining waste is and which skill or agent edit removes it.\n\nRead-only: it reads transcripts, the plugin source and the consumer repo's `gh` history. It edits no skill unless the user asks afterwards.\n\n**Input:** one run to profile, or two to compare (before \u002F after). A run is a session title, a session id, or transcript paths; one run may span several transcripts. Ask once for whatever is missing.\n\n**Host scope:** this skill can run on either host, but its input is Claude Code transcripts only. On Codex, ask for a Claude transcript when the request identifies a native Codex session; do not report zero usage as a successful audit. Native Codex transcript parsing is intentionally unsupported. Keep `${CLAUDE_PLUGIN_ROOT}` in the bundled commands.\n\n## 1. Locate the runs and what changed between them\n\n```bash\nS=\"${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fsession-audit\u002Fscripts\u002Fsession_usage.py\"\npython3 \"$S\" find \u003Ctitle-or-session-id>          # exact title or id → transcript paths\n```\n\nTwo transcripts under one title are one run (a resume or fork); the script counts their shared messages once.\n\nFor a comparison, read the plugin history between the two runs (`git log` of the skills source when it is available) and the `human turns` the report prints. **A run is rarely a clean sample**: a mid-run instruction, a plugin reload or a model switch splits it into segments. Find those from the human turns and the dispatch timeline (`--agents`), and say which segment is which.\n\n## 2. Measure spend\n\n```bash\npython3 \"$S\" report --run before=\u003Ca.jsonl> --run after=\u003Cb.jsonl>,\u003Cc.jsonl> [--agents] [--price opus=\u003Cin>,\u003Cout>]\n```\n\nPer run it prints total spend, the top-level share, top-level context growth, tool and shell mix, wait\u002Fpoll calls, dispatch prompt and receipt sizes, a per-agent-type table, and the human turns.\n\n- Default prices are assumptions. Confirm current prices or state them as assumed; ratios between runs hold either way.\n- Transcripts under-record output; cache reads dominate, so compare on total units and cost, never on output alone.\n\n## 3. Measure work shipped\n\nSpend means nothing until divided by output. From the consumer repo, over each run's window:\n\n```bash\ngh pr list --state all --limit 100 --search \"created:>=\u003Cdate>\" \\\n  --json number,state,additions,deletions,changedFiles,createdAt,mergedAt,title\n```\n\nCount merged PRs and added lines per run. Leave out throwaway PRs closed unmerged and name any outlier (a generated fixture, a vendored file) excluded from the line count. No `gh` → use tickets moved to Done in the window and say the measure is coarser.\n\n## 4. Normalise and compare\n\nRe-run the report with the counts from step 3; it prints the efficiency table:\n\n```bash\npython3 \"$S\" report --run before=… --run after=… --shipped before=\u003CPRs>,\u003Clines> --shipped after=\u003CPRs>,\u003Clines>\n```\n\n| measure | before | after | gain |\n|---|---|---|---|\n| Cost per merged PR | | | |\n| Cost per added line | | | |\n| Units per merged PR | | | |\n| Units per added line | | | |\n\n**Always show this table to the user**, with the script's figures, for a single run too (no gain column). When PR sizes differ between runs, the per-line figure is the fair one; give both and say which you lead with. Give the cost gain and the unit gain separately: a model-tier change lowers cost without lowering units.\n\n## 5. Check that it still works\n\nCheaper is only a win if the gates held. Sample at least two transcripts of whichever agent got cheaper or moved down a tier, and read what it did, not its receipt: did the review read the changed files, were the reviewed-sha and CI gates run, was a follow-up filed. Then check base-branch CI after the run's merges. State what you did not attribute rather than implying a clean result.\n\n## 6. Find the waste\n\nRank by cost, and back each with a number from the report:\n\n- **Top-level share and context growth.** Every top-level call re-reads its whole context: calls × median context is the bill. Look at `wait\u002Fpoll calls`, the shell mix, and first → max context.\n- **Wait loops.** A `sleep` loop or a short wait re-issued on expiry wakes the session many times per CI run.\n- **Work done in the wrong context.** Diagnosis, log reading or review performed at the top level instead of in a short-lived agent.\n- **Prompt and receipt size.** Standing rules restated in every dispatch; receipts longer than the orchestrator needs.\n- **Cold re-reads.** Per-phase agents each re-reading the same ticket, plan and files: high `$\u002Fdispatch` on agents whose own work is small.\n- **Tier against the downstream check.** An expensive tier on a phase something re-reads, or a cheap tier on a phase nothing re-reads.\n- **Tool-grant gaps.** A workaround in a transcript (a raw `curl`, a credential read from the environment) means a read tool is missing from that agent's grant.\n\nEvery finding names the skill or agent file to change and a rough saving.\n\n## Report\n\nVerdict first, in one line. Then the step-4 efficiency table, the run totals (PRs merged, lines added, total cost, top-level share), where the saving came from, problems ranked by cost, and proposed edits. Close with the caveats that bound the claim: mixed segments, assumed prices, anything not verified.\n\nKeep the report generic enough to share: counts and ratios, not ticket text or customer content.\n\nEnd with `✅ Done \u002F ⚠️ Still needed \u002F 👉 Next step`.\n",{"name":5,"description":7,"user-invocable":23},true,"master","5f163e1c0720bcc8f5c9caf4e675c301585b3b29","session-audit\u002Fskills\u002Fsession-audit","https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo\u002Fagile-skills","https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo","https:\u002F\u002Fcedricfarinazzo.fr\u002F","IT engineer specialized in Cybersecurity and SRE\u002FDevOps","2026-11-13 03:28:11",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":23},[34,37,40],{"tool":35,"command":36},"npx","npx skills add cedricfarinazzo\u002Fagile-skills --skill session-audit",{"tool":38,"command":39},"bunx","bunx skills add cedricfarinazzo\u002Fagile-skills --skill session-audit",{"tool":41,"command":42},"pnpm","pnpm dlx skills add cedricfarinazzo\u002Fagile-skills --skill session-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo\u002Fagile-skills\u002Fblob\u002Fmaster\u002Fsession-audit\u002Fskills\u002Fsession-audit\u002FSKILL.md",[45,51],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"scripts\u002Fsession_usage.py","SCRIPT","脚本",12376,"https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo\u002Fagile-skills\u002Fblob\u002Fmaster\u002Fsession-audit\u002Fskills\u002Fsession-audit\u002Fscripts\u002Fsession_usage.py",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"scripts\u002Ftest_session_usage.py",3017,"https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo\u002Fagile-skills\u002Fblob\u002Fmaster\u002Fsession-audit\u002Fskills\u002Fsession-audit\u002Fscripts\u002Ftest_session_usage.py",[56,63,70,77,84,91],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":18},"01M72YXG2E8CAD3YHTHFESKF2B","deep-it-project-review","Autonomously perform a deep, evidence-backed technical review of a software or IT project across applicable architecture, code, security, delivery, operations, and lifecycle domains without modifying project files. Triggers: deep IT project review, technical project review, architecture audit, repository assessment, assess this codebase, review this project.","https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo\u002Fagile-skills\u002Fblob\u002Fmaster\u002Fproject-review\u002Fskills\u002Fdeep-it-project-review\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M72YXBQJCSDC60PVKA6H9SJ3","test-refactor","Audit one test suite at a time for dead weight, duplication, parallel-unsafety and runtime cost, or characterize behavior before a risky refactor — with production code frozen and good coverage kept, proven per module rather than assumed. Triggers: test refactor, characterize before refactor, characterization tests, clean the tests, refactor the tests, test suite audit, DRY the tests, parallelize the test suite, speed up the tests.","https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo\u002Fagile-skills\u002Fblob\u002Fmaster\u002Fdeep-refactor\u002Fskills\u002Ftest-refactor\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M72YX7QCP7MA1H2DSWVG6Y4C","doc-refactor","Audit every markdown file in a repo — READMEs, docs\u002F, and agent-instruction files — for lies, drift, duplication and bloat, then ticket and ship the cleanup as a sequenced PR train, with source code frozen and every surviving claim verified against the repo rather than read. Triggers: doc refactor, refactor the docs, clean the docs, documentation audit, README audit, docs are stale, DRY the docs, audit every markdown file.","https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo\u002Fagile-skills\u002Fblob\u002Fmaster\u002Fdeep-refactor\u002Fskills\u002Fdoc-refactor\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M72YX36Z9MSECJH7FJ4JM09Z","deep-refactor","Audit an entire codebase for defects, waste and debt, then ticket and ship the findings as a sequenced PR train — without breaking the test contract. Triggers: deep refactor, refactor audit, clean the codebase, DRY pass, audit and fix everything.","https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo\u002Fagile-skills\u002Fblob\u002Fmaster\u002Fdeep-refactor\u002Fskills\u002Fdeep-refactor\u002FSKILL.md",[],[],{"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":18},"01M72YWZ1HEXSKQ7JCSVR2HPT0","agile-sprint-drain","Drain the active sprint to a fixed point: auto-alternate agile-10-implement (build) and agile-11-merge-train (merge) until both empty (DRAINED) or blocked (STUCK). Optional concurrency=N, dispatch=session, max-merges=N. Triggers: drain the sprint, run the sprint to completion, implement and merge until done, clear the whole board, ship the sprint.","https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo\u002Fagile-skills\u002Fblob\u002Fmaster\u002Fagile-sprint-drain\u002Fskills\u002Fagile-sprint-drain\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":18},"01M72YWSTTAKSC7WXDRAA4QXNS","agile-15-retro","Sprint retro in Confluence + Roadmap update. Triggers: run retro, close sprint, what did we learn. After all Stories Done, hands off to skill 5.","https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo\u002Fagile-skills\u002Fblob\u002Fmaster\u002Fagile-sprint-close\u002Fskills\u002Fagile-15-retro\u002FSKILL.md",[],[]]