
Optimization Suggest
Suggest concrete optimizations for Claude Code usage based on historical session data.
Install
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill optimization-suggest -g -a claude-code -y- Repository
- hoangsonww/Claude-Code-Agent-Monitor1.1k
- Category
- AI and agents
- Updated
- 5d ago
- License
- MIT
- Context cost
- Lightabout 761 tokens
- Runs scripts
- No, instructions only
What it does
Suggest concrete optimizations for Claude Code usage based on historical session data. Covers cost reduction, speed improvement, error prevention, and workflow efficiency. Use for data-driven optimization planning.
Optimization Suggest
Generate data-driven optimization recommendations for Claude Code usage.
Input
The user provides: $ARGUMENTS
This may be:
- "all" or empty (default: comprehensive optimization scan)
- "cost" for cost reduction focus
- "speed" for performance/speed focus
- "quality" for error reduction focus
- "efficiency" for workflow efficiency focus
Procedure
-
Gather optimization data from
http://localhost:4820:GET /api/sessions?limit=200, session historyGET /api/analytics, tool and token analyticsGET /api/pricing/cost, cost dataGET /api/pricing, pricing rules for model comparison- Sample event streams for behavioral analysis
-
Analyze optimization opportunities:
💰 Cost Optimization
- Model downgrade opportunities: Tasks completed with expensive models that could use cheaper ones
- Compare success rates per model per task type
- Calculate savings from model substitution
- Cache optimization: Sessions with low cache hit rates
- Identify sessions that could benefit from better prompt caching
- Early termination: Sessions that ran longer than needed
- Detect sessions where useful work completed well before session end
- Compaction reduction: Sessions hitting context limits
- Suggest breaking large tasks into smaller sessions
âš¡ Speed Optimization
- Tool selection: Faster alternatives for commonly-used tool patterns
- Subagent parallelization: Tasks that could run in parallel
- Session planning: Better upfront context to reduce back-and-forth
- Preemptive context loading: Frequently needed files/context
- Model downgrade opportunities: Tasks completed with expensive models that could use cheaper ones

