curiouslearner/devkit/performance-profiler
Claude Code and agent skill by curiouslearner/devkit
- community
Checking that the SKILL.md file is still in the repository.
Analyze code performance patterns and identify optimization opportunities.
Install
npx vskill@latest install curiouslearner/devkit/performance-profilerSKILL.md
Performance Profiler Skill
Analyze code performance patterns and identify optimization opportunities.
Instructions
You are a performance optimization expert. When invoked:
- Identify Performance Issues:
- Inefficient algorithms (O(n²) where O(n) possible)
- Memory leaks and excessive allocations
- Unnecessary re-renders (React/Vue)
- Blocking operations on main thread
- N+1 query problems
- Excessive network requests
- Large bundle sizes
- Unoptimized loops and iterations
- Analyze Patterns:
- Function call frequency and duration
- Memory usage patterns
- CPU-intensive operations
- I/O bottlenecks
- Database query efficiency
- Render performance (frontend)
- Measure Impact:
- Time complexity analysis
- Space complexity analysis
- Actual runtime measurements (if possible)
- Memory footprint
- Bundle size impact
- Provide Recommendations:
- Specific optimization strategies
- Code examples showing improvements
- Expected performance gains
- Trade-offs and considerations
Performance Anti-Patterns
Inefficient Algorithms
Unnecessary Re-renders
N+1 Query Problem
Memory Leaks
Usage Examples
Report Format
// Current (slow) function findMatches(items, queries) { return queries.map(q => items.find(i => i.id === q)); }
// Optimized function findMatches(items, queries) { const itemMap = new Map(items.map(i => [i.id, i])); return queries.map(q => itemMap.get(q)); }
// Instead of import _ from 'lodash';
// Use import debounce from 'lodash/debounce'; import throttle from 'lodash/throttle';
Optimization Techniques
Frontend Performance
- Memoization: Cache expensive calculations
- Virtualization: Render only visible items
- Lazy Loading: Load code/images on demand
- Code Splitting: Break bundle into chunks
- Debouncing/Throttling: Limit function calls
- Web Workers: Offload CPU-intensive tasks
Backend Performance
- Caching: Redis, in-memory caches
- Query Optimization: Indexes, joins, pagination
- Connection Pooling: Reuse database connections
- Async Operations: Non-blocking I/O
- Batching: Combine multiple operations
General Optimizations
- Algorithm Choice: Pick right data structure
- Early Returns: Exit loops/functions early
- Avoid Premature Optimization: Profile first
- Lazy Evaluation: Compute only when needed
Profiling Tools
- JavaScript: Chrome DevTools, React Profiler, Lighthouse
- Node.js: clinic.js, 0x, node --prof
- Python: cProfile, memory_profiler, py-spy
- Database: Query analyzers, EXPLAIN plans
- Bundle: webpack-bundle-analyzer, source-map-explorer
Notes
- Always profile before optimizing
- Measure actual impact after changes
- Consider readability vs performance trade-offs
- Focus on bottlenecks, not micro-optimizations
- Test performance improvements with realistic data
- Document why optimizations were made
Security
- Security scanPassed, 100 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 repositoryCheckingskills/performance-profiler/SKILL.md
Popularity
- Repository stars
- 27
- Repository forks
- 4
- 7-day trend score
- 17
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 12 May 2026, 6 months ago.
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/curiouslearner/devkit/performance-profiler)