performance-optimization
Measure first, optimize second. Data-driven performance improvements with before/after benchmarks and production validation.
pinned to #f47f948updated 2 weeks ago
Ask your AI client: “install skills/performance-optimization”.
Requires the metahub MCP server installed in your client. Set up MCP.
mh install skills/performance-optimizationmetahub onboarded this repo on the author's behalf.
If you own github.com/DevelopersGlobal/ai-agent-skills on GitHub, claim the listing to take over publishing. Your claim preserves the existing eval history and badges; only the curator label is replaced with verified-publisher on your next publish.
Stars
64
Last commit
2 weeks ago
Latest release
published
- #ai
- #ai-agents
- #antigravity
- #artificial-intelligence
- #claude
- #claude-code-plugin
- #claude-skills
- #codex
- #cursor
- #skills
Evaluation report
WarningsAutomated checks the publisher passed at publish time — structure, docs, safety, and whether the artifact behaves as claimed.f47f948· 2 weeks ago
Documentation
41Description qualitywarn
13 words · 124 chars — skills use the description as their trigger; aim higher
Aim for 15+ words and include trigger phrases like “use this skill when …”.
README is present and substantial
10,318 chars · 9 sections · 7 code blocks
Tags / topics declared
10 total — ai, ai-agents, antigravity, artificial-intelligence, claude, claude-code-plugin (+4)
README has usage / example sections
no labeled section but 7 code blocks document usage
Homepage / docs URL declared
https://developersglobal.github.io/ai-agent-skills/
Release history
1- releasecurrentf47f948warn2 weeks ago
Contents
Overview
Premature optimization is the root of all evil. But ignoring performance until it's a crisis is equally harmful. This skill enforces data-driven optimization: profile first, optimize the bottleneck, measure the improvement.
When to Use
- When performance issues are reported in production
- Before optimizing any code (to ensure you're optimizing the right thing)
- When reviewing changes that touch performance-sensitive paths
Process
Step 1: Measure the Baseline
- Reproduce the performance issue reliably.
- Measure current performance: latency p50/p95/p99, throughput, memory, CPU.
- Profile to find the actual bottleneck — not where you think it is.
- Write the performance test you'll use to validate improvement.
Verify: You have concrete baseline numbers, not gut feelings.
Step 2: Identify the Real Bottleneck
- Use profiling tools: flame graphs, CPU profiles, memory profiles.
- Find the top 3 hotspots by actual execution time (not lines of code).
- The bottleneck is rarely where you expect it to be. Trust the data.
Verify: Bottleneck identified by profiling data, not assumption.
Step 3: Optimize Only the Bottleneck
- Fix only the profiled bottleneck — nothing else.
- Common optimizations by type:
- CPU: Algorithmic improvement (O(n²) → O(n log n)), caching, batching
- Memory: Streaming instead of buffering, object pooling, lazy loading
- I/O: Connection pooling, N+1 query elimination, caching, async/parallel calls
- AI: Prompt caching, batch inference, smaller models for simpler tasks
Verify: Change targets the profiled bottleneck, not speculative improvements.
Step 4: Measure the Improvement
- Run the same performance test from Step 1.
- Compare before vs. after metrics.
- If improvement < 20%: the optimization may not be worth the complexity.
Verify: Improvement measured with the same test harness as baseline.
Common Rationalizations (and Rebuttals)
| Excuse | Rebuttal |
|---|---|
| "I know where the bottleneck is" | You're probably wrong. Profile first. |
| "This is clearly slow" | "Clearly slow" rarely matches profiler output. Measure. |
| "We'll optimize later" | If it's slow enough to mention, it's slow enough to measure now. |
Verification
- Baseline metrics captured before any optimization
- Bottleneck identified by profiler (not assumption)
- Optimization targets only the profiled bottleneck
- Improvement measured with same test harness
- Before/after numbers documented
References
Reviews
No reviews yet. Be the first.
Related
Planning With Files
Claude Code skill implementing Manus-style persistent markdown planning — the workflow pattern behind the $2B acquisition.
Guizang Ppt Skill
AI-agent Skill for generating polished HTML slide decks: editorial magazine and Swiss layouts, image prompts, social covers, and a WebGL/low-power presentation runtime.
orchestration-patterns
>
mh install skills/performance-optimization