/cost-guardian:cost-estimate <task description>from cost-guardian
Estimates the cost of a coding task before execution by analyzing complexity, predicting token usage, and comparing across Claude models. Useful for budgeting and model selection.
Ships in cost-guardian. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Estimate the cost of a coding task before execution, with multi-model comparison.
| Task Type | Typical Tool Calls | Est. Tokens |
|---|---|---|
| Bug fix (single file) | 5-10 | 5K-15K |
| Bug fix (multi-file) | 10-25 | 15K-40K |
| Small feature | 15-30 | 25K-60K |
| Medium feature | 30-60 | 60K-150K |
| Large feature | 60-120 | 150K-400K |
| Refactor (small) | 10-20 | 15K-30K |
| Refactor (large) | 40-80 | 80K-200K |
| Code review | 5-15 | 10K-30K |
node "${CLAUDE_SKILL_DIR}/../../scripts/pricing.js" compare <est_input_tokens> <est_output_tokens> <current_model>
node -e "
const store = require('${CLAUDE_SKILL_DIR}/../../scripts/store');
store.initDb();
const daily = store.getDailyBreakdown(30);
if (daily.length > 0) {
const avg = daily.reduce((s, d) => s + d.cost, 0) / daily.length;
console.log('Your avg daily spend: \$' + avg.toFixed(2) + ' (' + daily.length + ' days tracked)');
}
const total = store.getTotalEntries();
console.log('Total tracked tool calls: ' + total);
"
Present the estimate clearly:
Cost Estimate: <task description>
Complexity: <Low/Medium/High>
Est. Reads: <N files>
Est. Edits: <N files>
Est. Tools: <N total tool calls>
Est. Tokens: <N total tokens>
Model Comparison:
Model Input Output Total
─────────────────────────────────────────────────────────────
Claude Haiku 4.5 $0.04 $0.20 $0.24
Claude Sonnet 4.6 $0.15 $0.75 $0.90 ← current
Claude Opus 4.6 $0.75 $3.75 $4.50
💡 Claude Haiku 4.5 would be 73% cheaper
Based on: <reasoning>
Always include the model comparison table. Be honest about uncertainty — these are estimates, not guarantees.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub manavarya09/cost-guardian --plugin cost-guardian4 skills in this plugin
/cost-guardianReal-time cost tracking and budget management for Claude Code sessions. Shows current spend, burn rate, budget status, per-tool and per-model breakdown. Use when user says 'cost', 'budget', 'spending', 'how much', 'token usage', 'export', or '/cost-guardian'. Subcommands: budget, resume, reset, config, export, status./cost-insightsAdvanced cost intelligence: efficiency scoring, waste detection, ROI metrics, model savings calculator, anomaly detection, and GitHub badge generation. Use when user says 'insights', 'efficiency', 'waste', 'roi', 'savings', 'anomaly', 'badge', or '/cost-insights'./cost-reportGenerate detailed cost reports with charts and breakdowns. Shows daily/weekly/monthly spend, per-tool costs, per-branch costs, and trends. Use when user says 'cost report', 'spending report', 'usage report', 'show costs', 'branch costs', or '/cost-report'.Other plugins' skills for the same job