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-opencodeWrote 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-opencode)<a href="https://agentmods.dev/skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/cli-opencode"><img src="https://agentmods.dev/badge/skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/cli-opencode/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-opencode"><img src="https://agentmods.dev/badge/skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/cli-opencode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00030 | $0.10629 |
| Opus 5.5 | $0.00012 | $0.04252 |
| Sonnet 5.5 | $0.00006 | $0.02126 |
| Haiku 4.5 | $0.00003 | $0.01063 |
Grade C, and why
cli-opencode scanned grade C 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.
Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
command -v opencode2 || command -v opencode || echo "Not installed. Run: brew install opencode (macOS) or curl -fsSL https://opencode.ai/install | bash" Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
command -v opencode2 || command -v opencode || echo "Not installed. Run: brew install opencode (macOS) or curl -fsSL https://opencode.ai/install | bash" How it starts
The opening of the file, as written. The whole thing — 344 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Canonical source:
.skilled/skills/cli-external-orchestration/cli-opencode/. This is a generated markdown-only copy so Hermes can load the skill without scanning the canonical directory. Readreferences/,assets/andscripts/from the canonical path above.
OpenCode CLI Orchestrator - Full-Runtime Cross-AI Dispatch
CRITICAL: SELF-INVOCATION PROHIBITED
This skill dispatches to the OpenCode CLI binary (
opencode; anopencode2that the v2 package installed is also accepted). If the agent reading this skill is itself running inside OpenCode (TUI / acp / serve / run modes, detection signals in §2), it MUST refuse to load and return the documented error message instead of dispatching. The only exception is an explicit "parallel detached" request that intentionally spawns a SEPARATE session with its own session id and state directory.A running CLI skill never dispatches itself. The cli-X skills are for cross-AI delegation only, never self-invocation.
Orchestrate OpenCode 2's opencode run (OpenCode 1's opencode run as the fallback) from external AI assistants (Claude Code, OpenCode, raw shell) AND from inside an existing OpenCode session for parallel detached workers. Three documented use cases keep the cycle risk explicit and give every dispatch path a copy-paste invocation shape.
Core Principle: The calling AI stays the conductor. Delegate to OpenCode for what it does best: the full plugin, skill, and MCP runtime in a one-shot dispatch. Validate and integrate the output.
1. WHEN TO USE
Activation Triggers
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/permissions-matrix.example-packet-local.json 8.2 KB
- assets/permissions-matrix.example-readonly.json 5.0 KB
- assets/permissions-matrix.example-repo-wide.json 6.8 KB
- assets/permissions-matrix.schema.json 2.6 KB
- assets/prompt-quality-card.md 2.9 KB
- assets/prompt-templates.md 24 KB
- benchmark/README.md 3.4 KB
- benchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/failed-runs.md 576 B
- benchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/findings-and-recommendations.md 2.3 KB
- benchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/README.md 1.6 KB
- benchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/results.csv 892 B
- benchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/skill-benchmark-report.json 3.4 KB
- benchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/skill-benchmark-report.md 2.0 KB
- benchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/source.md 1.3 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/failed-runs.md 167 B
- benchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/findings-and-recommendations.md 215 B
- benchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/README.md 1.4 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/results.csv 300 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 984 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-10/failed-runs.md 161 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-10/findings-and-recommendations.md 209 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-10/README.md 1.4 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-10/results.csv 252 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-10/skill-benchmark-report.json 1.9 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-10/skill-benchmark-report.md 1.5 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-10/source.md 978 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-11/failed-runs.md 454 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-11/findings-and-recommendations.md 469 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-11/README.md 1.4 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-11/results.csv 277 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-11/skill-benchmark-report.json 1.9 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-11/skill-benchmark-report.md 1.5 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-11/source.md 978 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-12/failed-runs.md 161 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-12/findings-and-recommendations.md 209 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-12/README.md 1.4 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-12/results.csv 259 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-12/skill-benchmark-report.json 1.9 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-12/skill-benchmark-report.md 1.5 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-12/source.md 978 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-13/failed-runs.md 161 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-13/findings-and-recommendations.md 209 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-13/README.md 1.4 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-13/results.csv 262 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-13/skill-benchmark-report.json 1.9 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-13/skill-benchmark-report.md 1.5 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-13/source.md 978 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-14/failed-runs.md 161 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-14/findings-and-recommendations.md 209 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-14/README.md 1.4 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-14/results.csv 198 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-14/skill-benchmark-report.json 1.8 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-14/skill-benchmark-report.md 1.5 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-14/source.md 978 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-15/failed-runs.md 161 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-15/findings-and-recommendations.md 209 B
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-15/README.md 1.4 KB
- benchmark/reports/2026-08-08--manual-testing-playbook--opencode-15/results.csv 263 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 ecc9e83e1ad8
- yesterday Changed · +2 lines 03f0d78ce055
- 3d ago Changed 7e0637e907f5
- 5d ago Changed · -3 lines 3a6f8b0920bd
- 8d ago Changed 9caa1892b2d7
- 12d ago Changed · -4 lines 6cba4ac56fe7
- 23d ago Changed · -21 lines eee6228618ef
- 25d ago Changed 3b8be4d1aad2
- 26d ago Changed 4b6e4a8247cb
- 1mo ago First seen · 370 lines · 30 tokens per session scan C 50cca1d80eee
cli-opencode is a skill published in the GitHub repository MichelKerkmeester/skilled-agent-harness_spec-driven-loops (38 stars, last pushed today), licensed MIT. It adds 30 tokens to every session and 10,629 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
chronicle
Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
component-fixtures
Use when creating or updating component fixtures for screenshot testing or their shared infrastructure, or when designing UI components to be fixture-friendly. Covers fixture file structure, theming, service setup, CSS scoping, async rendering, validation, and common pitfalls.