{"data":{"slug":"discovered-44422c38538021bc5a6866f220557b8a71d0f019b727bcbf","title":"Budget Optimization for Claude Code Usage","summary":"Optimize Claude Code token spend by applying practical habits for cost control, including model selection, context management, and efficient task delegation.","url":"https:\/\/skillshunter.net\/skills\/discovered-44422c38538021bc5a6866f220557b8a71d0f019b727bcbf","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-44422c38538021bc5a6866f220557b8a71d0f019b727bcbf","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-44422c38538021bc5a6866f220557b8a71d0f019b727bcbf.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-44422c38538021bc5a6866f220557b8a71d0f019b727bcbf\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before applying cost-saving strategies, ensure you have validated your Claude Code environment and reviewed the pricing page at https:\/\/www.anthropic.com\/pricing. Use `\/cost` or `\/usage` commands within a session to measure actual token usage and costs.","instructions":"---\nname: budget-optimization\ndescription: Practical habits for keeping Claude Code token spend down on a monthly budget. Use when the user asks about cost, token usage, model choice for cost, or says a session is getting expensive.\n---\n\n# Budget optimization\n\nDetails and settings: [README.md](README.md).\n\n## Rules of thumb\n1. **Match model to task.** Haiku for mechanical work (renames, doc edits, greps, boilerplate). Sonnet or Opus for root-cause debugging, architecture, and anything where a wrong answer costs a rebuild or hardware test.\n2. **Keep context small.** New session per topic; `\/compact` or `\/clear`. Every turn re-sends the context.\n3. **Delegate noisy searches** to a subagent (Explore) so raw output stays out of the main context.\n4. **Read narrowly.** Grep, then read a line range. Large notes files (the migration notes) are over 1300 lines.\n5. **Write complete prompts**: file, symptom, exact error text.\n6. **Lean on skills** instead of re-explaining context.\n7. **Do not cut effort on hard problems.** Low effort there costs more in retries.\n\n## Do not\n- Do not copy a settings file over `~\/.claude\/settings.json`. It holds the auto-commit `hooks` block; merge keys by hand.\n- Do not set `permissions.defaultMode` to `dontAsk` to save cost. It is a safety setting.\n- Do not quote dollar savings as facts. Check https:\/\/www.anthropic.com\/pricing and use `\/cost` or `\/usage`.\n","use_cases":["Selecting the appropriate model (Haiku, Sonnet, Opus) based on task complexity to minimize costs.","Keeping context length minimal by using `\/compact` or `\/clear` commands to avoid unnecessary token usage.","Delegating noisy searches to a subagent to prevent context bloat.","Reading narrowly by using grep and line-range commands to avoid processing large files.","Writing complete prompts with specific file details, symptoms, and error text to avoid retries.","Leveraging existing skills to avoid re-explaining context in each session."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/minhnguyenyf\/skills\/blob\/7213d81500a27f3a96028144f5342ccfe4efbe4a\/common\/budget-optimization\/SKILL.md","source_commit":"7213d81500a27f3a96028144f5342ccfe4efbe4a","license":null,"version":null,"listing_approved_at":"2026-11-30","created_at":"2026-11-29T11:12:04.000000Z","updated_at":"2026-11-30T06:52:26.000000Z","seo_title":"Budget Optimization for Claude Code Usage","seo_description":"Learn how to reduce Claude Code token costs through smart model selection, context management, and efficient task delegation.","seo_keywords":["Claude Code budget optimization","token cost reduction","model selection for cost efficiency","context management","efficient prompt writing","cost measurement in Claude Code"]}}