command-palette

Surface navigation and actions through a keyboard-driven palette in Next.js apps.

Updated May 5, 2026
One-click install
npx skills add https://github.com/nabinkhair42/nk-skills --skill command-palette-nabinkhair42
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: command-palette
Source: https://github.com/nabinkhair42/nk-skills/tree/main/skills/command-palette
Command: npx skills add https://github.com/nabinkhair42/nk-skills --skill command-palette-nabinkhair42

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Navigating complex Next.js apps often requires juggling multiple menus, search boxes, and actions. A single keyboard-driven palette consolidates navigation and commands, reducing cognitive load and friction.

Core Features & Use Cases

  • Keyboard-first navigation and command discovery for pages, actions, and async results
  • Single dialog with grouped results (navigation, actions, recent items) and support for nested pages
  • Accessible focus handling, consistent closing behavior, and multi-platform keyboard shortcuts
  • Use cases include quickly opening dashboards, switching projects, or executing common actions without mouse interactions

Quick Start

Install and mount the command palette at the app root to provide global access via ⌘K / CtrlK.

Frequently Asked Questions about command-palette

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add keyboard-first navigation to a Next.js app?

Add keyboard-first navigation to a Next.js app by mounting a global command palette at the root, enabling access via ⌘K or CtrlK. It consolidates page links and actions into a single dialog with grouped results.

Can I use cmdk and shadcn/ui to build a command palette with nested menus?

Yes, you can build a command palette with nested menus using cmdk and shadcn/ui. The implementation supports a multi-page stack, allowing users to navigate through nested pages of commands and asynchronous results.

Does a command palette support asynchronous search results and recent items?

A command palette supports asynchronous search results and recent items by grouping them alongside navigation and actions. This allows users to quickly discover dynamic data and frequently accessed pages without mouse interaction.

What is the best way to streamline user workflows and reduce navigation friction in Next.js?

The best way to streamline user workflows and reduce navigation friction in Next.js is implementing a keyboard-driven command palette. It consolidates multiple menus and search boxes into a single dialog, lowering cognitive load.

Are command palettes accessible for keyboard interactions and predictable closing behavior?

Command palettes are accessible for keyboard interactions and predictable closing behavior through consistent focus handling. This ensures multi-platform keyboard shortcuts work reliably and the dialog closes predictably.