AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Optimization Suggest

skill-hoangsonww-claude-code-agent-monitor-optimization-suggest · by hoangsonww

>

No reviews yet
0 installs
13 views
0.0% view→install

Install

$ agentstack add skill-hoangsonww-claude-code-agent-monitor-optimization-suggest

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-hoangsonww-claude-code-agent-monitor-optimization-suggest)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Optimization Suggest? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.