From fb013342735a28a9a8627dbf5ea62cd03a4ea965 Mon Sep 17 00:00:00 2001 From: Stefano Fiorini Date: Mon, 18 May 2026 17:36:21 -0500 Subject: [PATCH] feat(S-101): Create SKILL.md with YAML frontmatter --- tools/ai-cli-dispatch/SKILL.md | 51 ++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 tools/ai-cli-dispatch/SKILL.md diff --git a/tools/ai-cli-dispatch/SKILL.md b/tools/ai-cli-dispatch/SKILL.md new file mode 100644 index 0000000..4d7efa4 --- /dev/null +++ b/tools/ai-cli-dispatch/SKILL.md @@ -0,0 +1,51 @@ +--- +name: ai-cli-dispatch +description: Dispatch AI CLI coding tasks to available clients (Codex, Claude Code, OpenCode) with automatic discovery, version checking, and execution. +metadata: {"clawdbot":{"emoji":"robot","requires":{"bins":["node"]}}} +--- + +# AI CLI Dispatch + +Use this skill when the user wants to run a coding task through an AI CLI client such as Codex, Claude Code, or OpenCode. + +The skill discovers installed clients, resolves versions, selects the best available tool, and forwards the task with arguments intact. + +Use the local helper from the installed skill directory: + +```bash +cd ~/.openclaw/workspace/skills/ai-cli-dispatch +scripts/ai-cli-dispatch --help +``` + +## Setup + +```bash +cd ~/.openclaw/workspace/skills/ai-cli-dispatch +npm install +``` + +## Commands + +```bash +scripts/ai-cli-dispatch list --json +scripts/ai-cli-dispatch exec --client codex --prompt "refactor this function" +scripts/ai-cli-dispatch exec --client claude --prompt "add tests for auth middleware" +scripts/ai-cli-dispatch exec --client opencode --prompt "migrate to ESM" +``` + +Use `--json` for machine-readable command output. + +## Client Discovery + +The skill searches for the following clients in order: + +- `codex` — OpenAI Codex CLI +- `claude` — Anthropic Claude Code +- `opencode` — OpenCode CLI + +Run `list` to see which clients are installed and their resolved versions. + +## Output Rules + +- Normal JSON output redacts local file paths and credential metadata. +- Use `--debug` only when deeper troubleshooting requires internal paths and resolved config metadata.