用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/kennedym-ds/claudecode-orchestrator --skill budget-gatekeeper命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | budget-gatekeeper |
| description | Token and cost tracking with model tier enforcement |
| argument-hint | <session-context> |
| user-invocable | false |
Track usage by tier to monitor cost distribution:
| Tier | Model | Relative Cost | Target Budget Share |
|---|---|---|---|
| heavy | Opus 4.6 | 1.0x (baseline) | ≤ 25% of session tokens |
| default | Sonnet 4.6 | ~0.2x | 60-70% of session tokens |
| fast | Haiku 4.5 | ~0.04x | 5-15% of session tokens |
Subagent delegations are automatically logged to artifacts/sessions/delegation-log.jsonl by the SubagentStart and SubagentStop hooks. At each delegation, record:
| Metric | Warning | Hard Limit |
|---|---|---|
| Total delegations | 8 | 15 |
| Heavy-tier delegations | 4 | 8 |
| Estimated session cost | $2.00 | $5.00 |
| Single agent turns | 30 | 60 |
When ORCH_TEAMS_ENABLED=true, additional limits apply:
| Metric | Warning | Hard Limit |
|---|---|---|
| Active teams per session | — | 1 (CC runtime enforces) |
| Tasks per team | 10 | ORCH_TEAM_MAX_TASKS (default 20) |
| Estimated team session cost | $10.00 | User-confirmed before assembly |
| Teammates per team | — | ORCH_TEAM_SIZE_MAX (default 3) |
Team sessions cost approximately 7x a single session. The team-routing skill presents a cost estimate and requires explicit user confirmation (y) before assembling any team. Log team task completions from delegation-log.jsonl (event: teammate_task_complete) to track team budget consumption.
When a soft limit is hit:
When a hard limit is hit:
default instead of heavy when a task doesn't require deep judgment/compact at milestones to reduce token waste/clear between unrelated tasks--- Budget Report ---
Delegations: 5 / 15
Heavy-tier: 2 / 8 (reviewer, security-reviewer)
Default-tier: 3 (implementer, researcher, doc-updater)
Fast-tier: 0
Estimated cost: ~$1.20
Recommendation: On track — no action needed