agulli/atlas-agents/performance-profiling
Claude Code and agent skill by agulli/atlas-agents
- community
Checking that the SKILL.md file is still in the repository.
Profile and optimize application performance. Use when asked to improve speed, reduce latency, fix memory leaks, find bottlenecks, or optimize a slow function or endpoint.
Install
npx vskill@latest install agulli/atlas-agents/performance-profilingSKILL.md
The same SKILL.md was published earlier as agulli/atlas-agents/performance-profiling.
Overview
You do not optimize what you have not measured. Every performance investigation starts with a profiler, not a hypothesis.
Process
- Establish a baseline. Before changing anything, measure the current performance:
- For a function: time it with actual production-representative data
- For an endpoint: measure p50, p95, p99 latency under realistic load
- For memory: record heap size at start, peak, and end of operation
```python import cProfile, pstats, io
pr = cProfile.Profile() pr.enable() result = slow_function(data) pr.disable()
s = io.StringIO() ps = pstats.Stats(pr, stream=s).sort_stats('cumulative') ps.print_stats(20) # Top 20 by cumulative time print(s.getvalue()) ```
- Read the profiler output. Identify the top 3 functions by cumulative time. Do not optimize anything that is NOT in the top 3 — this is Amdahl's Law in practice.
- Form ONE hypothesis for why the top bottleneck is slow. Common causes, in order of frequency:
- N+1 query (calling the database once per item in a loop)
- Missing index on a frequently queried column
- Serialization of large objects in a hot path
- Synchronous I/O blocking an async event loop
- Unnecessary repeated computation (missing cache)
- Apply ONE change. The smallest possible change that addresses the hypothesis. Do not refactor the entire module.
- Measure again. Compare against the baseline. Report the improvement as a percentage.
- Repeat. If there is still a performance gap, return to step 2 with the updated profile.
Common Patterns
N+1 query fix:
Caching a pure function:
Rationalizations
| Excuse | Rebuttal | |
|---|---|---|
| "I know what the bottleneck is without profiling" | You don't. Everyone thinks they know. Profile first, always. | |
| "Let me optimize the whole module while I'm here" | Scope creep disguised as diligence. Fix the top bottleneck, measure, then decide if more work is needed. | |
| "It's fast enough on my machine" | Production data is 100x larger. Profile with production-scale data. |
Verification
- [ ] Baseline performance was measured before any change
- [ ] Profiler output was read (not guessed)
- [ ] Only the top bottleneck was targeted
- [ ] Performance was measured after the change and improvement percentage was reported
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingch09_agent_skills/skills/performance-profiling/SKILL.md
Popularity
- Repository stars
- 574
- Repository forks
- 127
- 7-day trend score
- 32
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/agulli/atlas-agents/performance-profiling)