Claude Command Dispatcher
Bridge skill that lets Codex execute command prompts stored in .claude/commands/*.md.
When To Use
Use this skill when the user:
- references a Claude-style command like
/planor/tasks - asks to reuse or run something from
.claude/commands - asks to adapt a new command that was just added there
Do not hardcode command names. Always resolve the command file dynamically.
Execution Flow
- Parse command name and command arguments from the user request:
- Accept both
/name ...andname ... namemaps to.claude/commands/name.md- the rest of the text is
ARGUMENTS
- Resolve repository root dynamically:
git rev-parse --show-toplevel
If unavailable, use current working directory.
- Build command file path:
<repo-root>/.claude/commands/<name>.md
- If file does not exist:
- list available commands with:
ls -1 <repo-root>/.claude/commands/*.md
- ask the user to choose a valid command name
- Read the command markdown file and execute its instructions as the task definition:
- treat
$ARGUMENTSplaceholders as the parsedARGUMENTS - preserve instruction order from the command file
- respect referenced templates/scripts in the command instructions
- Return results in normal Codex style:
- what was executed
- output artifacts and paths
- blockers/errors if any
Guardrails
- Never use absolute user-specific paths in new logic.
- Prefer repository-relative paths rooted from dynamic repo root.
- If a command file itself contains absolute paths, use them only as command intent, but keep any new code generic.