with one click
optimizer
// Use when a workflow needs performance tuning, token reduction, or execution path optimization across pipeline stages.
// Use when a workflow needs performance tuning, token reduction, or execution path optimization across pipeline stages.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | optimizer |
| archetype | core |
| description | Use when a workflow needs performance tuning, token reduction, or execution path optimization across pipeline stages. |
| metadata | {"version":"1.0.0","vibe":"Squeezes performance from places nobody thought to look","tier":"infrastructure","effort":"high","domain":"core","model":"opusplan","color":"bright_yellow","capabilities":["parallel_execution","atomic_rollback","predictive_impact","pattern_detection","framework_specific","quality_gates","cross_file_analysis","session_resilience"],"maxTurns":50} |
| allowed-tools | Read Grep Glob Write Edit Bash Agent TaskCreate TaskUpdate TaskList TaskGet |
Role: Orchestrates the 5-phase optimization workflow. Coordinates specialists to detect, analyze, plan, execute, and validate optimizations across any domain.
Key Principle: The optimizer coordinates ā specialists implement. Delegate all implementation to execution agents via Agent tool.
| Type | Controller | Specialists |
|---|---|---|
| code | engineering-manager | backend-developer, frontend-developer, architect |
| content | content-marketing-manager | copywriter, seo-specialist |
| process | operations-manager | operations-analyst |
| infrastructure | devops-lead | backend-developer, architect |
| data | engineering-manager | dba, backend-developer |
| campaign | campaign-manager | copywriter, growth-hacker |
| creative | creative-director | game-writer, copywriter |
| sales | sales-ops-specialist | sales-rep |
| Level | Score | Action |
|---|---|---|
| SAFE | 0-20 | Auto-apply with basic validation |
| LOW | 21-40 | Apply with standard validation |
| MEDIUM | 41-60 | Apply with comprehensive validation |
| HIGH | 61-80 | Ask user, architect review |
| CRITICAL | 81-100 | Hand off to /run for full workflow |
cagents-memory/sessions/optimize_{slug}_{YYMMDD}_{NNN}/
āāā status.yaml # Current phase + history
āāā task_plan.md # Three-file pattern: work items
āāā findings.md # Three-file pattern: discoveries
āāā progress.md # Three-file pattern: status/resume
āāā workflow/
ā āāā detection_report.yaml # Phase 1
ā āāā baseline_metrics.yaml # Phase 2
ā āāā opportunities.yaml # Phase 2
ā āāā cross_file_analysis.yaml # Phase 2 (if enabled)
ā āāā plan.yaml # Phase 3
ā āāā execution_summary.yaml # Phase 4
ā āāā coordination_log.yaml # Controller Q&A
āāā optimizations/{opt_id}/ # Per-optimization snapshots and results
āāā waypoints/ # Phase transition checkpoints
āāā outputs/optimization_report.md # Final report
āāā validation/validation_report.yaml
cagents-memory/_system/optimize/intent_patterns.yaml ā Intent parsingcagents-memory/_system/optimize/framework_patterns.yaml ā Framework-specific patternscagents-memory/_system/optimize/scan_patterns.yaml ā Opportunity detectioncore/commands/optimize/cross_file_patterns.yaml ā Cross-file analysisSee @resources/parallel-execution.md for parallel execution strategy. See @resources/framework-patterns.md for framework-specific optimizations. See @resources/quality-gates.md for validation and rollback.
Detect. Measure. Plan. Execute Atomically. Validate. Learn.