mcpbeat Sign in

Optimization Suggest Skill for Claude

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

834 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
867
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/hoangsonww/Claude-Code-Agent-Monitor --skill optimization-suggest

The instruction itself

8 sections, as written by the author

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 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
  • 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
  • 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

Other skills for the same job

different authors, same section of the catalogue
Declarative Agents
by github
vendor ×1

Complete development kit for Microsoft 365 Copilot declarative agents with three comprehensive workflows (basic, advanced, validation), TypeSpec support, and Microsoft 365 Agents Toolkit integration

1k tokens
Treatment Plans
by K-Dense-AI
×1

Format and structurally validate local treatment-plan documentation after clinical decisions have already been supplied and verified by authorized licensed professionals. Use for source traceability, clinician-authored intervention records, goals and checkpoints, shared-decision records, reconciliation handoffs, and release gates—not for clinical decision-making.

38k tokens scripts
Okx AI
by internet-court
×1

> provider/change budget/修改卖家/修改预算/draft/草稿/我的任务/my tasks/what am I working on/关闭/取消任务/决策列表/decision list/指定服务商/browse (sender.role = COUNTERPARTY, not you); (3) literal "Read the okx-ai skill" (or legacy "Read the okx-agent-task skill") in the envelope.

57k tokens
Prior Auth Review Skill
by anthropics
vendor ×1

Automate payer review of prior authorization (PA) requests. This skill should be used when users say "Review this PA request", "Process prior authorization for [procedure]", "Assess medical necessity", "Generate PA decision", or when processing clinical documentation for coverage policy validation and authorization decisions.

23k tokens
AI Agents Architect
by lingxling
×1

Expert in designing and building autonomous AI agents. Masters tool use, memory systems, planning strategies, and multi-agent orchestration.

2k tokens
Autonomous Agents
by lingxling
×1

Autonomous agents are AI systems that can independently decompose goals, plan actions, execute tools, and self-correct without constant human guidance. The challenge isn't making them capable - it's making them reliable. Every extra decision multiplies failure probability.

7k tokens
Design Orchestration
by lingxling
×1

Orchestrates design workflows by routing work through brainstorming, multi-agent review, and execution readiness in the correct order.

959 tokens
Pitchcraft
by moshuying
×1

Structured persuasion for tech leads, PMs, and founders—not activity logs. Five scenarios (kickoff, status update, wrap-up, investor pitch, solution selling) on one 5-part framework (Hook→Context→Proposal→Evidence→Ask). AI prompts for missing materials and audience context; pre-submit checklist. Claude Code plugin; Cursor, Codex, and chat via prompts.

5k tokens

How to use it

Copy the folder

Take hoangsonww/optimization-suggest from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.