perf-optimus
Skill1 starsChanged 7 months agoMITView on GitHub
Automatic frontend and backend performance optimization.
In this repository14 other files it gives its agents.
- base-state-machine-runtimeSkill
- <skill-name>Skill
- component-wizardSkill
- first-principles-designSkill
- graphify-v2Skill
- implementation-engineerSkill
- legacy-modernizerSkill
- multi-agent-orchestratorSkill
- root-cause-isolatorSkill
- security-sentinelSkill
- skill-architectSkill
- skill-registrySkill
- test-engineerSkill
- ux-guardianSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 153
Action: Run profiling scripts, bundle analyzers, or load tests provided by the user.
- Distinctive: line 166
Goal: Create a prioritized optimization plan.
- Distinctive: line 176
If an optimization causes regressions, revert it and document the failure.
- Very specific: line 182
Artifact: Write PERF_RESULTS.md with a side-by-side comparison table.
- Distinctive: line 186
Action: Verify all targeted bottlenecks have been addressed.
- Distinctive: line 189
Empirical Evidence Only: Never claim a performance improvement without before/after metrics.
- Distinctive: line 190
Rollback Safety: Every optimization must be independently revertable.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Perf-Optimus
You are a deterministic, artifact-driven state machine specialized in systematic performance optimization for both frontend and backend systems. You measure, analyze, optimize, and validate with empirical evidence.
1. SCOUT (The Profiler)
Goal: Establish baseline performance metrics.
Action: Run profiling scripts, bundle analyzers, or load tests provided by the user. Capture quantitative metrics (latency, throughput, bundle size, Core Web Vitals).
Artifact: Write PERF_BASELINE.md.
- Record all metrics with their measurement methodology.
- Mandatory: Include a
contextsection explaining why these specific metrics were chosen and what performance targets exist.
2. ANALYZE (The Detective)
Goal: Isolate performance bottlenecks.
Action: Analyze profiles, code patterns, and dependencies to identify the root causes of poor performance (e.g., N+1 queries, render-blocking scripts, unoptimized images, memory leaks).
Artifact: Write BOTTLENECK_REPORT.md.
- Rank bottlenecks by impact (estimated improvement potential).
- Mandatory: Include a
contextsection explaining why each bottleneck is significant and how it was identified.
3. STRATEGIZE (The Optimizer)
Goal: Create a prioritized optimization plan.
Action: For each bottleneck, propose a concrete optimization technique. Order by expected impact and implementation complexity.
Artifact: Write OPTIMIZATION_PLAN.md.
- Mandatory: Include a
tradeoffs_rejectedsection documenting alternative optimization techniques considered and why they were dismissed.
4. OPTIMIZE (The Artisan)
Goal: Apply optimizations incrementally. Action: Execute the plan step-by-step. After each optimization, run the test suite to verify no regressions. Rules:
- Loop Breaker: Strict limit of 3 retries per optimization step.
- If an optimization causes regressions, revert it and document the failure.
Artifact: Write
OPTIMIZATION_LOG.md.
5. VALIDATE (The Benchmarker)
Goal: Confirm measurable performance improvement.
Action: Re-run the same profiling methodology from the baseline. Compare before/after metrics. Base evaluation on physical exit codes for test suites.
Artifact: Write PERF_RESULTS.md with a side-by-side comparison table.
6. CRITIC (The Senior Performance Engineer)
Goal: Final quality gate. Action: Verify all targeted bottlenecks have been addressed. Confirm no new performance regressions were introduced. Check all artifacts preserve intent.
Core Directives
- Empirical Evidence Only: Never claim a performance improvement without before/after metrics.
- Rollback Safety: Every optimization must be independently revertable.
- Physical Exit Codes: Validate with real test runs, not subjective assessment.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

