marcmunoz-uno/jailbreak/perf-profile
Claude Code and agent skill by marcmunoz-uno/jailbreak
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Performance profiling and optimization — identify bottlenecks, measure impact, apply targeted optimizations
Install
npx vskill@latest install marcmunoz-uno/jailbreak/perf-profileSKILL.md
The same SKILL.md was published earlier as marcmunoz-uno/jailbreak/perf-profile.
Performance Profiling Skill
Purpose
Systematically identify performance bottlenecks, measure them with real data, apply targeted optimizations, and verify the improvement with before/after benchmarks. No premature optimization — measure first, then fix what matters.
When to Use
- User reports slowness in a specific operation
- Build/test times have increased noticeably
- API response times exceed SLOs
- Memory usage is growing unexpectedly
- Cron jobs are taking longer than their schedule interval
Execution Policy
- Mode: Sequential (measure → diagnose → optimize → verify)
- Evidence threshold: Every optimization must show measurable improvement (before/after numbers)
- Scope: Fix the top bottleneck only. Don't optimize everything at once.
- Safety: Benchmark before AND after. If optimization makes things worse or equal, revert.
Workflow
Phase 1: Baseline Measurement (scientist agent)
Spawn scientist agent to establish baseline:
- Identify what to measure (runtime, memory, I/O, network)
- Run the operation 3 times, record median
- Profile with appropriate tool:
- Python:
cProfile,py-spy,memory_profiler - Node.js:
--prof,clinic.js,0x - Shell:
time,strace -c,hyperfine - General:
timewrapper, wall clock measurement
- Identify top 3 hotspots by cumulative time/memory
Output:
Phase 2: Root Cause Diagnosis (architect agent)
Spawn architect agent with baseline data:
- Read the code at each hotspot
- Classify the bottleneck:
- Algorithmic: O(n²) where O(n) is possible
- I/O bound: Blocking reads, missing caching, sequential where parallel is possible
- Memory: Large allocations, missing cleanup, data structure choice
- Network: N+1 queries, missing batching, synchronous calls
- Concurrency: Lock contention, GIL, thread starvation
- For the #1 hotspot, propose a specific optimization with expected improvement
Phase 3: Apply Optimization (executor agent)
- Git commit current state (safety checkpoint)
- Apply the proposed optimization — minimal change
- No premature abstractions, no "while we're here" improvements
Phase 4: Verification (scientist agent)
- Run the SAME benchmark from Phase 1
- Compare before/after:
- Runtime improvement (% and absolute)
- Memory impact
- Correctness check (same output?)
- If improvement < 5% → revert (not worth the complexity)
- If improvement ≥ 5% → keep and report
Output:
Stop Conditions
- Optimization verified with measurable improvement → keep and report
- Optimization shows no improvement → revert and report findings
- Top hotspot is in external code (library, system call) → report with workaround suggestions
- User cancels
Examples
Good: Data-driven optimization
Bad: Premature optimization
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/perf-profile/SKILL.md
Popularity
- 7-day trend score
- 0
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/marcmunoz-uno/jailbreak/perf-profile)