Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Registers Command+K palette actions via React context, with page, global, and task slots for ordering and scoping.
5% 68%+64 ptsof test cases passed
Passed 15 of 22 test cases with the skill, and 1 of 22 without it.
This test ran on v1. v4 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
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.
static/app/components/commandPalette/ui/cmdk.tsx — CMDKAction component (the only primitive you need)static/app/components/commandPalette/types.tsx — public types + cmdkQueryOptions helperstatic/app/components/commandPalette/ui/commandPaletteSlot.tsx — CommandPaletteSlot for scopingstatic/app/components/commandPalette/ui/commandPaletteGlobalActions.tsx — always-on global actionsSlots control sort order and lifetime. Import from commandPaletteSlot.tsx:
import {CommandPaletteSlot} from 'sentry/components/commandPalette/ui/commandPaletteSlot';
| Slot | Order in palette | Lifetime | Use for |
|---|---|---|---|
task | First (highest priority) | Reserved — not yet used in production | Future transient workflow steps |
page | Second | Tied to the page component's mount/unmount | Contextual actions for the current view (issue details, settings pages) |
global | Last | Always present for any org | Org-wide navigation, create actions, help |
Wrap page-level actions in the slot provider:
// In a page component or its sub-tree
<CommandPaletteSlot name="page">
<CMDKAction display={{label: t('Resolve Issue')}} onAction={handleResolve} />
</CommandPaletteSlot>
Global actions are registered once in GlobalCommandPaletteActions — add to that component rather than creating a new global slot consumer.
Next to this one in the catalogue, plus more from the same author.