microsoft/microsoft-ui-reactor/reactor-commanding
Claude Code and agent skill by microsoft/microsoft-ui-reactor
- vendor
Checking that the SKILL.md file is still in the repository.
Reactor commanding — actions that appear in multiple surfaces (menu + toolbar), need keyboard shortcuts, or need `CanExecute`. `Command`, `StandardCommand`, `UseCommand`, `CommandHost`. Use when wiring shared actions or shortcuts.
Install
npx vskill@latest install microsoft/microsoft-ui-reactor/reactor-commandingSKILL.md
The same SKILL.md was published earlier as microsoft/microsoft-ui-reactor/reactor-commanding.
Commanding in Reactor
Use Command when an action shows up in multiple surfaces (toolbar + menu + context menu), needs a keyboard shortcut, or needs CanExecute disabling. Use a bare Action for one-off button clicks with no reuse.
Controlled prop note: command examples may host controlled inputs such asTextBox(text, onChange). Factory call sites stay plain-valued, but directreads from migrated element records areOptional<T>; see
Command record
Command<T> is identical but Execute/ExecuteAsync receive a typed parameter — bind the parameter at the call site with MenuItem(cmd, item).
StandardCommand factory
Pre-built commands with correct labels, icons, and accelerators:
Also available: SelectAll, Close, Share, Play, Pause, Stop, Forward, Backward.
Command-aware DSL overloads
Define once, bind anywhere:
Custom content (icon + label, stacked layouts) — build the element, then attach the command with the .Command() modifier. Works on Button, HyperlinkButton, RepeatButton, ToggleButton, and AppBarButton:
.Command() re-applies IsEnabled on every update (so UseCommand toggling IsExecuting, or CanExecute changes, flow through) — never re-thread .IsEnabled(command.IsEnabled) by hand. It composes with .IsDisabledFocusable(): a disabled command keeps the button reachable via Tab instead of dropping it from the tab order.
Per-site overrides with with:
UseCommand — async lifecycle
Only needed for commands with `ExecuteAsync`. Sync commands pass through unchanged.
- Consumes 2 hook slots; re-entrance guard ignores clicks while executing.
IsExecutingresets to false even ifExecuteAsyncthrows.- Call unconditionally — don't wrap in
if. DebounceMs > 0adds leading-edge debounce: the first fire runs,
re-fires within the window are dropped, and IsEnabled is false for the duration so the button auto-disables then re-enables. Replaces the Task.Delay-to-absorb-double-clicks workaround. Needs UseCommand to persist the window — a raw new Command { DebounceMs = … } bound directly does not debounce. Works on sync Execute too (stays on the UI thread; no Task.Run hop). For async commands the disabled window is the longer of the lambda lifetime and DebounceMs.
CommandHost — keyboard-scoped accelerators
Limits Accelerator registration to a subtree:
Commands without an Accelerator are ignored by CommandHost.
Sharing commands via Context
Editor-provides / toolbar-consumes:
ICommand interop
Bridge existing MVVM/CommunityToolkit ICommand:
Anti-patterns
- Don't create commands inside loops. Define once, bind per item with
MenuItem(cmd, item).
- Don't
UseCommandfor sync-only commands — it wastes hook slots. - Don't call
UseCommandconditionally — hooks must run in the same order
every render.
- Don't mix
ExecuteandExecuteAsyncon the same command — pick one.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 27 Oct 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/reactor/skills/reactor-commanding/SKILL.md
Popularity
- Repository stars
- 660
- Repository forks
- 57
- 7-day trend score
- 37
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/microsoft-ui-reactor/reactor-commanding)