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.tsxCMDKAction component (the only primitive you need)
  • static/app/components/commandPalette/types.tsx — public types + cmdkQueryOptions helper
  • static/app/components/commandPalette/ui/commandPaletteSlot.tsxCommandPaletteSlot for scoping
  • static/app/components/commandPalette/ui/commandPaletteGlobalActions.tsx — always-on global actions

The Three Slots

Slots control sort order and lifetime. Import from commandPaletteSlot.tsx:

import {CommandPaletteSlot} from 'sentry/components/commandPalette/ui/commandPaletteSlot';
Related skills
Installs
4
GitHub Stars
43.8K
First Seen
Apr 25, 2026