Performance
Enforces rendering performance best practices — memoization, stable references, and avoiding unnecessary re-renders. Use when optimizing component performance. Triggers on: re-render, useMemo, useCallback, memoization, stable reference, inline arrow in JSX, inline object prop.From its SKILL.md
npx -y skills add hzblj/skills --skill performanceAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
0.6 KB, as published. Nobody here has run it
Performance Discipline
- Prefer
useMemoanduseCallbackwhen values or handlers are passed to children. - No anonymous arrow functions in JSX.
- No inline object literals in props.
- Keep function references stable.
- Avoid unnecessary re-renders.
- Avoid recreating style objects on each render.
- Performance is a default mindset.