performance-optimizer
Skill3 starsChanged 13 days agoMITView on GitHub
Analyze codebase for performance issues and code quality problems, then apply optimizations directly to code. Use when user asks to analyze performance, audit code quality, find bottlenecks, reduce bundle size, optimize images/assets, remove duplicated code, or "make the code faster/cleaner/lighter" — even if not named explicitly. Trigger on "check the performance of this project", "optimize my codebase", "find and fix inefficiencies", "reduce bundle size", "clean up duplicated code".
17 other projects use a version of this.
Adopted by
Most recently taken up by
- oivanfelipe/claude-skillstheir own version, first seen Nov 8, 2026
- mrhinkle/VibeCoding-a-Websitetheir own version, first seen Nov 1, 2026
- saksham-techlabs/ai-builder-skills-packtheir own version, first seen Oct 25, 2026
- neeraj181-dot/ClaudeSkillstheir own version, first seen Aug 25, 2026
- TheHiddenDeveloper/jarvis-skillstheir own version, first seen Aug 19, 2026
- poorvith-mp/skills-developertheir own version, first seen Aug 19, 2026
Used with
Projects with it also use observability-engineer, security-auditor and 5 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.
xfstudioSkillobservability-engineer
Build production-ready monitoring, logging, and tracing systems.
Also in 3 projects that use this
nahisahoSkillsecurity-auditor
security-auditor skill
Also in 5 projects that use this
lodetomasiSkilldatabase-optimizer
Database performance optimization: N+1 detection, query analysis, indexing, and ORM tuning
Also in 3 projects that use this
AutumnsGroveSkillapi-designer
Design and document RESTful and GraphQL APIs with OpenAPI/Swagger specifications, authentication patterns, versioning strategies, and best practices. Use for: (1) Creating API specifications, (2) Designing REST endpoints, (3) GraphQL schema design, (4) API authentication and authorization, (5) API versioning strategies, (6) Documentation generation
Also in 3 projects that use this
GoogleSkillcode-reviewer
Also in 5 projects that use this
xenitV1Skillclean-code
Pragmatic coding standards - concise, direct, no over-engineering, no unnecessary comments
Also in 3 projects that use this
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 17
- nahisaho/MUSUBI★ 74same name
- glincker/claude-code-marketplace★ 37same name
- mrhinkle/VibeCoding-a-Website★ 17same name
- nihao555-hub/claude-code-agent-skills★ 4same name
- moses607/socialforge★ 3same name
- CODE-SAURABH/OpenSkills★ 2same name
- mehdiozdemir/awesome-agent-skills★ 2same name
- ronrefael/sonde★ 2same name
- rudrathegreat/Astronomy-AI-Toolkit★ 2same name
- lschGSL/claude_code_template★ 1same name
7 more not listed
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 repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- astro-expertSkill
- bulma-expertSkill
- code-reviewSkill
- frontend-accessibilitySkill
- nuxt-expertSkill
- security-auditSkill
- seo-auditSkill
- systematic-debuggingSkill
- update-documentationSkill
- vue-expertSkill
- web-designSkill
- website-analyzerSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
5
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
Ask user which categories to act on if list long, unless already said "fix everything".
- Distinctive: line 31
Dead code: remove after confirming no external references (grep whole repo first).
- Very specific: line 33
After each category: run existing tests/build if project has them (npm test, npm run build, etc.) to confirm nothing broke.
- Distinctive: line 37
Never guess at "optimized" behavior that changes program output — perf fixes must be behavior-preserving.
- Distinctive: line 38
Don't install new deps for a fix if native/existing solution works.
- Distinctive: line 39
No test suite → flag it, proceed more conservatively (smaller diffs, manual reasoning about correctness).
“Common” is measured: kept by at least 6 in 10 of the 13 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
Codebase Performance Optimizer
Two phases: Analyze then Optimize. Always show findings before touching code, unless user says "just fix it".
Phase 1 — Analyze
- Map project: language(s), framework, build tool, package manager.
viewroot dir, then relevant configs (package.json, webpack/vite config, tsconfig, etc). - Scan issue categories (grep/find via shell, or language-specific tools when available):
- Duplication: repeated logic/blocks across files (near-identical functions, copy-pasted components).
- Bundle size: heavy/unused deps, missing tree-shaking, no code-splitting, large barrel imports.
- Images/assets: uncompressed images, wrong format (PNG where WebP/AVIF fits), oversized dimensions, missing lazy-loading.
- Runtime perf: N+1 queries, unnecessary re-renders (React: missing memo/useMemo/useCallback, inline object/function props), blocking sync I/O, unindexed DB queries, O(n²) loops on large data.
- Dead code: unused exports, unreachable branches, commented-out blocks.
- Build config: missing minification, no compression (gzip/brotli), dev-only code shipped to prod.
- Produce findings report (chat, concise): per issue — file:line, issue, impact (high/medium/low), proposed fix.
- Ask user which categories to act on if list long, unless already said "fix everything".
Phase 2 — Optimize
Apply fixes incrementally, one category at a time, so changes stay reviewable:
- Dedup: extract shared logic into function/module/component; update call sites.
- Bundle: replace heavy deps with lighter alternatives (only if drop-in compatible), add/adjust code-splitting or dynamic imports, fix barrel-import issues.
- Images: recompress/convert via shell (
cwebp,sharp,imageminif available — check what's installed first), resize to actual display dimensions, add lazy-loading attributes. - Runtime: memoization, batch queries, replace O(n²) with efficient structures/algorithms.
- Dead code: remove after confirming no external references (grep whole repo first).
After each category: run existing tests/build if project has them (npm test, npm run build, etc.) to confirm nothing broke. Report changes + why, file by file, short summary — not just "done".
Rules
- Never guess at "optimized" behavior that changes program output — perf fixes must be behavior-preserving.
- Don't install new deps for a fix if native/existing solution works.
- No test suite → flag it, proceed more conservatively (smaller diffs, manual reasoning about correctness).
- Very large repos → sample representative files/modules first, not blind full scan; ask user for subfolder if scope unclear.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

