[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C6N0S1EPRPHQK0M4V8NGVD":3,"skill-same:01M6C6N0S1EPRPHQK0M4V8NGVD":91},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":62,"repositoryHtmlUrl":63,"repositoryHomepageUrl":17,"ownerHtmlUrl":64,"ownerBlogUrl":17,"ownerDescription":65,"updatedAt":66,"install":67,"resources":80},"01M6C6N0S1EPRPHQK0M4V8NGVD","workflow-scale-budget","Workflow 规模与预算估算","Size a Workflow script's agent count before running it, or tally a finished run's agents and tokens. Use when authoring or proposing a Workflow fan-out, or asking what a run used.","在运行前估算 Workflow 脚本所需的智能体数量，或统计一次已完成运行的智能体数和 token 用量。适用于编写或提议 Workflow 分发方案，或查询某次运行的资源消耗。","laurigates\u002Fclaude-plugins","laurigates","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F13014001?v=4","01M6C59YHWS9C7KMXKSRX1YXNP","Lauri Gates","01M6C59YP2APG9YAM4DWYQYGFJ",60,"MIT",null,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fworkflow-orchestration-plugin\u002Fskills\u002Fworkflow-scale-budget\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRN0DBCRG4XGJMB6QQEP11","编码任务委派","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"Budget","workflow","workflow scale budget","scale","count","it","authoring","script","2026","tally","size","when","tokens","sep","running","Bash","use","grep","read","run","2026-11-10 10:12:30",false,"---\nname: workflow-scale-budget\ndescription: Size a Workflow script's agent count before running it, or tally a finished run's agents and tokens. Use when authoring or proposing a Workflow fan-out, or asking what a run used.\nallowed-tools: Bash, Read, Grep, Glob, TodoWrite\ncreated: 2026-09-29\nmodified: 2026-11-12\nreviewed: 2026-09-29\n---\n\n# A Workflow's Cost Is Its Agent Count\n\n## When to Use This Skill\n\n| Use this skill when... | Use something else when... |\n|---|---|\n| Writing or proposing a `Workflow` script, or estimating its cost | Writing the script's API calls — load the built-in `workflow-authoring` skill |\n| The `hooks-plugin\u002Fhooks\u002Fworkflow-scale-guard.sh` hook asked before a run | Recovering a run already killed mid-flight — use `workflow-orchestration-plugin:workflow-interrupted-run-recovery` |\n| Choosing between per-item and grouped fan-out | Ordering dependent waves — use `workflow-orchestration-plugin:workflow-wave-dispatch` |\n| A Workflow run has finished and you want its realised agent count or tokens | The tally WARNs `agents_without_result` (the run ended, whether killed, failed or completed, with agents unfinished) — use `workflow-orchestration-plugin:workflow-interrupted-run-recovery` |\n\nThe hook enforces the bound (PreToolUse on `Workflow`, `ask` when the estimated\nagent count exceeds `CLAUDE_HOOKS_WORKFLOW_MAX_AGENTS`, default 10). The two\nshipped mechanisms do **not** cover this: `workflowSizeGuideline` is advisory\nsystem-prompt text that ends \"not a hard limit\", and `skipWorkflowUsageWarning`\nis a **one-time** acceptance — once set, auto mode never prompts before a\nworkflow again, at any scale.\n\n## Execution\n\n1. **Count agents, not tokens.** Every fresh agent builds its own prompt cache\n   at 1.25x input price and a short-lived one never reads it back. 2026-09-15:\n   55.2M cache *writes* cost $345 while 252.5M cache *reads* cost $126 —\n   trimming prompts optimises the cheaper half.\n2. **Find the per-item multiplier.** One reviewer per changed file is fine.\n   `pipeline(units, edit, review, repair, re-review)` is 4x an unknown N; that\n   shape across five runs produced 496 subagents against a guideline of 10, and\n   $528 in an afternoon.\n3. **Group by theme, not by item, when the work is per-file.** The same 43-file\n   documentation sweep ran twice on 2026-09-16: one editor plus one reviewer per\n   file (138 agents, 13.8M subagent tokens, 49 killed by the usage limit before\n   reviewing anything), then seven editors each owning a themed group of 5–11\n   files (7 agents, 1.93M tokens, zero failures). Same findings, same refs, same\n   gates — an eighth of the cost. Replace the reviewer half with one\n   deterministic gate (pre-commit, a scripted link check, reading the diff)\n   rather than N agents.\n4. **Design for re-driving, not resuming.** When the usage limit lands mid-run\n   the session id changes, and `resumeFromRunId` looks for the journal under the\n   *new* session directory and reports nothing to resume (observed 2026-09-16 on\n   two runs whose journals sat intact under the old id). Have agents write\n   output to disk as they go, keep each phase independently runnable, and record\n   what completed so a replacement run can skip it. The 66 edits that survived\n   that limit did so because they were already on disk.\n5. **State the expected agent count when proposing the workflow, and cap the\n   fan-out where the list is produced** (`.slice(0, N)` — the guard reads an\n   explicit cap as the bound).\n6. **A run large enough to trip the gate is the user's call.** Never raise\n   `CLAUDE_HOOKS_WORKFLOW_MAX_AGENTS` to clear your own prompt.\n7. **An issue sweep whose agents file follow-ups does not converge on its own.**\n   Implementers and reviewers are told to split out-of-scope defects into new\n   issues, so each round fills the queue it is draining. 2026-10-04,\n   mcu-tinkering-lab: round 1 (41 agents, 10.2M subagent tokens) closed 21\n   issues and filed 18; round 2 (32 agents, 7.3M tokens) closed 16 and filed\n   15, four of them edge cases in a single checker script. Plan the number of\n   rounds up front, triage the new issues between rounds, and carry the\n   low-value ones as backlog. \"Clear the plate\" is not a stopping condition\n   for a loop that refills the plate.\n8. **Agents share one GitHub REST rate limit.** Every agent and the\n   orchestrating session draw on the same token's 5,000 REST calls an hour, so\n   the limit is a cost of agent count beside tokens. 2026-11-10, a 26-agent\n   run exhausted it: for about 20 minutes `gh run list`, `gh run view --log`\n   and `gh api` returned HTTP 403, while `gh pr` and `gh issue` (GraphQL, a\n   separate budget) kept working. The orchestrator could not read CI logs, or\n   merge through a hook that does a REST lookup. One line in the next\n   run's agent briefs, \"use git for anything git can answer, read each issue\n   once, do not poll gh\", kept a 19-agent run under the limit. Check the\n   remaining budget with `gh api rate_limit --jq .resources.core`.\n9. **After a run finishes:** `bash \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fworkflow-run-tally.sh\" \u003Crun-id>`\n   tallies its realised agents and tokens from the transcripts. A session id tallies\n   every run in that session, then prints one `WORKFLOW SESSION TALLY` block with the\n   agents and tokens summed across the runs and the worst run status. A WARN with\n   `agents_without_result` means the run ended with agents unfinished: see\n   `workflow-orchestration-plugin:workflow-interrupted-run-recovery`. Summing the raw\n   usage lines overstates cache tokens, because one API message is written as several\n   lines, so the script keeps only the last line per message id.\n\n## Agentic Optimizations\n\n| Context | Command |\n|---------|---------|\n| Tally one finished run | `bash \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fworkflow-run-tally.sh\" \u003Cwf_run_id>` |\n| Tally every run in a session | `bash \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fworkflow-run-tally.sh\" \u003Csession_id>` |\n| Remaining shared GitHub REST budget | `gh api rate_limit --jq .resources.core` |\n| Transcripts outside `~\u002F.claude\u002Fprojects` | `bash \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fworkflow-run-tally.sh\" \u003Cid> --projects-dir \u003Cdir>` |\n","# A Workflow's Cost Is Its Agent Count\n\n## When to Use This Skill\n\n| Use this skill when... | Use something else when... |\n|---|---|\n| Writing or proposing a `Workflow` script, or estimating its cost | Writing the script's API calls — load the built-in `workflow-authoring` skill |\n| The `hooks-plugin\u002Fhooks\u002Fworkflow-scale-guard.sh` hook asked before a run | Recovering a run already killed mid-flight — use `workflow-orchestration-plugin:workflow-interrupted-run-recovery` |\n| Choosing between per-item and grouped fan-out | Ordering dependent waves — use `workflow-orchestration-plugin:workflow-wave-dispatch` |\n| A Workflow run has finished and you want its realised agent count or tokens | The tally WARNs `agents_without_result` (the run ended, whether killed, failed or completed, with agents unfinished) — use `workflow-orchestration-plugin:workflow-interrupted-run-recovery` |\n\nThe hook enforces the bound (PreToolUse on `Workflow`, `ask` when the estimated\nagent count exceeds `CLAUDE_HOOKS_WORKFLOW_MAX_AGENTS`, default 10). The two\nshipped mechanisms do **not** cover this: `workflowSizeGuideline` is advisory\nsystem-prompt text that ends \"not a hard limit\", and `skipWorkflowUsageWarning`\nis a **one-time** acceptance — once set, auto mode never prompts before a\nworkflow again, at any scale.\n\n## Execution\n\n1. **Count agents, not tokens.** Every fresh agent builds its own prompt cache\n   at 1.25x input price and a short-lived one never reads it back. 2026-09-15:\n   55.2M cache *writes* cost $345 while 252.5M cache *reads* cost $126 —\n   trimming prompts optimises the cheaper half.\n2. **Find the per-item multiplier.** One reviewer per changed file is fine.\n   `pipeline(units, edit, review, repair, re-review)` is 4x an unknown N; that\n   shape across five runs produced 496 subagents against a guideline of 10, and\n   $528 in an afternoon.\n3. **Group by theme, not by item, when the work is per-file.** The same 43-file\n   documentation sweep ran twice on 2026-09-16: one editor plus one reviewer per\n   file (138 agents, 13.8M subagent tokens, 49 killed by the usage limit before\n   reviewing anything), then seven editors each owning a themed group of 5–11\n   files (7 agents, 1.93M tokens, zero failures). Same findings, same refs, same\n   gates — an eighth of the cost. Replace the reviewer half with one\n   deterministic gate (pre-commit, a scripted link check, reading the diff)\n   rather than N agents.\n4. **Design for re-driving, not resuming.** When the usage limit lands mid-run\n   the session id changes, and `resumeFromRunId` looks for the journal under the\n   *new* session directory and reports nothing to resume (observed 2026-09-16 on\n   two runs whose journals sat intact under the old id). Have agents write\n   output to disk as they go, keep each phase independently runnable, and record\n   what completed so a replacement run can skip it. The 66 edits that survived\n   that limit did so because they were already on disk.\n5. **State the expected agent count when proposing the workflow, and cap the\n   fan-out where the list is produced** (`.slice(0, N)` — the guard reads an\n   explicit cap as the bound).\n6. **A run large enough to trip the gate is the user's call.** Never raise\n   `CLAUDE_HOOKS_WORKFLOW_MAX_AGENTS` to clear your own prompt.\n7. **An issue sweep whose agents file follow-ups does not converge on its own.**\n   Implementers and reviewers are told to split out-of-scope defects into new\n   issues, so each round fills the queue it is draining. 2026-10-04,\n   mcu-tinkering-lab: round 1 (41 agents, 10.2M subagent tokens) closed 21\n   issues and filed 18; round 2 (32 agents, 7.3M tokens) closed 16 and filed\n   15, four of them edge cases in a single checker script. Plan the number of\n   rounds up front, triage the new issues between rounds, and carry the\n   low-value ones as backlog. \"Clear the plate\" is not a stopping condition\n   for a loop that refills the plate.\n8. **Agents share one GitHub REST rate limit.** Every agent and the\n   orchestrating session draw on the same token's 5,000 REST calls an hour, so\n   the limit is a cost of agent count beside tokens. 2026-11-10, a 26-agent\n   run exhausted it: for about 20 minutes `gh run list`, `gh run view --log`\n   and `gh api` returned HTTP 403, while `gh pr` and `gh issue` (GraphQL, a\n   separate budget) kept working. The orchestrator could not read CI logs, or\n   merge through a hook that does a REST lookup. One line in the next\n   run's agent briefs, \"use git for anything git can answer, read each issue\n   once, do not poll gh\", kept a 19-agent run under the limit. Check the\n   remaining budget with `gh api rate_limit --jq .resources.core`.\n9. **After a run finishes:** `bash \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fworkflow-run-tally.sh\" \u003Crun-id>`\n   tallies its realised agents and tokens from the transcripts. A session id tallies\n   every run in that session, then prints one `WORKFLOW SESSION TALLY` block with the\n   agents and tokens summed across the runs and the worst run status. A WARN with\n   `agents_without_result` means the run ended with agents unfinished: see\n   `workflow-orchestration-plugin:workflow-interrupted-run-recovery`. Summing the raw\n   usage lines overstates cache tokens, because one API message is written as several\n   lines, so the script keeps only the last line per message id.\n\n## Agentic Optimizations\n\n| Context | Command |\n|---------|---------|\n| Tally one finished run | `bash \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fworkflow-run-tally.sh\" \u003Cwf_run_id>` |\n| Tally every run in a session | `bash \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fworkflow-run-tally.sh\" \u003Csession_id>` |\n| Remaining shared GitHub REST budget | `gh api rate_limit --jq .resources.core` |\n| Transcripts outside `~\u002F.claude\u002Fprojects` | `bash \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fworkflow-run-tally.sh\" \u003Cid> --projects-dir \u003Cdir>` |\n",{"name":5,"created":56,"modified":57,"reviewed":56,"description":7,"allowed-tools":58},1790640000000,1794441600000,"Bash, Read, Grep, Glob, TodoWrite","main","b47840019d190aa9afa1fd8d6d42ddd584a45641","workflow-orchestration-plugin\u002Fskills\u002Fworkflow-scale-budget",6,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins","https:\u002F\u002Fgithub.com\u002Flaurigates","Linux enthusiast, cloud engineer, neovim addict, electronics hobbyist.","2026-11-15 03:36:11",{"source":9,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add laurigates\u002Fclaude-plugins --skill workflow-scale-budget",{"tool":73,"command":74},"bunx","bunx skills add laurigates\u002Fclaude-plugins --skill workflow-scale-budget",{"tool":76,"command":77},"pnpm","pnpm dlx skills add laurigates\u002Fclaude-plugins --skill workflow-scale-budget","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fworkflow-orchestration-plugin\u002Fskills\u002Fworkflow-scale-budget\u002FSKILL.md",true,[81,87],{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"scripts\u002Ftests\u002Ftest-workflow-run-tally.sh","SCRIPT","脚本",23150,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fworkflow-orchestration-plugin\u002Fskills\u002Fworkflow-scale-budget\u002Fscripts\u002Ftests\u002Ftest-workflow-run-tally.sh",{"path":88,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":89,"sourceHtmlUrl":90},"scripts\u002Fworkflow-run-tally.sh",15897,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fworkflow-orchestration-plugin\u002Fskills\u002Fworkflow-scale-budget\u002Fscripts\u002Fworkflow-run-tally.sh",[92,100,122,143,158,181],{"skillNo":93,"name":94,"nameZh":17,"description":95,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":99},"01M7DS1CAJ1ESDX08PENF01J0S","session-workflow-capture","Workflow-tool scripts and workflow friction from this session, filed as issues here or in the plugins repo. Use when a session ran Workflow scripts.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fsession-plugin\u002Fskills\u002Fsession-workflow-capture\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":101,"name":102,"nameZh":17,"description":103,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":51},"01M70PFHMH9ADY0CRE6047Y4B2","kitty-show-image","Show the user an image with a note on what to judge, via a file send or a labelled kitty tab. Use when the user must see an image, or icat fails with no \u002Fdev\u002Ftty.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-show-image\u002FSKILL.md",[],[107,108,109,110,111,112,113,114,115,116,47,42,46,117,118,119,120,121,39,49],"show","kitty show image","image","kitty","show image","ls","get","send","open","dev","file","text","with","xdg","via",{"skillNo":123,"name":124,"nameZh":17,"description":125,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":51},"01M70PFEN18HKQ4RCQ1VPGMPTB","kitty-session-persistence","Snapshot and restore kitty terminal sessions on macOS. Use when surviving WindowServer hangs without losing tabs, configuring snapshots, or restoring after a force-reboot.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-session-persistence\u002FSKILL.md",[],[110,129,130,131,132,133,42,46,134,135,136,39,49,137,138,139,140,141,142,47],"kitty session persistence","session","persistence","false","snapshots","uname","reboot","terminal","write","edit","snapshot","macos","sessions","restore",{"skillNo":144,"name":145,"nameZh":17,"description":146,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":51},"01M70PFC77XGXCVQ1543VGZHYR","kitty-remote-control","Safe kitty remote control from an agent — read panes with kitty @ ls\u002Fget-text, notify, and never mutate the live terminal unasked. Use when running inside kitty.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-remote-control\u002FSKILL.md",[],[150,151,110,152,153,112,45,154,113,155,156,47,42,157,46,118,119,136,39,49],"kitty remote control","remote","control","remote control","never","panes","notify","query",{"skillNo":159,"name":160,"nameZh":17,"description":161,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":162,"categories":163,"keywords":164,"publishedAt":51},"01M70P6WVMCT5JG4SACTM69AF9","docs-reference-check","Dangling doc-reference gate: flag markdown naming repo paths or relative links that no longer exist. Use when docs cite moved\u002Fdeleted files, or wiring a doc-drift lint.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fdocumentation-plugin\u002Fskills\u002Fdocs-reference-check\u002FSKILL.md",[],[165,166,167,168,169,170,171,172,173,174,47,42,46,175,117,176,177,178,179,180],"docs reference check","check","reference check","reference","docs","links","python3","repo","files","auto","drift","lint","wiring","chezmoi","references","cp",{"skillNo":182,"name":183,"nameZh":184,"description":185,"descriptionZh":186,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":187,"categories":188,"keywords":195,"publishedAt":51},"01M6C6NDE7DAQGNWSF22J5CJ0Z","youtube-upload","YouTube 视频上传与编辑","Upload a video to YouTube via the Data API v3 and edit its title, description, tags or thumbnail afterwards. Use when publishing or retitling a YouTube video.","通过 Data API v3 将视频上传到 YouTube，并在之后编辑其标题、描述、标签或缩略图。适用于发布 YouTube 视频或修改其标题。","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fyoutube-plugin\u002Fskills\u002Fyoutube-upload\u002FSKILL.md",[189,192],{"categoryNo":190,"categoryName":191,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQV98WRP4APE9VKKKKJ6FV","社交媒体与内容平台管理",{"categoryNo":193,"categoryName":194,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C55A3R2M9C8CAKG3W16HTA","内容创作者",[196,197,198,199,171,50,49,200,138,201,202,203,47,46,117,204,205,42,206,207,208,121,39],"youtube upload","upload","youtube","Video","uv run","publishing","data","uv","api","v3","tags","id","title"]