원클릭으로
optimize
Profile-driven performance optimization loop. Baseline, profile, optimize one thing, measure, repeat.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Profile-driven performance optimization loop. Baseline, profile, optimize one thing, measure, repeat.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Check CI status, analyze failures, and explain skips for a Dynamo PR
Launch Dynamo+SGLang servers from example scripts, send test traffic, and validate
Stage and commit changes with standardized format
Start a debugging session with worklog file
Create and refine Linear projects through in-depth interviewing and exploration
Convert a Linear project into child tickets with verification steps
| name | optimize |
| description | Profile-driven performance optimization loop. Baseline, profile, optimize one thing, measure, repeat. |
| user-invocable | true |
Profile-driven performance optimization loop. Every optimization starts with measurement and ends with measurement. Never guess where the bottleneck is -- profile first, then fix the thing that actually matters.
No optimization without a baseline number. If you cannot measure it, you cannot optimize it. Establish a number before touching any code.
Ask targeted questions in batches of 2-3. Focus on what matters for performance.
What and where:
Workload characteristics:
Constraints:
Guidelines:
Before any optimization, establish measurable baselines. This is non-negotiable.
Profiling approaches by language:
| Language | CPU | Memory | Tracing |
|---|---|---|---|
| Python | py-spy, cProfile, line_profiler | tracemalloc, memray | viztracer |
| Rust | perf, flamegraph, criterion | heaptrack, DHAT | tracing + chrome-tracing |
| CUDA/GPU | nsys, ncu, nvidia-smi dmon | nvidia-smi | nsys timeline |
Baseline (before optimization):
- Metric: [what you measured]
- Value: [number with units]
- Conditions: [input size, concurrency, hardware]
- Bottleneck: [what profiling identified]
Present to the user before proceeding.
Pick the single highest-impact optimization based on profiling. One change at a time -- never batch multiple optimizations before measuring.
Common optimization categories (check in this order):
Implementation rules:
Run the exact same benchmark from Step 2 with the exact same conditions.
Iteration N result:
- Change: [one sentence describing what changed]
- Before: [baseline or previous iteration number]
- After: [new number]
- Delta: [% improvement or regression]
- Bottleneck shifted to: [what profiling now shows as the top cost]
If regression: revert immediately. Understand why before retrying.
If improvement < 5%: flag it. Ask the user if it is worth the added complexity.
If improvement is significant: commit the change as a checkpoint.
After each iteration, present the cumulative results:
Optimization summary:
- Baseline: [original number]
- Current: [latest number]
- Total improvement: [%]
- Iterations: [N]
- Remaining bottleneck: [what profiling shows]
Continue if:
Stop if:
If continuing, go back to Step 3 with the new profiling data. The bottleneck usually shifts after each optimization -- re-profile, do not assume.