perf-profile
Skill3 starsChanged 5 months agoMITView on GitHub
Profile Python and Node.js application performance. Identify slow endpoints, memory leaks, and CPU bottlenecks.
- Installs packages
8 other projects use a version of this.
Adopted by
Most recently taken up by
- HunLuanZhiZhu/Game-Studios-Plugintheir own version, first seen Oct 5, 2026
- Donchitos/Claude-Code-Game-Studiostheir own version, first seen Sep 29, 2026
- dawn840705/codex-code-studiostheir own version, first seen Aug 28, 2026
- striderZA/OpenCodeGameStudiostheir own version, first seen Aug 10, 2026
- cenconq25/claude-code-app-studiotheir own version, first seen May 3, 2026
- tranhieutt/software_development_departmenttheir own version, first seen Apr 30, 2026
Used with
Projects with it also use asset-spec, create-control-manifest and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
cenconq25Skillasset-spec
Generates per-asset visual specifications and AI-generation prompts from PRDs and the design bible. Produces structured spec files and updates a master asset manifest. Use after design bible is approved and a UX spec or PRD identifies assets to produce. Output: design/assets/<asset>.md plus design/assets/manifest.md.
Also in 5 projects that use this
cenconq25Skillcreate-control-manifest
Produces a flat, immediately-actionable rules sheet — do this, never do that, per system and per layer — extracted from accepted ADRs, technical preferences, and framework reference docs. More directly usable than ADRs for day-to-day implementation. Run after /architecture-review passes.
Also in 5 projects that use this
- +10 more from cenconq25
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- Donchitos/Claude-Code-Game-Studios★ 26ksame name
- pixel-cellar/Claude-Code-Game-Studios★ 338same name
- striderZA/OpenCodeGameStudios★ 90same name
- tranhieutt/software_development_department★ 72same name
- cenconq25/claude-code-app-studio★ 41same name
- CoralGame/Claude-Code-Game-Studios★ 19same name
- dawn840705/codex-code-studios★ 17same name
- HunLuanZhiZhu/Game-Studios-Plugin★ 1same 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 repository67 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- optimize-contextSkill
- a11y-checkSkill
- api-contractSkill
- backend-patternsSkill
- build-fixSkill
- checkpointSkill
- clickhouse-ioSkill
- code-review-eccSkill
- code-reviewSkill
- coding-standardsSkill
- config-auditSkill
- continuous-learning-v2Skill
- create-prdSkill
- deps-auditSkill
- e2eSkill
- eval-harnessSkill
- evalSkill
- evolveSkill
- executeSkill
- execution-reportSkill
- extract-sharedSkill
- firecrawlSkill
- frontend-designSkill
- frontend-patternsSkill
- golang-patternsSkill
- golang-testingSkill
- implement-fixSkill
- init-projectSkill
- instinct-exportSkill
- instinct-importSkill
- instinct-statusSkill
- iterative-retrievalSkill
- lazySkill
- learnSkill
- orchestrateSkill
- plan-eccSkill
- plan-featureSkill
- postgres-patternsSkill
- primeSkill
- project-guidelines-exampleSkill
- projectSkill
- prompt-auditSkill
- python-patternsSkill
- python-reviewSkill
- python-testingSkill
- rcaSkill
- refactor-cleanSkill
- releaseSkill
- security-reviewSkill
- seo-kitSkill
- set-working-dirSkill
- skill-createSkill
- strategic-compactSkill
- supadataSkill
- system-reviewSkill
- tddSkill
- tdd-workflowSkill
- test-coverageSkill
- testSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
No arguments: auto-detect project type and run overview
- Distinctive: line 53
Search for known performance anti-patterns:
- Distinctive: line 149
Search for potentially slow operations:
- Distinctive: line 195
If no running processes found: skip runtime checks, report static analysis only
- Distinctive: line 196
If Docker not available: skip container stats
- Distinctive: line 197
If endpoint unreachable: report connection error with timing
- Very specific: line 198
If project type can't be detected: ask user to specify --python or --node
“Common” is measured: kept by at least 6 in 10 of the 7 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 Profiler
Profile application performance for Python and Node.js projects. Identifies slow endpoints, memory usage, and CPU bottlenecks.
Arguments
Parse $ARGUMENTS:
--python: Profile a Python application--node: Profile a Node.js application--endpoint <url>: Profile a specific HTTP endpoint with timing--memory: Focus on memory usage analysis--cpu: Focus on CPU profiling--slow: Find slow functions/queries in the codebase (static analysis)- No arguments: auto-detect project type and run overview
Process
Mode 1: Endpoint Profiling (--endpoint)
Time a specific HTTP endpoint with multiple requests:
# Single request with timing breakdown
curl -w "\n DNS: %{time_namelookup}s\n Connect: %{time_connect}s\n TLS: %{time_appconnect}s\n TTFB: %{time_starttransfer}s\n Total: %{time_total}s\n Size: %{size_download} bytes\n" -o /dev/null -s <url>
# Multiple requests for p50/p95/p99 (10 requests)
for i in $(seq 1 10); do
curl -o /dev/null -s -w "%{time_total}\n" <url>
done | sort -n | awk '
{ a[NR] = $1; sum += $1 }
END {
print " Requests: " NR
print " Mean: " sum/NR "s"
print " p50: " a[int(NR*0.5)] "s"
print " p95: " a[int(NR*0.95)] "s"
print " p99: " a[int(NR*0.99)] "s"
print " Min: " a[1] "s"
print " Max: " a[NR] "s"
}
'Mode 2: Python Profiling (--python)
Static Analysis — Find Slow Patterns
Search for known performance anti-patterns:
# N+1 query patterns (SQLAlchemy)
grep -rn "\.query\." --include="*.py" <path> | grep -i "for\|loop\|iter"
# Synchronous I/O in async code
grep -rn "requests\.\(get\|post\|put\)" --include="*.py" <path>
# Missing pagination
grep -rn "\.all()" --include="*.py" <path>
# Large file reads without streaming
grep -rn "\.read()" --include="*.py" <path> | grep -v test
# Sleep calls (potential polling anti-pattern)
grep -rn "time\.sleep\|asyncio\.sleep" --include="*.py" <path>Runtime Profiling (if app is running)
Suggest profiling commands:
To profile a running Python app:
# cProfile (built-in)
python -m cProfile -s cumtime app.py 2>&1 | head -30
# py-spy (sampling profiler, no code changes needed)
pip install py-spy
py-spy top --pid <PID> # Live top-like view
py-spy record --pid <PID> -o profile.svg # Flame graph
# memory_profiler
pip install memory_profiler
python -m memory_profiler app.pyMode 3: Node.js Profiling (--node)
Static Analysis
# Synchronous fs operations
grep -rn "readFileSync\|writeFileSync\|existsSync" --include="*.ts" --include="*.js" <path>
# Missing async/await (potential unhandled promises)
grep -rn "\.then(" --include="*.ts" --include="*.js" <path> | grep -v node_modules | head -10
# Console.log in production code
grep -rn "console\.log" --include="*.ts" --include="*.js" <path> | grep -v node_modules | grep -v test
# Large payload without streaming
grep -rn "JSON\.parse\|JSON\.stringify" --include="*.ts" --include="*.js" <path> | grep -v node_modules | head -10Runtime Suggestions
To profile a running Node.js app:
# Built-in profiler
node --prof app.js
node --prof-process isolate-*.log > profile.txt
# Clinic.js (comprehensive)
npx clinic doctor -- node app.js
npx clinic flame -- node app.js
# Heap snapshot
node --inspect app.js
# Then connect Chrome DevTools to chrome://inspectMode 4: Memory Analysis (--memory)
Python:
# Check process memory (if running)
ps aux | grep -E "python|uvicorn|gunicorn" | grep -v grep | awk '{print $2, $4"%", $6/1024"MB", $11}'
# Check for memory leak patterns
grep -rn "global\|cache\s*=\s*{}\|_cache\|lru_cache" --include="*.py" <path> | head -10Node.js:
# Check process memory
ps aux | grep -E "node|next|express" | grep -v grep | awk '{print $2, $4"%", $6/1024"MB", $11}'Docker containers:
docker stats --no-stream --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.MemPerc}}" 2>/dev/nullMode 5: Slow Query/Function Finder (--slow)
Search for potentially slow operations:
# Database queries without limits
grep -rn "SELECT.*FROM" --include="*.py" --include="*.ts" <path> | grep -v "LIMIT\|limit\|test" | head -10
# Missing indexes (check model definitions)
grep -rn "Column\|mapped_column" --include="*.py" <path> | grep -v "index=True\|primary_key" | head -10
# Large loop operations
grep -rn "for.*in.*\.all()\|for.*in.*find(" --include="*.py" <path>Report
## Performance Profile: <project-name>
### Endpoint Timing (if --endpoint)
| Metric | Value |
|--------|-------|
| Mean | 0.234s |
| p50 | 0.198s |
| p95 | 0.412s |
| p99 | 0.891s |
### Static Analysis Findings
| Category | Count | Severity | Files |
|----------|-------|----------|-------|
| Sync I/O in async code | 3 | HIGH | api/routes.py, services/email.py |
| Missing pagination (.all()) | 5 | MEDIUM | models.py, reports.py |
| N+1 query patterns | 2 | HIGH | orders.py |
### Memory (if --memory)
| Process | PID | Memory | CPU |
|---------|-----|--------|-----|
| uvicorn | 12345 | 245MB | 2.3% |
### Recommendations
1. [HIGH] Replace `requests.get()` with `httpx` async client in 3 files
2. [HIGH] Add pagination to 5 `.all()` queries
3. [MEDIUM] Add database indexes for frequently queried columnsError Handling
- If no running processes found: skip runtime checks, report static analysis only
- If Docker not available: skip container stats
- If endpoint unreachable: report connection error with timing
- If project type can't be detected: ask user to specify --python or --node
Notes
- Static analysis is always safe — it only reads code, never modifies it
- Runtime profiling suggestions are provided as commands for the user to run
- For production profiling, always recommend
py-spy(Python) orclinic(Node) as they have low overhead - Endpoint profiling with curl is safe for read endpoints; be cautious with POST/PUT/DELETE
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.

