Cli anything

From coco-research/coco · View interactive version

Cli anything is an AI agent skill from the GitHub repository coco-research/coco. Wrap any command-line tool into a JSON-emitting agent skill. Use when you want to make a CLI reliably callable and parseable by an AI agent — introspect its --help, define a structured-output (--json) contract and a stable error contract, then generate a SKILL.md wrapper with verified examples. Trig

How to use this skill

Skill file

<!-- Methodology adapted from HKUDS/CLI-Anything (https://github.com/HKUDS/CLI-Anything) — Apache-2.0. -->

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:

Step 2 — Define the output contract

Step 3 — Define the error contract

Step 4 — Write the SKILL.md wrapper

Standard structure so an agent can discover and drive the tool:

Step 5 — Verify against reality

Principles

Worked example

skills/coco-cli/SKILL.md is a wrapper produced with this pattern over the cocosuperintelligence command — note how it documents the (human-only) output contract honestly rather than inventing a JSON mode the tool lacks.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.