CLI Anything
by @jasonchenjc
Generate or refine agent-usable CLIs for existing software/codebases using the CLI-Anything methodology. Use when the user wants to turn a GUI app, desktop t...
clawhub install cli-anythingπ About This Skill
name: cli-anything description: Generate or refine agent-usable CLIs for existing software/codebases using the CLI-Anything methodology. Use when the user wants to turn a GUI app, desktop tool, repository, SDK, or web/API surface into a structured CLI for agents; when adapting CLI-Anything into OpenClaw workflows; or when packaging a generated harness as an OpenClaw-compatible skill.
CLI-Anything
Use this skill to work with the local CLI-Anything/ repository in the workspace and turn its methodology into something usable from OpenClaw.
What this skill is for
Use it for three common cases:
1. Assess feasibility β inspect a target app/repo and decide whether CLI-Anything is a good fit.
2. Use an existing harness β work with one of the repo's prebuilt agent-harness examples.
3. Wrap for OpenClaw β turn CLI-Anything guidance or an existing harness into an OpenClaw skill/workflow.
Local source of truth
The repository is expected at:
/root/.openclaw/workspace/CLI-AnythingRead these first when needed:
CLI-Anything/README.md β overall platform and examplesCLI-Anything/cli-anything-plugin/HARNESS.md β generation methodology and quality barCLI-Anything/cli-anything-plugin/README.md β plugin behavior and expected output layoutFor a fast survey of bundled examples, read references/bundled-harnesses.md.
Core workflow
1) Classify the user's request
Decide which path applies:
2) Inspect prerequisites
Before promising execution, check:
3) Prefer existing harnesses before generation
If the repo already includes a matching harness under , use that as the baseline instead of pretending generation has to happen from scratch.
4) For OpenClaw packaging, separate method from implementation
CLI-Anything itself is not a native OpenClaw skill package. When adapting it:
SKILL.md focused on when to use and how to navigate the local repo/plugin or /cli-anything slash commands are directly available inside OpenClaw unless you have actually wired them upPractical guidance
When the user wants to use an existing bundled harness
1. Locate
2. Read its setup.py, package layout, and local README/SOP file
3. Identify hard dependencies on the real software backend
4. Install or verify Python requirements only as needed
5. Validate the CLI entry point and a minimal command
When the user wants to make a new app agent-native
Use CLI-Anything as methodology, not magic:
1. Analyze backend engine, data model, existing CLI/API hooks
2. Define command groups and state model
3. Create or refine agent-harness/
4. Add tests and a TEST.md
5. Install the resulting package to PATH
6. Verify real backend execution, not mock-only behavior
When the user wants an OpenClaw skill
There are two good outputs:
Default to a method skill unless the user clearly wants a single app workflow.
Rules
SKILL.md.Useful script
Use scripts/inspect_cli_anything.py to quickly inspect the local repo and enumerate bundled harnesses. It prints JSON with:
setup.py, package directory, README, and E2E testsRun:
python3 /root/.openclaw/workspace/skills/cli-anything/scripts/inspect_cli_anything.py
Use scripts/recommend_harness.py to rank the bundled harnesses and suggest good first validation targets.
Run:
python3 /root/.openclaw/workspace/skills/cli-anything/scripts/recommend_harness.py
Helpful local paths
/root/.openclaw/workspace/CLI-Anything/root/.openclaw/workspace/CLI-Anything/cli-anything-plugin/root/.openclaw/workspace/CLI-Anything/*/agent-harnessReference files
references/bundled-harnesses.md β quick map of included examplesreferences/openclaw-adaptation-notes.md β how to package CLI-Anything ideas into OpenClaw skillsreferences/validated-example-gimp.md β first locally verified runnable exampleπ Constraints
SKILL.md.