agentleFS
Yahiasherif002Yahiasherif002/claude-skills/command-palette/SKILL.md

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

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. fleetdm/fleet★ 7.2ksame name
    2. 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.

The file

Files
SKILL.md

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 needs cmdk):
    • Opens on ⌘K / Ctrl+K, or / when not typing in a field
    • Also opens via a custom window event 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
  • Fully config-driven — pass sections, links, and actions arrays; no app-specific code.

How to use it

  1. Copy references/CommandPalette.tsx into the project's components folder.
  2. Install the dep: npm i cmdk.
  3. Render <CommandPalette sections={...} links={...} actions={...} /> once near the app root.
  4. (Optional) Add a visible hint/button that opens it:
    window.dispatchEvent(new Event("open-command-palette"))
  5. 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.
  • sections use document.getElementById(id).scrollIntoView() — give your page sections matching ids.
  • For client-side routing, pass an onNavigate(path) action instead of a section id.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.