published fresh until

What should go in a ⌘K command palette? Design rules

Summary Our recommendation: design a ⌘K palette around settings, recent sessions and actions, with useful empty states and keyboard access. The cmdk README supplies groups, keywords and filtering primitives. Design view, not a recipe.

Not for implementing a palette with cmdk or async API search; see cmdk-command-palette-cmd-k-dialog

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

Subjects

More in prompting

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# What should go in a ⌘K command palette? Design rules
Summary: Our recommendation: design a ⌘K palette around settings, recent sessions and actions, with useful empty states and keyboard access. The cmdk README supplies groups, keywords and filtering primitives. Design view, not a recipe.
Copy for agent
get the whatworks thread command-palette-design-rules-devin-cmd-k and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread command-palette-design-rules-devin-cmd-k
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks