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.
npx skills add coco-research/coco --skill cli-anythinggit clone --depth 1 https://github.com/coco-research/cocoWrote 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/coco-research/coco/cli-anything)<a href="https://agentmods.dev/skills/coco-research/coco/cli-anything"><img src="https://agentmods.dev/badge/skills/coco-research/coco/cli-anything/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/coco-research/coco/cli-anything"><img src="https://agentmods.dev/badge/skills/coco-research/coco/cli-anything.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.00098 | $0.00800 |
| Opus 5.5 | $0.00039 | $0.00320 |
| Sonnet 5.5 | $0.00020 | $0.00160 |
| Haiku 4.5 | $0.00010 | $0.00080 |
Grade A, and why
cli-anything scanned grade A with 0 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 3mo 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.
cli-anything: wrap any CLI into an agent skill
Turn any command-line tool into something an AI agent can call reliably and parse. The output is a thin, well-documented wrapper contract — never a reimplementation of the tool. Use the real tool; document how to drive it.
When to use
You have a CLI (your own, or a third-party binary) and you want an agent to invoke it predictably, read structured results, and recover from errors. This skill produces a SKILL.md wrapper that encodes that contract.
Step 1 — Introspect the CLI (do not guess)
Enumerate the real surface before writing anything:
- Run
<tool> --helpand<tool> <subcommand> --helpfor each subcommand. - Capture: subcommands, flags (required vs optional), positional args, exit codes, and the output format (human text vs structured).
- If
--helpis thin, read the source or man page. Every claim in the wrapper must trace to observed behavior.
Step 2 — Define the output contract
- Prefer a
--jsonmachine-readable mode for every command an agent will call. Document the exact JSON keys the agent should read (one shape per command). - If the tool has no JSON mode, say so honestly and document what to parse from stdout (and which token carries the answer). Do not pretend output is structured when it is not.
- Human output stays the default; structured output is the agent path.
Step 3 — Define the error contract
- Map exit codes to meaning (0 = success; document each non-zero class).
- On failure, surface a parseable signal (
{"error": "...", "code": N}if the tool supports it, otherwise the captured stderr) — never a bare stack trace. - Fail loud and parseable. Never half-succeed silently.
Step 4 — Write the SKILL.md wrapper
Standard structure so an agent can discover and drive the tool:
- Frontmatter:
name,description(include natural trigger phrases). Commands— each command: purpose, exact invocation, args, and the result shape it returns.Examples— 2-4 real invocations with expected output.Errors— the exit-code/error contract from Step 3.Notes— auth, side effects, idempotency, network egress, prerequisites.
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.
- 3mo ago First seen · 62 lines · 98 tokens per session scan A 49b64ea733d7
cli-anything is a skill published in the GitHub repository coco-research/coco (323 stars, last pushed yesterday), licensed Apache-2.0. It adds 98 tokens to every session and 800 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
cli-anything compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cli-anythingcoco-research/coco | Skill | 323 | yesterday | Apache-2.0 | A | 98 | Claude Code, Codex |
| session-handoffwanshuiyin/HERO-Anti-OverDefense | Skill | 929 | 12d ago | MIT | A | 34 | Claude Code, Codex |
| proxmox-fullmarcusquinn/aidevops | Skill | 476 | today | MIT | A | 27 | Claude Code |
| a-philosophy-of-software-designciembor/agent-rules-books | Skill | 3.4k | 2mo ago | MIT | A | 33 | Claude Code, Codex |
| handoffChemaclass/agnostic-ai | Skill | 31 | today | MIT | A | 14 | Claude Code, Codex |
| template-autopoiesisdocxology/template | Skill | 25 | today | Apache-2.0 | A | 51 | Claude Code, Codex |
| template-publishdocxology/template | Skill | 25 | today | Apache-2.0 | A | 52 | Claude Code, Codex |