performance-optimization
Skill1 starsChanged 27 days agoMITView on GitHub
Optimizes application performance. Use when performance requirements exist, when you suspect performance regressions, or when Core Web Vitals or load times need improvement. Use when profiling reveals bottlenecks that need fixing.
125 other projects use a version of this, 60 of them edited.
Adopted by
Most recently taken up by
- valentinesamuel/claude-skillstheir own version, first seen Nov 8, 2026
- ishandutta2007/Awesome-Claude-Skillstheir own version, first seen Nov 8, 2026
- ishandutta2007/Awesome-Agent-Skillsedited, first seen Nov 8, 2026
- paramcodes/skillsedited, first seen Nov 8, 2026
- nisarth/claude-skills-storetheir own version, first seen Nov 8, 2026
- DnsQueen/orcinus-skillsedited, first seen Nov 8, 2026
Used with
Projects with it also use constraint-driven-development, using-agent-skills and 8 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.
MrCipherSmithSkillconstraint-driven-development
Use when a project needs a persistent, measurable quality bar — starting a project without documented standards, 'set up constraints', or when coverage/perf/a11y thresholds get re-debated per-PR. Produces CONSTRAINTS.md with enforceable numbers, ratchets, and a guard against silent weakening. NOT for throwaway prototypes or a one-off CI setup.
Also in 15 projects that use this
LLl0k0laDSkillusing-agent-skills
Use when starting a session or when you need to discover which skill applies to the current task. This is the meta-skill that governs how all other skills are discovered and invoked.
Also in 33 projects that use this
LLl0k0laDSkillshipping-and-launch
Use when preparing to deploy to production. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.
Also in 42 projects that use this
HK-hubSkilldeprecation-and-migration
Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when deciding whether to maintain or sunset existing code.
Also in 39 projects that use this
ukanwatSkillinput-systems
Architect game input — action mapping (abstracting keys into named actions), rebinding with conflict detection and persistence, multi-device support (keyboard, gamepad, touch), analog deadzones, and feel features like input buffering and coyote time, plus accessibility. Engine-neutral. Use when the user mentions input mapping, rebind controls, gamepad support, deadzone, input buffering, coyote time, or accessible controls.
Also in 4 projects that use this
HK-hubSkillobservability-and-instrumentation
Instruments code so production behavior is visible and diagnosable. Use when adding logging, metrics, tracing, or alerting. Use when shipping any feature that runs in production and you need evidence it works. Use when production issues are reported but you can't tell what happened from the available data.
Also in 31 projects that use this
- +4 more from LLl0k0laD
Other versions125 projects use a version of this.
Word for word · 0
None found.
Edited · 60
- addyosmani/agent-skills★ 114k16% same
- sanity-io/sanity★ 6.4k34% same
- compozy/compozy★ 2.9k16% same
- ollaya-dev/ollaya★ 1.4k13% same
- shashankswe2020-ux/whoop-mcp★ 17434% same
- vinvcn/addyosmani-agent-skills-zh★ 4612% same
- jmxt3/gitscape.ai★ 3313% same
- sampleXbro/agentsmesh★ 2734% same
- jaskirat1616/grok-skills★ 2213% same
- ishandutta2007/Awesome-Agent-Skills★ 2134% same
50 more not listed
Wrote their own version · 65
- gamedev-skills/awesome-gamedev-agent-skills★ 6.4ksame name
- buddy-compiler/buddy-mlir★ 773same name
- ThibautBaissac/rails_ai_agents★ 665same name
- derHaken/SuperAntigravity★ 439same name
- ukanwat/aaabench★ 399same name
- ukanwat/overtime★ 399same name
- ukanwat/selfstarter★ 399same name
- ryanthedev/code-foundations★ 381same name
- Mindrally/skills★ 275same name
- hmislk/hmis★ 244same name
55 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 repository66 other files it gives its agents.
- add-ai-chatSkill
- add-buildpadSkill
- add-commentsSkill
- add-cronSkill
- add-external-oauthSkill
- add-filesSkill
- add-i18nSkill
- add-mcp-serverSkill
- add-microappSkill
- add-microfrontendSkill
- add-microfrontend-zonesSkill
- add-mobile-appSkill
- add-multitenancySkill
- add-usersSkill
- add-workflowsSkill
- amplify-env-varsSkill
- authentication-proxySkill
- buildpad-debugSkill
- buildpad-discoverySkill
- buildpad-implSkill
- buildpad-referenceSkill
- buildpad-reviewSkill
- buildpad-spec-batchSkill
- buildpad-spec-designSkill
- buildpad-spec-initSkill
- buildpad-spec-quickSkill
- buildpad-spec-requirementsSkill
- buildpad-spec-statusSkill
- buildpad-spec-tasksSkill
- buildpad-steering-customSkill
- buildpad-steeringSkill
- buildpad-validate-designSkill
- buildpad-validate-gapSkill
- buildpad-validate-implSkill
- buildpad-verify-completionSkill
- code-simplificationSkill
- context-engineeringSkill
- create-api-routeSkill
- create-collectionSkill
- create-componentSkill
- create-cronSkill
- create-featureSkill
- create-form-builderSkill
- create-migrationSkill
- create-projectSkill
- create-rbacSkill
- create-serviceSkill
- create-testsSkill
- create-workflowSkill
- daas-platformSkill
- debugging-and-error-recoverySkill
- generate-docsSkill
- git-workflow-and-versioningSkill
- grant-module-accessSkill
- hooks-extensionsSkill
- idea-refineSkill
- incremental-implementationSkill
- manage-scopeSkill
- migrate-to-engineSkill
- planning-and-task-breakdownSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 4 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 110 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
When NOT to use: Don't optimize before you have evidence of a problem.
- Distinctive: line 126
Use Server Components by default (reduces client JS)
- Very specific: line 127
Use 'use client' only when needed (event handlers, hooks, browser APIs)
- Very specific: line 128
Use next/image for automatic image optimization
- Very specific: line 129
Use next/font for font optimization
- Very specific: line 131
Use DaaS fields parameter to fetch only needed fields
- Very specific: line 132
Use DaaS filter parameter server-side instead of client-side filtering
- Distinctive: line 152
No performance monitoring in production
- Distinctive: line 157
After any performance-related change:
“Common” is measured: kept by at least 6 in 10 of the 110 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 Optimization
Overview
Measure before optimizing. Performance work without measurement is guessing — and guessing leads to premature optimization that adds complexity without improving what matters. Profile first, identify the actual bottleneck, fix it, measure again.
When to Use
- Performance requirements exist in the spec (load time budgets, response time SLAs)
- Users or monitoring report slow behavior
- Core Web Vitals scores are below thresholds
- You suspect a change introduced a regression
- Building features that handle large datasets or high traffic
When NOT to use: Don't optimize before you have evidence of a problem.
Core Web Vitals Targets
| Metric | Good | Needs Improvement | Poor |
| LCP (Largest Contentful Paint) | ≤ 2.5s | ≤ 4.0s | > 4.0s |
| INP (Interaction to Next Paint) | ≤ 200ms | ≤ 500ms | > 500ms |
| CLS (Cumulative Layout Shift) | ≤ 0.1 | ≤ 0.25 | > 0.25 |
The Optimization Workflow
1. MEASURE → Establish baseline with real data
2. IDENTIFY → Find the actual bottleneck (not assumed)
3. FIX → Address the specific bottleneck
4. VERIFY → Measure again, confirm improvement
5. GUARD → Add monitoring or tests to prevent regressionWhere to Start
What is slow?
├── First page load
│ ├── Large bundle? → Measure bundle size, check code splitting
│ ├── Slow server response? → Measure TTFB in Network waterfall
│ └── Render-blocking resources? → Check CSS/JS blocking in waterfall
├── Interaction feels sluggish
│ ├── UI freezes on click? → Profile main thread, look for long tasks (>50ms)
│ ├── Form input lag? → Check re-renders, controlled component overhead
│ └── Animation jank? → Check layout thrashing, forced reflows
├── Page after navigation
│ ├── Data loading? → Measure API response times, check for waterfalls
│ └── Client rendering? → Profile component render time
└── Backend / API
├── Single endpoint slow? → Profile DaaS queries, check indexes (on an Engine project, index a field by creating it with `schema.add_index: true` through `POST /api/fields/:collection`)
├── All endpoints slow? → Check connection pool, memory, CPU
└── Intermittent slowness? → Check for lock contention, GC pausesFix Common Anti-Patterns
N+1 Queries (DaaS)
// BAD: Separate fetch per related item
for (const task of tasks) {
task.owner = await fetch(`/api/users/${task.ownerId}`);
}
// GOOD: Use DaaS deep query with fields parameter
const tasks = await fetch('/api/items/tasks?fields=*,owner.*');On an Engine project the fields parameter expands the relation as shown; the Engine ignores the deep parameter.
Unnecessary Re-renders (React)
// BAD: Creates new object on every render
function TaskList() {
return <TaskFilters options={{ sortBy: 'date', order: 'desc' }} />;
}
// GOOD: Stable reference
const DEFAULT_OPTIONS = { sortBy: 'date', order: 'desc' } as const;
function TaskList() {
return <TaskFilters options={DEFAULT_OPTIONS} />;
}Large Bundle Size (Next.js)
// GOOD: Dynamic import for heavy features
const ChartLibrary = lazy(() => import('./ChartLibrary'));
// GOOD: Route-level code splitting (Next.js does this automatically)
// Each page in app/ is automatically code-splitUnbounded Data Fetching
// BAD: Fetching all records
const all = await fetch('/api/items/tasks');
// GOOD: Paginated with DaaS
const page = await fetch('/api/items/tasks?limit=20&offset=0&sort=-date_created');On an Engine project limit is capped at 1000: a request for more returns at most 1000 items, so page through larger sets.
Performance Budget
JavaScript bundle: < 200KB gzipped (initial load)
CSS: < 50KB gzipped
Images: < 200KB per image (above the fold)
API response time: < 200ms (p95)
Lighthouse Performance score: ≥ 90Next.js / DaaS Specific Tips
- Use Server Components by default (reduces client JS)
- Use
'use client'only when needed (event handlers, hooks, browser APIs) - Use
next/imagefor automatic image optimization - Use
next/fontfor font optimization - Leverage DaaS aggregate API for counts/sums instead of fetching all records
- Use DaaS
fieldsparameter to fetch only needed fields - Use DaaS
filterparameter server-side instead of client-side filtering - On an Engine project the Engine serves the same
aggregate,fieldsandfilterparameters, and capslimitat 1000
Common Rationalizations
| Rationalization | Reality |
| "We'll optimize later" | Performance debt compounds. Fix obvious anti-patterns now. |
| "It's fast on my machine" | Your machine isn't the user's. Profile on representative hardware. |
| "This optimization is obvious" | If you didn't measure, you don't know. Profile first. |
| "Users won't notice 100ms" | Research shows 100ms delays impact conversion rates. |
| "The framework handles performance" | Frameworks can't fix N+1 queries or oversized bundles. |
Red Flags
- Optimization without profiling data to justify it
- N+1 query patterns in data fetching
- List endpoints without pagination
- Images without dimensions, lazy loading, or responsive sizes
- Bundle size growing without review
- No performance monitoring in production
React.memoanduseMemoeverywhere (overusing is as bad as underusing)
Verification
After any performance-related change:
- Before and after measurements exist (specific numbers)
- The specific bottleneck is identified and addressed
- Core Web Vitals are within "Good" thresholds
- Bundle size hasn't increased significantly
- No N+1 queries in new data fetching code
- Existing tests still pass (optimization didn't break behavior)
See Also
For detailed checklists, see references/performance-checklist.md.
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.

