Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
thedaviddias avatar

Command Palette

  • 2 installs
  • 228 repo stars
  • Updated June 30, 2026
  • thedaviddias/ux-patterns-for-developers

Guides building a keyboard-first command palette that finds and runs commands, destinations, and recent items from a single search surface for power users.

About

Describes the command palette pattern for running commands, navigation, and recent items from one keyboard-first surface. A developer uses it when adding power-user shortcuts to editor or workspace commands.

  • Use a simpler visible navigation when the product surface is still small
  • Do not add hidden power-user behavior before the plain path is strong

Command Palette by the numbers

  • 2 all-time installs (skills.sh)
  • Ranked #1,564 of 1,880 Design & UI/UX skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/thedaviddias/ux-patterns-for-developers --skill command-palette

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs2
repo stars228
Last updatedJune 30, 2026
Repositorythedaviddias/ux-patterns-for-developers

What it does

Guides building a keyboard-first command palette that finds and runs commands, destinations, and recent items from a single search surface for power users.

Files

SKILL.mdMarkdownGitHub ↗

Command Palette

Quick command execution interface

What it solves

A Command Palette pattern helps teams create a reliable way to find and run commands, destinations, and recent items from a single keyboard-first surface. It is most useful when teams need editor and workspace commands. Compared with adjacent patterns, this pattern should reduce friction without hiding the state, rules, or recovery paths people need to keep moving.

When to use

  • Editor and workspace commands
  • Settings and preference shortcuts
  • Object or page navigation for power users

When to avoid

  • Use a simpler visible navigation or single-page flow when the product surface is still small.
  • Avoid advanced interaction patterns if the team cannot support their state complexity well.
  • Do not introduce hidden power-user behavior before the plain path is already strong.

Implementation workflow

1. Confirm the pattern matches the problem and constraints before copying the example. 2. Start from the anatomy and examples in references/pattern.md, then choose the smallest viable variation. 3. Apply accessibility, performance, and interaction guardrails before layering visual polish. 4. Use the testing guidance to verify behavior across keyboard, screen reader, responsive, and failure scenarios.

Accessibility guardrails

Keyboard Interaction

  • [ ] Verify that command palette can be completed using keyboard alone.
  • [ ] Keep focus order logical when the pattern opens, updates, or reveals additional UI.
  • [ ] Preserve a visible focus state that is still readable at high zoom.

Screen Reader Support

  • [ ] Use semantic elements first, then add ARIA only where semantics alone are not enough.
  • [ ] Announce state changes such as errors, loading, or completion in the right place and with the right politeness.
  • [ ] Connect labels, hints, and status text with aria-describedby or structural headings when useful.

Visual Accessibility

  • [ ] Do not rely on color alone to convey severity, completion, or selection state.

Common mistakes

Designing only the happy path

The Problem: The pattern feels polished until loading, empty, and failure states appear.

How to Fix It? Specify the full lifecycle alongside the default state so implementation does not improvise later.

Letting interaction and content drift apart

The Problem: Users work harder when controls, status, and supporting information feel disconnected.

How to Fix It? Keep the information architecture of the pattern close to the interaction model.

Treating accessibility as a final pass

The Problem: Keyboard, announcement, and reading-order issues become expensive once the interaction is already fixed.

How to Fix It? Bake semantics, focus behavior, and announcements into the first implementation.

Related patterns

  • https://uxpatterns.dev/patterns/content-management/modal
  • https://uxpatterns.dev/patterns/forms/search-field
  • https://uxpatterns.dev/patterns/navigation/navigation-menu

---

For full implementation detail, examples, and testing notes, see references/pattern.md.

Pattern page: https://uxpatterns.dev/patterns/advanced/command-palette

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.