/everything-copilot-cli:cost-auditfrom everything-copilot-cli
Audits AI inference costs and optimizes token usage across multi-model pipelines. Produces an actionable cost reduction plan by identifying high-cost call sites, measuring baselines, and applying patterns like model downgrade, context pruning, and task batching.
Ships in everything-copilot-cli. 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.
Audit AI inference costs and optimize token usage across multi-model pipelines. This is not about cutting capabilities — it is about eliminating waste, right-sizing models, and keeping costs predictable.
Use the most capable model necessary — not the most capable model available.
| Tier | Models | Best for |
|---|---|---|
| Premium | claude-opus-5.5 | Architecture decisions, complex multi-file reasoning, security audits |
| Standard | claude-sonnet-5.5, gpt-6.1-sol, gpt-5.3-codex | Most coding tasks, code review, test generation, documentation |
| Fast / Cheap | claude-haiku-4.5, claude-haiku-5.5, gpt-6-luna | File edits, boilerplate, classification, triage, simple summaries |
Tiers are a suggested routing, not an official GitHub classification; take model IDs from /model.
Scan for:
| Metric | How to measure |
|---|---|
| Total tokens / task | Compare before and after context changes |
| Model mix | Tally which models are called per workflow |
| Prompt size distribution | Log avg/max token counts per call type |
Model downgrade
Context pruning
view_range instead of full-file readsPrompt deduplication
Task batching
For each change:
Change: Replace claude-opus-5.5 on doc-summary with claude-haiku-4.5
Before: ~4,000 tokens × <premium price>/1K = <before>/call
After: ~4,000 tokens × <fast-tier price>/1K = <after>/call
Savings: (<before> − <after>) × calls per period
Use approximate public pricing for estimation. Actual prices vary; check your provider dashboard.
Label these numbers for what they are:
| Priority | Criterion |
|---|---|
| High | Premium model on a task a fast model handles well |
| High | Context window > 50K tokens when shorter would suffice |
| Medium | Duplicate context passed on every call |
| Medium | Fleet agents with mismatched model tiers |
| Low | Minor prompt size variations |
## Cost Audit Report
### Summary
Estimated waste: ~$X/day at current scale
Top three opportunities: [list]
### Findings
#### [HIGH] Premium model for boilerplate generation
Location: [file or workflow name]
Issue: `claude-opus-5.5` used for all code generation including templates and stubs.
Recommendation: Use `claude-haiku-4.5` for boilerplate; reserve opus for complex tasks.
Estimated savings: ~80% cost reduction on boilerplate tasks.
#### [MEDIUM] Entire codebase passed as context on every PR review
...
If the report will be shared beyond the person whose usage it describes, ask first, and remove project names, file paths, session IDs, and prompt text unless they choose to keep them. Check the finished file for those before sending it.
| Pattern | Fix |
|---|---|
| Entire conversation history on every call | Summarize old context, keep recent turns |
| Full file reads when only one function matters | Use view_range for targeted reads |
| Premium model for all parallel agents in fleet | Assign tier per task type |
| Same instructions repeated in every prompt | Move to shared system prompt |
| No caching on static reference docs | Check if your API client supports prompt caching |
orchestration/templates/orchestrator-template.md — model selection guidance in orchestration contextWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
cost-optimization, token-usage, model-routing, ai-costs, multi-model
npx claudepluginhub drvoss/everything-copilot-cli --plugin everything-copilot-cli115 skills in this plugin
/actions-debuggingUse when a GitHub Actions workflow fails — diagnose the run log, identify the root cause, and apply a targeted fix/add-to-changelogUse when you've shipped a feature, fix, or breaking change and need to update CHANGELOG.md — follows Keep a Changelog format and syncs version numbers across package manifests./agent-governanceUse when designing or reviewing an AI agent system that needs policy-based access controls, intent classification, tool-level rate limiting, trust scoring for multi-agent workflows, or append-only audit trails.
Other plugins' skills for the same job