cli-dispatch

cli-dispatch is a skill for Claude Code, Codex from richkuo/rk-skills. It costs 101 tokens per session (2,346 once invoked), scanned A, original, MIT.

A procedure for sending build or fix work to a specified external coding command-line tool, such as Codex CLI or Cursor CLI.

In plain words
What is it for?
Use it to prepare, run, monitor, and interpret an assigned coding pass.
Why use it?
It prevents the wrong tool from being used silently and checks that the required tool is installed and signed in.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also runs codex exec. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Part of the rk-skills plugin — 37 skills, 1 command shipped together

Good fit Use it to prepare, run, monitor, and interpret an assigned coding pass.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/richkuo/rk-skills/cli-dispatch
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add richkuo/rk-skills --skill cli-dispatch
Clone the repo
git clone --depth 1 https://github.com/richkuo/rk-skills

Made for: Claude Code, Codex.

Or install rk-skills, the plugin that ships this one along with the rest of its 37 skills, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cli-dispatch

README.md
[![agentmods](https://agentmods.dev/badge/skills/richkuo/rk-skills/cli-dispatch/github.svg)](https://agentmods.dev/skills/richkuo/rk-skills/cli-dispatch)
Your own site
<a href="https://agentmods.dev/skills/richkuo/rk-skills/cli-dispatch"><img src="https://agentmods.dev/badge/skills/richkuo/rk-skills/cli-dispatch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cli-dispatch

Your own site · 80×15
<a href="https://agentmods.dev/skills/richkuo/rk-skills/cli-dispatch"><img src="https://agentmods.dev/badge/skills/richkuo/rk-skills/cli-dispatch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,346 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Excessive Agency · line 34
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
  • medium Rogue Agent · line 23
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00101 $0.02346
Opus 5 $0.00051 $0.01173
Sonnet 5 $0.00020 $0.00469
Haiku 4.5 $0.00010 $0.00235

Measured 5d ago against content hash 8a7312466fa4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

cli-dispatch scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `-s workspace-write` keeps Codex writes inside the repository; `sandbox_workspace_write.network_access=true` lets `git push` and `gh` reach the network. A 2026-09-02 smoke run (codex-cli 0.152.1, `gpt-5.6-luna`, this f
skills/cli-dispatch/SKILL.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLI dispatch

How a build reaches the Codex CLI or the Cursor CLI when an issue stamps Build model: <Name> (Codex CLI) or <Name> (Cursor CLI). The caller owns the task prompt and the result; this skill owns the path to the CLI. A run on a model other than the stamped one is a substitution: always reported, never presented as the stamped build. This procedure never falls back to a Claude build: the stamp is a user override, and a silent fallback is the defect this skill closes.

1. Preflight

Check only the CLI the stamp names, before writing any file: command -v codex && codex login status or command -v agent && agent status. A missing binary or a signed-out status blocks that issue (name the binary or the login); the caller runs the rest of the milestone.

2. Model id and effort

  • Luna (Codex CLI) resolves to gpt-5.6-luna; Grok (Cursor CLI) resolves to cursor-grok-4.6-<effort>. An explicit id in the parenthetical (Luna (Codex CLI, gpt-5.6-luna)) is used verbatim. Any other name with no explicit id is a blocker; never guess an id.
  • Codex tiers low, medium, high, xhigh, max pass as -c model_reasoning_effort=<tier>. Cursor encodes the tier in the id suffix; the caller normalizes max to xhigh with a log line.
  • agent --list-models prints the ids Cursor accepts (agent and cursor-agent are one binary); run it when an explicit id looks unfamiliar. On 2026-09-02 (cursor-agent 2026.09.02) it listed cursor-grok-4.6-{low,medium,high,xhigh}, so the Grok default resolves at every tier; a -fast variant is an explicit id.
  • A model id is shell data. Accept only ids matching ^[A-Za-z0-9][A-Za-z0-9._:-]*$, block the issue otherwise, and single-quote the id in the shim.

3. The prompt file

Write the prompt to a file outside the repository tree (the session scratchpad, else mktemp -d). Append one line telling the CLI agent to read the work-on-issue skill (or fix-pr-review for a fix pass) at the first existing path of ~/.codex/skills/<skill>/SKILL.md, ~/.cursor/skills/<skill>/SKILL.md, ~/.claude/skills/<skill>/SKILL.md; resolve and write the absolute path yourself. Append the section 7 attribution rules.

Read the full file on GitHub · 83 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · -8 lines 8a7312466fa4
  2. 6d ago Changed df0003e35d76
  3. 7d ago First seen · 91 lines · 101 tokens per session scan A 088cd23f0052

Subscribe to this mod's changes

cli-dispatch is a skill published in the GitHub repository richkuo/rk-skills (49 stars, last pushed yesterday), licensed MIT. It adds 101 tokens to every session and 2,346 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.