microsoft/powertoys/add-fallback-commands
Claude Code and agent skill by microsoft/powertoys
- vendor
Checking that the SKILL.md file is still in the repository.
Add fallback commands to your Command Palette extension for catch-all search behavior. Use when asked to add search functionality, query matching, direct input handling, calculator-style evaluation, URL opening, command execution, or results that appear when no other extension matches. Used by 14 of 20 built-in extensions.
Install
npx vskill@latest install microsoft/powertoys/add-fallback-commandsSKILL.md
The same SKILL.md was published earlier as microsoft/powertoys/add-fallback-commands.
Add Fallback Commands
Fallback commands are shown in Command Palette when no other results match the user's query. They enable your extension to act as a catch-all handler — perfect for calculators, web search, command execution, file path opening, and more.
When to Use This Skill
- Adding search functionality that responds to any user input
- Creating a calculator that evaluates expressions as the user types
- Building a web search that triggers on unmatched queries
- Opening files or URLs typed directly into the palette
- Executing shell commands from the search bar
How Fallback Commands Work
- User types a query in Command Palette
- If no top-level commands match, CmdPal asks extensions for fallback results
- Your extension's
FallbackCommands()provides items that respond to the query - The fallback items can be static (always shown) or dynamic (filtered by query)
Quick Start: Static Fallback
Override FallbackCommands() in your CommandProvider:
Dynamic Fallback with DynamicListPage
For fallbacks that filter results based on the query, use DynamicListPage:
Responsive Fallback with Cancellation
For expensive operations (API calls, file searches), use cancellation to stay responsive:
Real-World Examples (from built-in extensions)
| Extension | Fallback Behavior | |
|---|---|---|
| Apps | Search installed applications by name | |
| Calc | Evaluate mathematical expressions directly | |
| Shell | Execute command-line commands | |
| WebSearch | Search the web with configured engine | |
| Indexer | Open files by path | |
| TimeDate | Parse time/date queries | |
| WindowsSettings | Jump to Windows Settings pages | |
| WinGet | Search WinGet packages | |
| WindowWalker | Find and switch to open windows |
Key Points
FallbackCommands()returnsIFallbackCommandItem[](notICommandItem[])- Use
FallbackCommandItemwrapper (notCommandItem) - Wrap a
DynamicListPagefor query-reactive results - Cancel previous searches when new input arrives
- Keep fallback responses fast — users expect instant results
- Use
PlaceholderTexton your page to guide users
Documentation
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 3 Jul 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/modules/cmdpal/ExtensionTemplate/TemplateCmdPalExtension/.github/skills/add-fallback-commands/SKILL.md
Popularity
- Repository stars
- 135,973
- Repository forks
- 8,187
- 7-day trend score
- 59
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/powertoys/add-fallback-commands)