[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KWSKGVGP7G6ETEMWXSV07K":3,"skill-same:01M6KWSKGVGP7G6ETEMWXSV07K":83},{"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":26,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":6,"ownerHtmlUrl":59,"ownerBlogUrl":60,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M6KWSKGVGP7G6ETEMWXSV07K","budget",null,"Check the Claude usage\u002Ftoken budget before dispatching subagents or large fan-outs. Reports session and weekly (all-models + per-model) utilization and reset times, warns when near a cap, and guides right-sizing, deferring, and scheduling a wake-up to resume after a usage-limit reset.","dougborg\u002Fharness-kit","dougborg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1261222?v=4","01M6KWS4PB51EYD4ZDJJSGNGB2","Doug Borg","01M6KWS4T8ZZW6SX5QZS9B5BN2",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdougborg\u002Fharness-kit\u002Fblob\u002Fmain\u002Fclaude-skills\u002Fbudget\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000038","人力资源","PROFESSION","适用职业",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000040","财务",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"Budget","weekly","orchestration","near","limit","usage","batches","guides","long","reset","claude usage","quota","scheduling","reports","resume","up","session","check","model","Bash","2026-11-10 10:12:30",false,"---\nname: budget\ndescription: >-\n  Check the Claude usage\u002Ftoken budget before dispatching subagents or large\n  fan-outs. Reports session and weekly (all-models + per-model) utilization and\n  reset times, warns when near a cap, and guides right-sizing, deferring, and\n  scheduling a wake-up to resume after a usage-limit reset.\nwhen_to_use: >-\n  Before any orchestration-scale work — dispatching subagents, large fan-outs,\n  long-running batches — or when the user asks about usage, quota, limits, or\n  when the budget resets. A PreToolUse hook also surfaces this automatically.\nallowed-tools: Bash(${CLAUDE_SKILL_DIR}\u002Fclaude-usage-check.sh*), Bash(claude -p*), Read\n---\n\n# \u002Fbudget — Budget-Aware Coordination\n\n> **Claude Code only.** Codex must stop and report that this workflow is not\n> supported; never invoke `claude -p` from a Codex session.\n\nTreat the token budget as a managed resource when acting as a\n**work-coordination \u002F orchestrator session** — anything that dispatches\nsubagents, fans out parallel work, or runs long multi-step tasks. Skip this for\nquick one-shot conversational turns; it is for orchestration-scale work.\n\n## Check the budget\n\nRead the usage panel non-interactively:\n\n```bash\n${CLAUDE_SKILL_DIR}\u002Fclaude-usage-check.sh\n```\n\nIt runs `claude -p \"\u002Fusage\"` under the hood (a local panel — no model turn;\nundocumented for print mode, so the invocation pins `--model haiku\n--max-turns 1` as a cheap guard and fails open if the panel ever goes away),\nparses the session and weekly lines (all-models plus any per-model line, e.g.\nFable or Opus depending on plan), and prints a one-line status plus a warning\npast the threshold (default 85%; override with `CLAUDE_USAGE_WARN_PCT`).\nResults are cached for `CLAUDE_USAGE_TTL` seconds (default 180) so repeated\nchecks stay cheap.\n\nThe `--hook` mode emits a `PreToolUse` JSON envelope and is wired into\n`hooks\u002Fhooks.json` (matcher `Task|Agent`) so a warning surfaces automatically\nbefore a subagent dispatch. It is warn-only and fail-open — it never blocks a\ncall.\n\n## Act on it\n\n**Before dispatching a batch of subagents** (a fan-out of two or more, or any\nheavy agent), glance at the budget first:\n\n- **Near a cap (>=85% on session or either weekly line):** right-size — fewer,\n  smaller, more targeted agents — or defer non-essential ones. Both weekly\n  lines count: subagent-heavy work burns the *weekly* budget even on a fresh\n  session.\n- **Session nearly exhausted with more work than budget:** do not grind to a\n  halt mid-task. Bank the remaining\u002Fplanned work, schedule a wake-up at the\n  session reset time (see below), and stop.\n\n## Manage context\n\n**Two different resources.** The percentages above are the *usage quota*\n(session and weekly) — how much of your plan's allowance is spent. The *context\nwindow* is separate: it is per-session and refills with compaction. A high\nquota percentage says nothing about remaining context, so never stop,\nsummarize, hand off, or suggest a new session because of it — right-size the\nnext dispatch and continue. The `--hook` warning carries the same reminder,\nsince a bare percentage in context is easy to misread as a remaining-context\ncountdown.\n\nAuto-compact is on by default and cannot be disabled — treat compaction as\nroutine, not an emergency. The strategy: keep authoritative state **out of the\ncontext window** so the summary only has to preserve pointers.\n\n- **Externalize state to the tracking issue\u002FPR (primary).** At milestones —\n  work item finished, decision made, gotcha discovered — bank state to the\n  tracking issue or PR (checkpoint comment or body section, e.g. via\n  `\u002Fissue-update`): done \u002F in-flight \u002F next \u002F decisions. The context then only\n  needs \"working #N, state is on the issue\", which survives any compaction —\n  and a fresh session, or a different agent, can resume from it.\n- **Steer the summary.** A `## Compact instructions` section in CLAUDE.md\n  shapes every compaction (documented); `\u002Fcompact focus on X` does it one-off.\n  Tell it to preserve issue\u002FPR numbers, decisions, and next steps, and to drop\n  file contents and tool output. (`PreCompact` hooks can only observe or\n  block — they cannot steer content — and blocking auto-compact just hits the\n  context wall, so this plugin ships none.)\n- **Re-ground after compaction.** A `SessionStart` hook with matcher `compact`\n  gets its stdout injected into context right after every compaction\n  (documented); this plugin's `hooks\u002Fhooks.json` ships one pointing the agent\n  back at the tracking issue, live `git`\u002F`gh` state, and this budget check.\n- **Keep it lean anyway:** delegate wide reads\u002Fsearches to subagents (their\n  tool output stays out of the main context), don't re-read files you just\n  edited, and close out subtasks instead of leaving many half-open. You cannot\n  run `\u002Fcompact` on yourself, so before heavy stretches, state what remains in\n  your own output — it gives the summarizer something crisp to keep. To\n  compact earlier with smaller summaries, `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`\n  exists as an **unofficial** knob — treat it as unstable.\n\n## Resume after a reset\n\nWhen you stop for budget, schedule a wake-up that reaches the reset time and\ncarries the resume task in its prompt. On wake, **re-verify** with the check\nabove before resuming — if still capped, reschedule a short retry and stop. The\nwake-up mechanism clamps to \u003C=3600s per hop; for a further-off reset, schedule\nthe max and re-check on wake.\n","# \u002Fbudget — Budget-Aware Coordination\n\n> **Claude Code only.** Codex must stop and report that this workflow is not\n> supported; never invoke `claude -p` from a Codex session.\n\nTreat the token budget as a managed resource when acting as a\n**work-coordination \u002F orchestrator session** — anything that dispatches\nsubagents, fans out parallel work, or runs long multi-step tasks. Skip this for\nquick one-shot conversational turns; it is for orchestration-scale work.\n\n## Check the budget\n\nRead the usage panel non-interactively:\n\n```bash\n${CLAUDE_SKILL_DIR}\u002Fclaude-usage-check.sh\n```\n\nIt runs `claude -p \"\u002Fusage\"` under the hood (a local panel — no model turn;\nundocumented for print mode, so the invocation pins `--model haiku\n--max-turns 1` as a cheap guard and fails open if the panel ever goes away),\nparses the session and weekly lines (all-models plus any per-model line, e.g.\nFable or Opus depending on plan), and prints a one-line status plus a warning\npast the threshold (default 85%; override with `CLAUDE_USAGE_WARN_PCT`).\nResults are cached for `CLAUDE_USAGE_TTL` seconds (default 180) so repeated\nchecks stay cheap.\n\nThe `--hook` mode emits a `PreToolUse` JSON envelope and is wired into\n`hooks\u002Fhooks.json` (matcher `Task|Agent`) so a warning surfaces automatically\nbefore a subagent dispatch. It is warn-only and fail-open — it never blocks a\ncall.\n\n## Act on it\n\n**Before dispatching a batch of subagents** (a fan-out of two or more, or any\nheavy agent), glance at the budget first:\n\n- **Near a cap (>=85% on session or either weekly line):** right-size — fewer,\n  smaller, more targeted agents — or defer non-essential ones. Both weekly\n  lines count: subagent-heavy work burns the *weekly* budget even on a fresh\n  session.\n- **Session nearly exhausted with more work than budget:** do not grind to a\n  halt mid-task. Bank the remaining\u002Fplanned work, schedule a wake-up at the\n  session reset time (see below), and stop.\n\n## Manage context\n\n**Two different resources.** The percentages above are the *usage quota*\n(session and weekly) — how much of your plan's allowance is spent. The *context\nwindow* is separate: it is per-session and refills with compaction. A high\nquota percentage says nothing about remaining context, so never stop,\nsummarize, hand off, or suggest a new session because of it — right-size the\nnext dispatch and continue. The `--hook` warning carries the same reminder,\nsince a bare percentage in context is easy to misread as a remaining-context\ncountdown.\n\nAuto-compact is on by default and cannot be disabled — treat compaction as\nroutine, not an emergency. The strategy: keep authoritative state **out of the\ncontext window** so the summary only has to preserve pointers.\n\n- **Externalize state to the tracking issue\u002FPR (primary).** At milestones —\n  work item finished, decision made, gotcha discovered — bank state to the\n  tracking issue or PR (checkpoint comment or body section, e.g. via\n  `\u002Fissue-update`): done \u002F in-flight \u002F next \u002F decisions. The context then only\n  needs \"working #N, state is on the issue\", which survives any compaction —\n  and a fresh session, or a different agent, can resume from it.\n- **Steer the summary.** A `## Compact instructions` section in CLAUDE.md\n  shapes every compaction (documented); `\u002Fcompact focus on X` does it one-off.\n  Tell it to preserve issue\u002FPR numbers, decisions, and next steps, and to drop\n  file contents and tool output. (`PreCompact` hooks can only observe or\n  block — they cannot steer content — and blocking auto-compact just hits the\n  context wall, so this plugin ships none.)\n- **Re-ground after compaction.** A `SessionStart` hook with matcher `compact`\n  gets its stdout injected into context right after every compaction\n  (documented); this plugin's `hooks\u002Fhooks.json` ships one pointing the agent\n  back at the tracking issue, live `git`\u002F`gh` state, and this budget check.\n- **Keep it lean anyway:** delegate wide reads\u002Fsearches to subagents (their\n  tool output stays out of the main context), don't re-read files you just\n  edited, and close out subtasks instead of leaving many half-open. You cannot\n  run `\u002Fcompact` on yourself, so before heavy stretches, state what remains in\n  your own output — it gives the summarizer something crisp to keep. To\n  compact earlier with smaller summaries, `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`\n  exists as an **unofficial** knob — treat it as unstable.\n\n## Resume after a reset\n\nWhen you stop for budget, schedule a wake-up that reaches the reset time and\ncarries the resume task in its prompt. On wake, **re-verify** with the check\nabove before resuming — if still capped, reschedule a short retry and stop. The\nwake-up mechanism clamps to \u003C=3600s per hop; for a further-off reset, schedule\nthe max and re-check on wake.\n",{"name":5,"description":7,"when_to_use":52,"allowed-tools":53},"Before any orchestration-scale work — dispatching subagents, large fan-outs, long-running batches — or when the user asks about usage, quota, limits, or when the budget resets. A PreToolUse hook also surfaces this automatically.","Bash(${CLAUDE_SKILL_DIR}\u002Fclaude-usage-check.sh*), Bash(claude -p*), Read","main","023b01bfb4a86fbf1e38a749f1044cce3e5da67d","claude-skills\u002Fbudget",1,"https:\u002F\u002Fgithub.com\u002Fdougborg\u002Fharness-kit","https:\u002F\u002Fgithub.com\u002Fdougborg","http:\u002F\u002Fdougborg.org","Platforms and Infrastructure Software Engineer","2026-11-13 07:43:37",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add dougborg\u002Fharness-kit --skill budget",{"tool":69,"command":70},"bunx","bunx skills add dougborg\u002Fharness-kit --skill budget",{"tool":72,"command":73},"pnpm","pnpm dlx skills add dougborg\u002Fharness-kit --skill budget","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdougborg\u002Fharness-kit\u002Fblob\u002Fmain\u002Fclaude-skills\u002Fbudget\u002FSKILL.md",true,[77],{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"claude-usage-check.sh","SCRIPT","脚本",7017,"https:\u002F\u002Fgithub.com\u002Fdougborg\u002Fharness-kit\u002Fblob\u002Fmain\u002Fclaude-skills\u002Fbudget\u002Fclaude-usage-check.sh",[84,101,122,154,177,194],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":93,"publishedAt":47},"01M6KX4J65S5FZKMSN5DQNPSZM","teach","Teach yourself a topic over several sessions, with lessons, references, and a record of what you've learned.","https:\u002F\u002Fgithub.com\u002Fdougborg\u002Fharness-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwriting\u002Fteach\u002FSKILL.md",[90],{"categoryNo":91,"categoryName":92,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000039","教师与教育",[86,94,95,96,97,98,99,100],"lessons","you","with","learned","record","references","sessions",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":112,"publishedAt":47},"01M6KX4FSSG7MHF00JDT5QT0BQ","svg-logo-designer","Generate SVG logos with multiple concepts, layouts, and color variations.","https:\u002F\u002Fgithub.com\u002Fdougborg\u002Fharness-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwriting\u002Fsvg-logo-designer\u002FSKILL.md",[107],{"categoryNo":108,"categoryName":109,"taxonomyType":110,"taxonomyTypeDesc":111},"01JBSEEDCAT000000000000016","图像与多媒体","SCENARIO","使用场景",[113,114,115,116,117,118,96,119,120,121],"logo","designer","svg logo designer","SVG","color","concepts","write","read","generate",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":134,"publishedAt":47},"01M6KX4BD3J9MZPPSH4MENH7FP","documentation-writer","Writes and revises human-facing documentation — READMEs, contributor and setup guides, reference pages, architecture notes, CLAUDE.md, and changelog entries. Covers picking the right document type for the question being asked, structuring for skimming, writing examples that actually run, and keeping docs from going stale. Use when creating or rewriting docs, when a README has drifted from the code, or when deciding where a piece of information belongs. For SKILL.md and agent files, use \u002Fskill-writer instead.","https:\u002F\u002Fgithub.com\u002Fdougborg\u002Fharness-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwriting\u002Fdocumentation-writer\u002FSKILL.md",[128,131],{"categoryNo":129,"categoryName":130,"taxonomyType":110,"taxonomyTypeDesc":111},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":132,"categoryName":133,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000036","内容创作者",[135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,34,152,153],"writer","documentation writer","documentation","entries","changelog","architecture","document","files","use","question","README","notes","code","examples","pages","for","information","type","writing",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":47},"01M6KX47ZJ4ZWHDN3MY8SYAWZZ","adhd-mode","Shapes every response for a reader with ADHD: the next action first, numbered steps, progress restated each turn, tangents held back, concrete time estimates, wins made visible. Stays on for the rest of the session until the reader says \"stop adhd mode\". On Claude Code, the harness-kit:adhd output style does the same without invoking this skill.","https:\u002F\u002Fgithub.com\u002Fdougborg\u002Fharness-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwriting\u002Fadhd-mode\u002FSKILL.md",[],[161,162,163,164,150,165,166,96,167,168,169,170,171,172,43,173,174,175,176,147],"adhd","mode","adhd mode","next","action","kit","output","style","progress","time","back","stop","reader","first","REST","harness",{"skillNo":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":181,"categories":182,"keywords":183,"publishedAt":47},"01M6KX463Z6E18EPDW873GDHKB","wait-what","That last message didn't land: re-explain it with the missing context.","https:\u002F\u002Fgithub.com\u002Fdougborg\u002Fharness-kit\u002Fblob\u002Fmain\u002Fskills\u002Fthinking\u002Fwait-what\u002FSKILL.md",[],[184,185,186,96,187,188,189,190,191,192,193],"wait","wait what","re","it","missing","message","context","explain","land","last",{"skillNo":195,"name":196,"nameZh":6,"description":197,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":198,"categories":199,"keywords":200,"publishedAt":47},"01M6KX43NE1NB0Y2HECY515730","to-questionnaire","Turn a decision you can't make alone into a questionnaire for the one person who can answer it, filled in async or together in a meeting.","https:\u002F\u002Fgithub.com\u002Fdougborg\u002Fharness-kit\u002Fblob\u002Fmain\u002Fskills\u002Fthinking\u002Fto-questionnaire\u002FSKILL.md",[],[201,202,150,203,204,205,206,95,207,187,208,209],"to questionnaire","questionnaire","person","can","answer","meeting","make","async","decision"]