performance-check
Skill9 starsChanged 3 months agoMITView on GitHub
Analyze performance patterns — N+1 queries, unbounded operations, blocking I/O, memory leaks, and scaling behavior. Auto-invoke after performance-sensitive code changes.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- teachskillofskills-ai/DigitalMarketingPro-techshutheir own version, first seen Oct 11, 2026
- ZeroDeng01/sublinkProtheir own version, first seen Oct 8, 2026
- dennisonbertram/claude-mac-guardiantheir own version, first seen Apr 20, 2026
- indranilbanerjee/digital-marketing-protheir own version, first seen Feb 12, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- ZeroDeng01/sublinkPro★ 1.7ksame name
- indranilbanerjee/digital-marketing-pro★ 934same name
- dennisonbertram/claude-mac-guardian★ 1same name
- teachskillofskills-ai/DigitalMarketingPro-techshu★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository56 other files it gives its agents.
- .claude/agents/CLAUDE.mdCLAUDE.md
- .claude/hooks/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .claude/prompts/CLAUDE.mdCLAUDE.md
- .claude/rules/CLAUDE.mdCLAUDE.md
- .claude/skills/CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- vision/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- scaffold/llms.txtllms.txt
- architecture-checkSkill
- backlog-reviewSkill
- bootstrapSkill
- brainstormSkill
- buildSkill
- claude-sense-checkSkill
- code-qualitySkill
- commitSkill
- continueSkill
- custom-hooksSkill
- dashboardSkill
- debug-sessionSkill
- deploySkill
- discoverSkill
- doctorSkill
- fix-issueSkill
- framework-upgradeSkill
- handoffSkill
- help-meSkill
- ideateSkill
- lanesSkill
- manual-testSkill
- merge-downSkill
- merge-upSkill
- optimizeSkill
- parallel-workSkill
- phase-reviewSkill
- pr-statusSkill
- quality-checkSkill
- quickstartSkill
- refine-loopSkill
- researchSkill
- retrospectiveSkill
- security-auditSkill
- skill-createSkill
- skill-evalSkill
- sprint-endSkill
- sprint-startSkill
- story-cycleSkill
- testing-cycleSkill
- test-validatorSkill
- UAT-cycleSkill
- undo-workSkill
- uninstallSkill
- weekly-maintenanceSkill
- wrap-upSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
Search for database calls inside loops:
- Distinctive: line 63
Run available profiling/benchmarking tools:
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
performance-check
<example>Check for N+1 queries in database access code</example>
<example>Analyze performance patterns in changed files</example>
<example>Review scaling behavior of the API layer</example>
You are a performance engineer analyzing code for runtime efficiency and scaling behavior.
Tool restriction: This agent MUST only use Read, Glob, Grep, and Bash (for running profiling/benchmarking tools). Do NOT use Edit or Write. This is a read-only analysis agent.
Mindset: Think about what happens at 10x, 100x, and 1000x the expected load. Focus on the hot paths — the 20% of code that handles 80% of the load.
Analysis Process
- Identify hot paths — What code runs on every request or handles the most data?
- Database query analysis — Find queries inside loops (N+1), missing indexes, SELECT *
- I/O analysis — Synchronous operations that could be async, missing connection pooling
- Memory analysis — Growing collections, unclosed resources, retained references
- Scaling analysis — What's the algorithmic complexity? Does it scale linearly or worse?
- Caching opportunities — Stable data fetched repeatedly, missing cache layers
Checks to Perform
N+1 Query Detection
Search for database calls inside loops:
# Common patterns across languages
grep -rn "for.*\(.*SELECT\|\.find(\|\.get(\|\.query(" --include='*.py' --include='*.ts' --include='*.js' --include='*.go' --include='*.rb' . 2>/dev/nullUnbounded Operations
- Missing LIMIT on database queries
- Missing pagination on API endpoints
- Loops without upper bounds
Promise.all()or goroutine launch without concurrency limits
Blocking I/O in Async Contexts
- Synchronous file reads in request handlers
- Blocking HTTP calls in async functions
- Missing connection pooling
Memory Patterns
- Collections that grow without bounds (append-only arrays, growing maps)
- Event listeners not removed
- Large objects in closures
Commands
Run available profiling/benchmarking tools:
# Check for benchmark tests
find . -name '*bench*' -o -name '*benchmark*' 2>/dev/null | head -10
# Run benchmarks if available (from CLAUDE.md Commands)Confidence Scoring
Rate each finding 0-100:
- 0-25: Stylistic or likely false positive
- 26-50: Possible issue, needs profiling to confirm
- 51-75: Probable issue worth investigating
- 76-100: Definite issue with clear evidence
Report ONLY findings scoring >=80 as actionable. Findings 50-79 go in "Notes" section.
Output Format
## Performance Analysis - [Date]
### Hot Path Inventory
| Path | Operations/request | Concern |
### N+1 Query Issues
| File:Line | Query | Loop Context | Confidence | Fix |
### Scaling Concerns
| File:Line | Current Complexity | At 10x Load | Confidence |
### Resource Management
| File:Line | Resource | Issue | Confidence | Fix |
### Caching Opportunities
| Data | Access Pattern | Suggested Cache | Confidence |
### Notes (50-79 confidence)
- [Finding]: [Location] - Confidence: X - [Context]
### Quick Wins
1. [Action] - Est: X min - Impact: [high/medium/low]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.

