This covers the mechanical details of building Cmd+K command palettes in React without the infinite re-render headaches. It walks through the wrapper component pattern to prevent keyboard listeners firing when closed, arrow key navigation that clamps indices properly, scrollIntoView with block nearest to avoid jarring jumps, and the crucial bit about defining icon elements outside your component so they don't break reference equality. The shortcut matching strips spaces so "gd" finds "g d" commands. If you've fought with a command palette that feels laggy or re-renders constantly when filtering, the stable references section explains exactly why that happens and how to fix it.
npx -y skills add agentworkforce/relay --skill implementing-command-palettes --agent claude-codeInstalls into .claude/skills of the current project.
Select a file.
mindrally/skills
giuseppe-trisciuoglio/developer-kit
syncfusion/react-ui-components-skills
supercent-io/skills-template
binjuhor/shadcn-lar