skills/cost-tracker/SKILL.md
Track session costs, set budget alerts, and optimize token spend. Use to check costs mid-session or set spending limits.
npx skillsauth add rohitg00/pro-workflow cost-trackerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Monitor and optimize Claude Code session costs.
Use when:
# Session cost is shown at the end of each session
# Mid-session: check the status bar or run /cost
| Operation | Relative Cost | Optimization | |-----------|--------------|-------------| | Large file reads | High | Use offset/limit params | | Broad grep searches | Medium | Scope to specific dirs | | Subagent spawning | High (new context) | Reuse agents via SendMessage | | Repeated tool calls | Cumulative | Batch operations | | MCP tool calls | Variable | Minimize round-trips | | Model selection | 3-10x difference | Use haiku for simple tasks |
| Task | Typical Cost | Budget Alert | |------|-------------|-------------| | Bug fix | $0.10-0.50 | $1.00 | | Feature (small) | $0.50-2.00 | $3.00 | | Feature (large) | $2.00-8.00 | $10.00 | | Refactor | $1.00-5.00 | $7.00 | | Code review | $0.20-1.00 | $2.00 |
Set explicit budgets by task complexity:
| Task Type | Tool-Call Budget | Wrap-Up At | |-----------|-----------------|------------| | Quick fix / lookup | 20 calls | 15 | | Bug fix | 30 calls | 25 | | Feature (small) | 50 calls | 40 | | Feature (large) | 80 calls | 65 | | Refactor | 50 calls | 40 |
At the wrap-up threshold: commit progress, assess remaining work, decide whether to continue or start fresh.
offset and limit params for large filesSet mental checkpoints:
COST TRACKER
Session cost: $X.XX
Token usage: [input]K in / [output]K out
Cache hit rate: ~XX%
Top cost drivers:
1. [operation] — $X.XX
2. [operation] — $X.XX
Optimization tips:
- [specific suggestion]
documentation
Apply clear-writing standards to any prose the agent produces - READMEs, docs, UI copy, error messages, commit and PR text, release notes. Use when writing or editing documentation, interface copy, or any text a human will read. Says "write the README", "improve this copy", "draft the docs", "word this error".
development
Drive a change through a red-green-refactor loop - failing test first, minimal code to pass, then clean up. Use when implementing a feature or fixing a bug where correctness matters and a test can pin the behavior. Says "TDD", "test first", "red green refactor", "write the test first".
tools
The index of every pro-workflow skill and command, grouped by job, with when to reach for each and whether it is human-run or auto-triggered. Use when you are not sure which skill fits, want the full map, or ask "what can this do", "which skill for X", "list the workflow".
development
Audit an area of the codebase and propose the smallest structural moves that improve it - untangle boundaries, kill duplication, fix seams, break cycles. Produces a prioritized plan and decision records, not a rewrite. Use when a codebase feels tangled, hard to change, or is becoming a ball of mud, or when asked to improve or refactor architecture.