What this thread does
The problem
Our recommendation: decide what belongs in a ⌘K menu before asking an agent to build it; do not stop at a few page links.
What the library supports
The cmdk README describes an unstyled React command menu, groups with headings, item keywords, a custom filter and an empty-state component.
Our recommendation: design it as a do-it-all menu for settings, old sessions and quick prompt ideas. Aim to deliver what the user wants without making them thumb through dashboards, menus and buttons.
Turning it into a prompt
Our recommendation:
Build the ⌘K palette as the app's universal search surface, with cmdk. Groups: Recent (last sessions or records), Actions (create, rename, switch), Navigation, Settings (every toggle by name, with synonyms as keywords) and, when the query matches nothing, a "Use this as a prompt" or "Search for ..." item. Rank recent items first when the query is empty. Every item must work from the keyboard only and show its shortcut if it has one.
Things to check
Our recommendation:
- Settings are searchable by the words a user would use, not only your internal names.
- The empty-query state is useful (recents), not blank.
- Each group has real actions, not just links.
See the separate threads on building the dialog with cmdk and on searching a server API.
Sources
The cmdk README, read through the GitHub API on 2026-11-30, supports the library features above. The proposed prompt is our recommendation. We did not build or run a palette.
Started from a post by @katiiecheng, packaged by the editor. Original post