Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/MichelKerkmeester/skilled-agent-harness_spec-driven-loopsnpx agentmods add skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/cli-codexWrote 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.
[](https://agentmods.dev/skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/cli-codex)<a href="https://agentmods.dev/skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/cli-codex"><img src="https://agentmods.dev/badge/skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/cli-codex/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.
<a href="https://agentmods.dev/skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/cli-codex"><img src="https://agentmods.dev/badge/skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/cli-codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 5 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 212 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.
- high Agent Snooping · line 264 Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
- high Rogue Agent · line 289 Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
- medium Rogue Agent · line 262 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.
- medium Excessive Agency · line 301 Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00029 | $0.07805 |
| Opus 5 | $0.00015 | $0.03903 |
| Sonnet 5 | $0.00006 | $0.01561 |
| Haiku 4.5 | $0.00003 | $0.00781 |
Grade B, and why
cli-codex scanned grade B with 2 findings 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 today.
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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
- **Always pass `-c service_tier="fast"` explicitly** — this routes through the fast tier instead of whatever the caller's `~/.codex/config.toml` defaults to. Explicit means reproducible regardless of who runs it. Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
ancestry = subprocess.check_output(['ps', '-o', 'command=', '-p', str(os.getppid())]).decode() How it starts
The opening of the file, as written. The whole thing — 384 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Codex CLI Orchestrator - Cross-AI Task Delegation
CRITICAL — SELF-INVOCATION PROHIBITED
This skill dispatches to the OpenAI CLI binary (
codex). If the agent currently reading this skill is itself running inside Codex (detection signals listed in §2), the skill MUST refuse to load and return the documented error message instead of generating anycodexinvocation.A running CLI skill never dispatches itself. The cli-X skills are for cross-AI delegation only — never self-invocation.
Orchestrate OpenAI's Codex CLI for tasks that benefit from a second AI perspective, real-time web search, deep codebase analysis, built-in code review workflows, or parallel code generation.
Core Principle: Use Codex for what it does best. Delegate, validate, integrate. The calling AI stays the conductor.
1. WHEN TO USE
Activation Triggers
- Cross-AI Validation — code review second perspective, security audit alternative analysis, bug detection,
/reviewdiff-aware workflow. - Web Research — current internet info via the top-level
--searchflag (codex --search exec …), latest library versions, API changes, community solutions. - Codebase Architecture Analysis — onboarding to unfamiliar codebases, cross-file dependency mapping, architecture docs from code.
- Parallel Task Processing — offloading generation, simultaneous code generations, background docs/test generation.
- Agent-Delegated Tasks — specialized profile matches (
.codex/agents/*.toml), session management (resume, fork), multi-strategy planning. - Specialized Generation — explicit Codex requests, test suite generation, code translation, batch docs (JSDoc, README, API), visual input via
--image/-i.
When NOT to Use
- You ARE Codex already. If your runtime is Codex (detection signal:
$CODEX_SESSION_IDor anyCODEX_*env var set,codexin process ancestry, or~/.codex/state/<id>/lockpresent), this skill refuses to load. Self-invocation creates a circular dispatch loop and burns tokens for no value. - Simple, quick tasks where CLI overhead is not worth it, or tasks needing an immediate response (rate limits may delay).
- Context already loaded and understood by the current agent.
- Interactive refinement requiring the full-screen TUI (use
codexdirectly instead). - Tasks where Codex CLI is not installed.
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- assets/prompt-quality-card.md 2.2 KB
- assets/prompt-templates.md 29 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-2/failed-runs.md 143 B
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-2/findings-and-recommendations.md 191 B
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-2/README.md 1.3 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-2/results.csv 311 B
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-2/skill-benchmark-report.json 1.9 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-2/skill-benchmark-report.md 1.6 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-2/source.md 954 B
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-3/failed-runs.md 143 B
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-3/findings-and-recommendations.md 191 B
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-3/README.md 1.3 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-3/results.csv 320 B
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-3/skill-benchmark-report.json 1.9 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-3/skill-benchmark-report.md 1.6 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-3/source.md 954 B
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-4/failed-runs.md 143 B
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-4/findings-and-recommendations.md 191 B
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-4/README.md 1.3 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-4/results.csv 314 B
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-4/skill-benchmark-report.json 1.9 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-4/skill-benchmark-report.md 1.6 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing-4/source.md 954 B
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing/failed-runs.md 143 B
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing/findings-and-recommendations.md 191 B
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing/README.md 1.3 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing/results.csv 304 B
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing/skill-benchmark-report.json 1.9 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing/skill-benchmark-report.md 1.6 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--agent-routing/source.md 954 B
- benchmark/reports/2026-08-08--manual-testing-playbook--built-in-tools/failed-runs.md 144 B
- benchmark/reports/2026-08-08--manual-testing-playbook--built-in-tools/findings-and-recommendations.md 192 B
- benchmark/reports/2026-08-08--manual-testing-playbook--built-in-tools/README.md 1.3 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--built-in-tools/results.csv 259 B
- benchmark/reports/2026-08-08--manual-testing-playbook--built-in-tools/skill-benchmark-report.json 1.8 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--built-in-tools/skill-benchmark-report.md 1.5 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--built-in-tools/source.md 955 B
- benchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/failed-runs.md 144 B
- benchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/findings-and-recommendations.md 192 B
- benchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/README.md 1.3 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/results.csv 338 B
- benchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/skill-benchmark-report.json 1.9 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/skill-benchmark-report.md 1.6 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/source.md 955 B
- benchmark/reports/2026-08-08--manual-testing-playbook--codex-10/failed-runs.md 135 B
- benchmark/reports/2026-08-08--manual-testing-playbook--codex-10/findings-and-recommendations.md 183 B
- benchmark/reports/2026-08-08--manual-testing-playbook--codex-10/README.md 1.3 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--codex-10/results.csv 193 B
- benchmark/reports/2026-08-08--manual-testing-playbook--codex-10/skill-benchmark-report.json 1.8 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--codex-10/skill-benchmark-report.md 1.5 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--codex-10/source.md 946 B
- benchmark/reports/2026-08-08--manual-testing-playbook--codex-11/failed-runs.md 135 B
- benchmark/reports/2026-08-08--manual-testing-playbook--codex-11/findings-and-recommendations.md 183 B
- benchmark/reports/2026-08-08--manual-testing-playbook--codex-11/README.md 1.3 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--codex-11/results.csv 193 B
- benchmark/reports/2026-08-08--manual-testing-playbook--codex-11/skill-benchmark-report.json 1.8 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--codex-11/skill-benchmark-report.md 1.5 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--codex-11/source.md 946 B
- benchmark/reports/2026-08-08--manual-testing-playbook--codex-12/failed-runs.md 135 B
- benchmark/reports/2026-08-08--manual-testing-playbook--codex-12/findings-and-recommendations.md 183 B
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.
- today Changed · -8 lines 2e41eaf34d7e
- 4d ago Changed · +4 lines cbf440c7c318
- 6d ago First seen · 388 lines · 29 tokens per session scan B dbdc1e591c24
cli-codex is a skill published in the GitHub repository MichelKerkmeester/skilled-agent-harness_spec-driven-loops (35 stars, last pushed yesterday), licensed MIT. It adds 29 tokens to every session and 7,805 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 2 findings (reads agent configuration directories, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
autoreview
Pre-commit/ship code review: Codex default; optional Claude or Pi.
rework-rate
Measure and interpret PR rework rate — the emerging 5th DORA metric.
omh-code-review
This is a Hermes-native code-review workflow skill.
revdiff-plan
Review the last Codex assistant message (plan, analysis, or proposal) with inline annotations in a TUI overlay. Extracts the most recent response from Codex rollout files and opens it in revdiff for review and annotation. Activates on "revdiff-plan", "review plan with revdiff", "annotate plan", "review last response"…
code-reviewer
Code review specialist focused on patterns, bugs, security, and performance.
agent-teams-simplify-and-harden
Implementation + audit loop using parallel agent teams with structured simplify, harden, and document passes. Spawns implementation agents to do the work, then audit agents to find complexity, security gaps, and spec deviations, then loops until code compiles cleanly, all tests pass, and auditors find zero issues or…