/waris-skill-library:warisskill-performance-optimizationfrom waris-skill-library
Use when a performance issue is suspected or reported, when profiling is needed, or when writing code that touches a known cheap-to-get-right performance floor (pagination, indexing, N+1 queries). Trigger on "this feels slow," load time complaints, or before adding caching/ optimization complexity. Do NOT use this to justify premature optimization — the measurement workflow below is the gate before any optimization work, except for the proactive floor items which apply regardless.
Ships in waris-skill-library. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A handful of things are worth doing right by default because they're nearly free upfront and expensive to retrofit — apply these without waiting for a profiler to justify them:
WHERE/JOIN/ORDER BY, especially foreign
keys — an unindexed foreign key lookup is a common silent slow-query
cause that's invisible until the table grows.These aren't "optimization" in the premature sense — they're the straightforward way to write the code the first time, same tier as choosing a semantic HTML element in accessibility work.
Beyond the floor above, performance work follows a strict evidence-first loop — no fixing what hasn't been shown to be a bottleneck:
MEASURE → IDENTIFY → FIX → VERIFY → GUARD
| Metric | Good | Needs improvement |
|---|---|---|
| LCP (Largest Contentful Paint) | ≤ 2.5s | ≤ 4.0s |
| INP (Interaction to Next Paint) | ≤ 200ms | ≤ 500ms |
| CLS (Cumulative Layout Shift) | ≤ 0.1 | ≤ 0.25 |
Use these as a guide for whether a real problem exists, not a mandate to chase every fraction of a point once "Good" is already hit.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sodiqabdulwaris/waris-skill-library --plugin waris-skill-libraryOther plugins' skills for the same job
129 skills in this plugin
/api-and-interface-designGuides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend./browser-testing-with-devtoolsTests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze network requests, profile performance, or verify visual output with real runtime data. Requires the chrome-devtools MCP server to be configured./