cost-estimate
Skill35 starsChanged 7 months agoMITView on GitHub
Estimate the cost of a task before starting it. Analyzes task complexity, predicts token usage, and compares cost across all Claude models. Use when user says 'estimate cost', 'how much will this cost', 'cost estimate', or '/cost-estimate'.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- Goodnessmbakara/codex-skillstheir own version, first seen Oct 8, 2026
- Jinbae10/skillstheir own version, first seen Jul 7, 2026
- jbarbier/claude-code-cost-estimatetheir own version, first seen Apr 20, 2026
- ulpi-io/browsetheir own version, first seen Mar 29, 2026
- mattprusak/cost-estimatetheir own version, first seen Mar 7, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- jbarbier/claude-code-cost-estimate★ 110same name
- ulpi-io/browse★ 15same name
- mattprusak/cost-estimate★ 2same name
- Goodnessmbakara/codex-skills★ 1same name
- Jinbae10/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- cost-guardianSkill
- cost-insightsSkill
- cost-reportSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 79
Always include the model comparison table.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cost Estimate
Estimate the cost of a coding task before execution, with multi-model comparison.
Process
- Analyze the task description from $ARGUMENTS
- Assess complexity by examining the codebase:
- Count files that will likely need reading (use Glob to find relevant files)
- Count files that will likely need editing
- Estimate number of tool calls needed
- Calculate estimated cost using these heuristics:
Cost Heuristics by Task Type
| 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 |
- Show multi-model comparison using the estimated tokens:
node "${CLAUDE_SKILL_DIR}/../../scripts/pricing.js" compare <est_input_tokens> <est_output_tokens> <current_model>- Check historical data for context:
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);
"Output Format
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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

