skill-and-command-dispatch

Configure slash commands for inline or forked subagent execution.

5|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/TechyMT/claude-code-superpowers --skill skill-and-command-dispatch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-and-command-dispatch
Source: https://github.com/TechyMT/claude-code-superpowers/tree/main/skills/skill-and-command-dispatch
Command: npx skills add https://github.com/TechyMT/claude-code-superpowers --skill skill-and-command-dispatch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill explains how to define and run slash commands and skills so users can control whether a command runs inline in the current conversation or in an isolated forked subagent, preventing multi-step reasoning from cluttering the main session.

Core Features & Use Cases

  • Inline vs Fork Execution: Choose inline to share conversation history or fork to run a subagent and return only the final result.
  • PromptCommand vs LocalCommand: Use PromptCommand (SKILL.md) for LLM-driven templates and LocalCommand for deterministic local actions.
  • Frontmatter-driven Skills: SKILL.md frontmatter (name, description, context, allowedTools, agent) configures prompts, tool access, and execution environment; useful for commit message drafting, dependency analysis, and multi-step research.

Quick Start

Type /skill-and-command-dispatch to load the skill and try it in inline or fork mode to observe how execution isolation and allowedTools behave.

Frequently Asked Questions about skill-and-command-dispatch

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

FAQPage Schema
How do I run slash commands in an isolated forked subagent?

To run slash commands in an isolated forked subagent, set the context configuration to `fork` in the SKILL.md frontmatter, which executes the prompt in a separate subagent and returns only the final result to prevent multi-step reasoning from cluttering the main session.

What is the difference between inline and fork execution modes for prompt commands?

Inline execution shares the current conversation history and runs directly in the main session, while fork execution runs a subagent in isolation and returns only the final result, preventing intermediate reasoning steps from cluttering the main conversation.

How do I configure allowedTools and agent selection in SKILL.md frontmatter?

You configure allowedTools and agent selection by defining them in the SKILL.md frontmatter, which specifies the prompt templates, tool access permissions, and execution environment required for getPromptForCommand integration.

When should I use PromptCommand versus LocalCommand for automating prompts?

Use PromptCommand for LLM-driven templates defined in SKILL.md files, and use LocalCommand for deterministic local actions. PromptCommand supports multi-step research workflows, while LocalCommand handles predictable, non-LLM tasks.

Can I prevent multi-step research workflows from cluttering my main conversation history?

Yes, you can prevent multi-step research workflows from cluttering your main conversation by configuring the command context to `fork`, which isolates the multi-step reasoning in a subagent and returns only the final result.

Does slash command execution isolation work with built-in PromptCommand scenarios?

Yes, execution isolation applies to both SKILL.md-based PromptCommand skills and built-in PromptCommand or LocalCommand scenarios, allowing you to control inline or forked execution for automating prompts and local actions.