Skip to content
Agent Workspaces
Skill

/optimization-suggest

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.

From plugin
claude-code-agent-monitor
1.1k75 skills21 agents33 commands1 MCP

Claude Code

$ npx -y skills add hoangsonww/Claude-Code-Agent-Monitor --skill optimization-suggest --agent claude-code

SKILL.md

optimization-suggest.SKILL.md
name: optimization-suggest
description: >
  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

1. **Gather optimization data** from `http://localhost:4820`:

  • `GET /api/sessions?limit=200` — session history
  • `GET /api/analytics` — tool and token analytics
  • `GET /api/pricing/cost` — cost data
  • `GET /api/pricing` — pricing rules for model comparison
  • Sample event streams for behavioral analysis

2. **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

🛡 Quality Optimization

  • **Error prevention**: Common error patterns with preventive measures
  • **Tool reliability**: Tools with high failure rates and alternatives
  • **Validation gaps**: Sessions lacking verification steps
  • **Recovery strategies**: Better error handling patterns

🔄 Workflow Optimization

  • **Session sizing**: Optimal session scope based on historical success
  • **Task decomposition**: Complex sessions that should be split
  • **Automation candidates**: Repetitive workflows to automate
  • **Knowledge reuse**: Patterns where previous session context could help

3. **Quantify each recommendation**:

  • Estimated impact (cost savings $, time savings %, error reduction %)
  • Implementation effort (low/medium/high)
  • Confidence level based on data available
  • Priority score = Impact × Confidence / Effort

Output Format

Present as a prioritized optimization plan:

| # | Recommendation | Category | Impact | Effort | Priority | |---|---------------|----------|--------|--------|----------| | 1 | Specific action | 💰/⚡/🛡/🔄 | High | Low | ★★★★★ | | 2 | Specific action | ... | ... | ... | ★★★★☆ |

For the top 5 recommendations, include:

  • Detailed explanation with supporting data
  • Step-by-step implementation guide
  • Expected before/after metrics
  • How to measure success
Read more
@hoangsonww
Ships withclaude-code-agent-monitor

🚀 A real-time monitoring dashboard for Claude Code & Codex, built with SQLite3, Node.js, Express, React, Vite, TailwindCSS, & WebSockets. It tracks sessions, agent activity, tool usage, and subagent orchestration, providing live analytics, a Kanban status board, status notifications, a cute buddy, & an interactive web UI/MacOS/Windows native app.

1.1k75 skills21 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.1k
Star history of hoangsonww/Claude-Code-Agent-Monitor on GitHub, a chart by star-history.com

Other skills on claude-code-agent-monitor.

More skills from other plugins.

paseo

paseo

Paseo reference for managing hosts, projects, workspaces, workspace scripts, agents, schedules, and heartbeats.

paseo10d23k
@getpaseo@getpaseoInstall Skill
10x
Auto-invoked

10x

Personalized audit that teaches the advanced Paradev (formerly Superset) features the user isn't using yet (automations, parallel…

paradev1d16k
@superset-sh@superset-shInstall Skill
capabilities

capabilities

Your capability catalog — read this at boot. Lists the temporal date-range skills and the external integrations (reached via the…

@chaitanyagiri@chaitanyagiriInstall Skill

Questions about optimization-suggest.

Which coding agents can use optimization-suggest?
optimization-suggest installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.