command-palette
Skill1 starsChanged 5 months agoMITView on GitHub
Add a VS Code / Raycast-style ⌘K command palette to a React app — fuzzy-searchable navigation, actions, and links in a modal. Opens with Cmd/Ctrl+K or "/", supports jump-to-section (smooth scroll), open-external-link, and run-action items, grouped with headings. Built on cmdk. Use when the user wants a command palette, quick-nav / quick-actions, a "⌘K" launcher, or a power-user keyboard menu.
- Installs packages
2 other projects use a version of this.
Adopted by
Most recently taken up by
- fleetdm/fleettheir own version, first seen Oct 8, 2026
- YepAPI/skillstheir own version, first seen Apr 12, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- fleetdm/fleet★ 7.2ksame name
- YepAPI/skills★ 8same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- ask-terminalSkill
- build-themeSkill
- deploy-doctorSkill
- github-activitySkill
- llm-endpointSkill
- numu-AOV-themesSkill
- numu-store-founderSkill
- og-imageSkill
- scroll-reveal-kitSkill
- seo-kitSkill
- theme-toggleSkill
The file
Files
Command Palette (⌘K)
A keyboard-driven command palette: press ⌘K / Ctrl+K (or /) to open a fuzzy-searchable
modal of navigation targets, actions, and links. Built on cmdk.
What it produces
CommandPalette.tsx— self-contained (only needscmdk):- Opens on ⌘K / Ctrl+K, or
/when not typing in a field - Also opens via a custom
windowevent so any button can trigger it - Grouped items: Navigate (smooth-scroll to a section id), Links (open URL / mailto), Actions (run any callback)
- Fuzzy search, arrow-key nav, Esc to close — all from cmdk
- Opens on ⌘K / Ctrl+K, or
- Fully config-driven — pass
sections,links, andactionsarrays; no app-specific code.
How to use it
- Copy
references/CommandPalette.tsxinto the project's components folder. - Install the dep:
npm i cmdk. - Render
<CommandPalette sections={...} links={...} actions={...} />once near the app root. - (Optional) Add a visible hint/button that opens it:
window.dispatchEvent(new Event("open-command-palette")) - Style: the reference uses a few utility classes + CSS variables (
--background,--border,--primary,--muted). Map them to your design tokens or replace with literal colors.
Notes
- The
/shortcut is ignored while focused in an input/textarea/contenteditable, so it doesn't hijack typing. sectionsusedocument.getElementById(id).scrollIntoView()— give your page sections matching ids.- For client-side routing, pass an
onNavigate(path)action instead of a section id.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

