cmdk-actions
Installation
SKILL.md
Adding Actions to the Command Palette (cmdk)
Sentry's Command+K palette is built on a tree-collection system where CMDKAction components register themselves via React context. Actions render wherever in the component tree they live — no central registry to update.
Core files
static/app/components/commandPalette/ui/cmdk.tsx—CMDKActioncomponent (the only primitive you need)static/app/components/commandPalette/types.tsx— public types +cmdkQueryOptionshelperstatic/app/components/commandPalette/ui/commandPaletteSlot.tsx—CommandPaletteSlotfor scopingstatic/app/components/commandPalette/ui/commandPaletteGlobalActions.tsx— always-on global actions
The Three Slots
Slots control sort order and lifetime. Import from commandPaletteSlot.tsx: