cost
Skill123 starsChanged 8 months agoMITView on GitHub
AI Build Cost Tracker — track how much AI is costing you per feature. Use when user wants to track AI spending, understand cost per feature, optimize AI usage, or budget their Claude/GPT costs.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- SethGammon/Citadeltheir own version, first seen Sep 20, 2026
- NotHarshhaa/devops-skillstheir own version, first seen Sep 19, 2026
- jamillazarev/opsinisttheir own version, first seen Jul 31, 2026
- DaeSeokSong/oh-my-ouroborostheir own version, first seen Jul 23, 2026
- gaia-research/skill-costtheir own version, first seen Jul 11, 2026
- srafis/skillstheir own version, first seen May 13, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- H-mmer/pentest-agents★ 984same name
- SethGammon/Citadel★ 922same name
- maxvaega/awesome-skills★ 40same name
- NotHarshhaa/devops-skills★ 8same name
- gaia-research/skill-cost★ 2same name
- jamillazarev/opsinist★ 2same name
- srafis/skills★ 2same name
- DaeSeokSong/oh-my-ouroboros★ 1same name
- gioe/tusk★ 1same 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 repository46 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- a11ySkill
- architectureSkill
- brainstormingSkill
- canarySkill
- clone-patternsSkill
- code-reviewSkill
- competeSkill
- demoSkill
- deploySkill
- dispatching-parallel-agentsSkill
- evalsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- frontend-designSkill
- growSkill
- guardSkill
- index-fixSkill
- investigateSkill
- launchSkill
- learnSkill
- onboardSkill
- pentestSkill
- perf-auditSkill
- receiving-code-reviewSkill
- releaseSkill
- requesting-code-reviewSkill
- rescueSkill
- retroSkill
- revise-claude-mdSkill
- security-auditSkill
- seo-auditSkill
- seo-strategySkill
- ship-gateSkill
- sprintSkill
- staying-currentSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-git-worktreesSkill
- using-ultrashipSkill
- verification-before-completionSkill
- visual-diffSkill
- writing-plansSkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
5
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 80
Use consistent labels across sessions
- Distinctive: line 86
When reviewing cost data, help the user think about the economics of building with AI:
- Distinctive: line 94
If a feature costs >$100 in AI tokens, check if a library or SaaS already does it
- Distinctive: line 95
If debugging the same issue costs >$20 in AI tokens, the root cause is architectural — fix the architecture, not the symptom
- Distinctive: line 96
If AI-generated code needs significant manual correction, the prompt needs work, not more tokens
“Common” is measured: kept by at least 6 in 10 of the 7 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
AI Build Cost Tracker
Know exactly what each feature costs to build with AI. Budget smarter, spend less.
Process
Phase 1: Show Current State
node ${CLAUDE_PLUGIN_ROOT}/tools/cost-tracker.mjs <project-directory> showParse the JSON output for cost history and summary.
Phase 2: Cost Dashboard
Present spending overview:
Total Spend:
- All-time total cost
- This week / this month breakdown
- Average cost per task
By Task/Feature:
- Ranked list of features by cost (most expensive first)
- Flag any outliers (tasks costing 3x+ the average)
By Model:
- Cost breakdown by AI model used
- Potential savings from model switching
Daily Trend:
- Last 30 days of daily spending
- Identify high-spend days
Phase 3: Cost Insights
Generate actionable insights:
- Where money goes — what types of tasks cost the most (debugging? features? refactoring?)
- Optimization opportunities — tasks that could use a cheaper model
- Budget projection — at current rate, monthly spend estimate
- Cost per line of code — rough estimate based on git diff
Phase 4: Logging New Costs
To log a new cost entry:
node ${CLAUDE_PLUGIN_ROOT}/tools/cost-tracker.mjs <project-directory> log "<label>" <input_tokens> <output_tokens> --model=claude-opus-4-6Labels should be descriptive kebab-case: auth-feature, bug-fix-login, refactor-api, seo-optimization
Phase 5: Recommendations
Based on spending patterns:
If debugging > 30% of spend:
- "Consider investing in more tests upfront — debugging is your biggest cost driver"
- Suggest running
/test-driven-developmentskill
If a single task > 3x average:
- "The [task] cost $X — consider breaking large tasks into smaller chunks"
Model optimization:
- "Routine refactoring with Sonnet instead of Opus would save ~$X/month"
- "Code review tasks can use Haiku — potential savings of ~$X/month"
Logging Guide
Help the user understand when and how to log costs:
- Log at the END of each task/feature (not during)
- Use consistent labels across sessions
- Include ALL tokens (input + output) from the conversation
- Estimate if exact numbers aren't available (Claude Code shows token usage in the UI)
Phase 6: Build vs. Buy Framework
When reviewing cost data, help the user think about the economics of building with AI:
Worth building with AI (high ROI):
- Features that would take 2+ days manually but 2 hours with AI
- Boilerplate-heavy work (CRUD, migrations, test suites, API endpoints)
- Exploration and prototyping (try 3 approaches, keep the best one)
Consider alternatives:
- If a feature costs >$100 in AI tokens, check if a library or SaaS already does it
- If debugging the same issue costs >$20 in AI tokens, the root cause is architectural — fix the architecture, not the symptom
- If AI-generated code needs significant manual correction, the prompt needs work, not more tokens
Cost benchmarks for solo founders:
| Task Type | Expected Cost | If Higher, Investigate |
| New API endpoint | $1-5 | Complex business logic or unclear spec |
| Bug fix | $0.50-3 | Missing tests or hard-to-reproduce issue |
| Full feature (frontend + backend) | $5-20 | Large scope or frequent rework |
| Refactoring | $2-10 | Unclear boundaries or missing tests |
| Content/copy generation | $0.25-1 | Too many revision cycles |
Key Principles
- AI is an investment, not a cost. The goal isn't to minimize spend — it's to maximize ROI. A $50 feature that generates $5K MRR is a great investment. But a $50 bug fix that should have cost $5 with better tests is waste.
- Track to learn, not to punish. Cost data reveals where your process is inefficient. High debugging costs mean insufficient tests. High rework costs mean unclear specs.
- Optimize the expensive tasks, not the cheap ones. Switching from Opus to Haiku for a $0.10 task saves nothing. Reducing a $50 debugging session by improving test coverage saves real money.
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.

