Guide · Agent skill
How to use the CLI-Anything Harness Builder agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
The cli-anything skill teaches Codex to act like the CLI-Anything builder. You point it at a GUI application or a source repository, and it produces a command-line harness: a Python package with one-shot commands, an interactive mode, JSON output and tests run against the real software. This guide is for developers and teams who want an AI agent to expose a tool as a scriptable CLI. By the end you will know how to install the skill, trigger it with plain requests and what to check before trusting the output.
Quick start
- 1Download and unzip the skill. Download the ZIP from this page and unzip it into ~/.codex/skills/ or your Codex skills directory.
- 2Get a CLI-Anything checkout. Make sure a full CLI-Anything repository checkout is available so the installer can copy the canonical resources.
- 3Run the installer. Run scripts/install.sh with Bash so the skill's references and scripts are placed in the skill folder.
- 4Point Codex at a target. Give a local source path such as ./gimp or a GitHub repository URL.
- 5Ask for a mode. Request Build, Refine, Test, Validate or List in plain language.
- 6Review the generated harness. Read the code, run the tests and check the progress report for backend limitations.
What is an agent skill and what does this one do?
An agent skill is a folder with a SKILL.md file that tells an AI agent when to use it and how to work. This skill is designed for Codex. Its description says to use it when you want Codex to build, refine, test, validate or list CLI-Anything harnesses for GUI applications or source repositories.
The skill has five modes: Build, Refine, Test, Validate and List. Build creates a full harness. Refine adds high-impact capabilities to an existing one without removing existing commands unless you ask for a breaking change. Test runs the harness tests against the real backend. Validate checks the harness against a checklist. List discovers installed and generated CLI-Anything tools.
- Generated harnesses are Python packages with one-shot Click subcommands and a default REPL mode.
- They support --json output, session state with undo/redo where the target supports it, and --dry-run.
- The skill prefers the real software backend over reimplementation.
- It keeps the generated Python harness format unchanged.
Install the skill from the ZIP
Download the ZIP from this page and unzip it into your Codex skills directory. The skill's installer defaults to ~/.codex/skills, so that is the usual location. The skill's files are agents/openai.yaml, scripts/install.sh, SKILL.md and tests/test_install.sh.
The installer, scripts/install.sh, copies canonical resources from a full CLI-Anything repository checkout into the skill, so a normal Codex installation is self-contained. You need that checkout available when you run the installer. Bash is required to run install.sh.
- Default location: ~/.codex/skills
- Requires a full CLI-Anything repository checkout for the installer to copy resources
- Runs on Bash
Trigger the skill with natural requests
You do not need a special command. Describe the outcome you want and name the software. The skill accepts either a local source path such as ./gimp or /path/to/software, or a GitHub repository URL. If you give a URL, the software name is derived from the directory name after cloning.
Name the mode in your request when you know which one you need. Phrases like build, refine, test, validate or list map to the five modes.
- Build a CLI harness for ./gimp
- Refine the existing harness for /path/to/software and add batch export
- Run the tests for the gimp harness against the real backend
- Validate the harness in ./blender against the checklist
- List the CLI-Anything tools installed on this machine as JSON
Understand what the skill reads first
Before it writes code, the skill is meant to read the full methodology. It reads references/HARNESS.md, then the matching mode specification under references/commands/, then any guides under references/guides/ that apply. If those files are missing, it looks for the plugin files in a CLI-Anything checkout, then clones or downloads https://github.com/HKUDS/CLI-Anything. Only when every full-methodology source is unavailable does it fall back to condensed rules.
This matters for you: if the methodology cannot be found, the output follows a shorter rule set. Check which source was used in the progress report.
Review the output and run the checks
A Build run produces a harness folder with an agent-harness directory, setup.py, and a cli_anything/<software>/ package containing the CLI file, core/, utils/ and tests/. The skill expects tests to be written in TEST.md before test code, with test_core.py for unit coverage and test_full_e2e.py for real-file workflows. It also asks that rendered or exported output be verified programmatically, not only by exit code.
Ask for a final report that lists the target software and source path, files added or changed, validation commands run and open risks or backend limitations.
- Confirm test_core.py and test_full_e2e.py exist and run against the real backend
- Ask for the Validate mode checklist before release
- Check the packaging: a cli_anything namespace package and a cli-anything-<software> console script
Safety notes: scripts and network access
This skill runs scripts and uses the network. install.sh is a Bash script, and the installer may clone or download the CLI-Anything repository from GitHub. Generated harnesses run commands against real backends and may modify files, so run them on copies or in version control where you can review changes.
Do not use generated harnesses on production software without review. Read the generated code before you run it, and read the install script before you execute it.
- Read scripts/install.sh before running it.
- Work on a copy of your data or a repository you can revert.
- Review generated harnesses before running them on production software.
What people use it for
- Expose a desktop graphics or office application as a scriptable command-line tool for an agent.
- Add batch export or missing commands to an existing harness with the Refine mode.
- Run the harness test suite against the real software backend after a change.
- Check an existing harness against the Validate checklist before a release.
- List installed CLI-Anything tools as JSON for a script or dashboard.
Frequently asked questions
How do I install the cli-anything skill?
Download the ZIP from this page and unzip it into ~/.codex/skills/ or your project's Codex skills directory. The skill's scripts/install.sh copies resources from a full CLI-Anything checkout, so have that available before you run it.
What do I need to run the cli-anything skill?
You need a Codex installation with a skills directory, a full CLI-Anything repository checkout for the installer, and Bash for install.sh. Generated harnesses also need Python and the target software's own dependencies. Network access or git is needed if the methodology must be cloned from GitHub.
Is the cli-anything skill free to use?
The skill is published under the Apache-2.0 licence. Check the licence file in the source repository for the full terms before you redistribute or modify it.
Can I use this skill to run an existing CLI tool?
No. The skill is for building, refining, testing, validating and listing harnesses. If you only want to run an existing CLI tool, you do not need this skill.
What happens if the methodology files are missing?
The skill tries local CLI-Anything plugin files, then clones or downloads the GitHub repository. Only if all full-methodology sources are unavailable does it follow condensed fallback rules, so check which source it used.
Is it safe to run generated harnesses on production software?
The source warns against it without review. Generated harnesses run commands against real backends and may modify files, so test on copies or under version control and review the code first.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Use this skill if you are a developer or maintainer who wants Codex to turn a GUI application or open-source tool into a scriptable, tested Python CLI that follows the CLI-Anything methodology. Pick something else if you only need to run an existing command-line tool, or if you cannot review generated code and run network-dependent installers before using them.
Download the skill