ワンクリックで
cost-management
Use when controlling AI spend, token budgets, model routing, or workflow efficiency before scaling usage
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when controlling AI spend, token budgets, model routing, or workflow efficiency before scaling usage
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Execute safe Git workflows — branching, committing, resolving conflicts, and managing PRs
Use when handling incidents, outages, severe regressions, or operational emergencies before attempting broad fixes
Use when investigating latency, throughput, resource saturation, or performance regressions before changing implementation details
Use when reviewing code, preparing a PR for review, or processing review feedback
Use when diagnosing bugs, test failures, or unexpected behavior before attempting any fix
Plan and execute safe deployments with rollback procedures, verification, and monitoring
| name | cost-management |
| description | Use when controlling AI spend, token budgets, model routing, or workflow efficiency before scaling usage |
Announce at start: "Following the cost-management skill — budget before build."
Every AI workflow needs a budget and attribution. Cost you cannot segment or cap will eventually surprise you.
Define what is being measured:
code_review, test_generation, incident_triage, etc.)dev, ci, staging, prod)Choose a default cap before requests start flowing:
| Budget scope | Example |
|---|---|
| Per task | $0.25 per PR review |
| Per user | $100/month per developer |
| Per team | $2,000/month for CI workflows |
| Per environment | Stricter caps in development than production |
Route by task complexity, not habit:
| Task | Default tier |
|---|---|
| Formatting or classification | Cheapest capable model |
| Code review or test generation | Mid-tier reasoning model |
| High-risk architecture or security analysis | Highest tier only when justified |
Before spending more, shrink the context:
Every request should carry attribution and outcome data:
Use review cadence, not only invoices:
| Signal | Action |
|---|---|
| Most expensive model is the default for all tasks | Add explicit routing rules |
| No request tags for team/workflow/env | Add attribution before scaling usage |
| Full repositories sent for tiny tasks | Trim context and re-measure |
| Cost review happens only after the invoice arrives | Add pre-flight caps and threshold alerts |
| Same workflow retries many times with flat quality | Fix prompts/process before spending more |
| When | Invoke |
|---|---|
| Need better prompts to reduce retries | prompting |
| Designing specialized agents with bounded scope | refactoring or planning |
| Keeping spend policy reflected in docs | doc-maintenance |
For principles, rationale, anti-patterns, and examples:
guides/cost-token-management/cost-token-management.mdguides/ai-agent-evaluation-metrics/ai-agent-evaluation-metrics.mdguides/context-management/context-management.md