cli-anything
What it does
This skill guides an AI agent in creating a command-line interface for a program that normally runs with buttons and windows. It is for developers who want their agent to build such tools.
When to use it
- βWhen you want an agent to make a command-line version of a desktop app you use.
- βWhen you have a source code project and want a command tool built for it.
- βWhen you want to test and check a command-line tool that an agent has built.
Skill link
https://github.com/HKUDS/CLI-Anything/blob/main/reasonix-skill/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βI want to build a command-line tool for the GIMP image editor so my agent can use it.β
5 new skills a week. 1 minute to read.
How it works
The agent reads the method guide, studies the app or repository, and writes Python code for the tool, including tests. It then checks that the tool works.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
CLI-Anything for Reasonix
Use this skill when the user wants Reasonix to act like the CLI-Anything builder.
Before implementation, use the full methodology source of truth when available:
- If the current workspace is the
CLI-Anythingrepository, readcli-anything-plugin/HARNESS.md. - If Reasonix is running from this adapter directory, also check
../cli-anything-plugin/HARNESS.md. - If neither local file is available, clone or download
cli-anything-pluginfromhttps://github.com/HKUDS/CLI-Anything/tree/main/cli-anything-plugin, then useHARNESS.mdand the resources around it from that folder. - Only if local and network retrieval both fail, follow the condensed rules below.
Inputs
Accept either:
- A local source path such as
./gimpor/path/to/software - A GitHub repository URL
Derive the software name from the local directory name after cloning if needed.
Reasonix Tool Bindings
Reasonix agents build harnesses by combining these built-in tools:
| Reasonix Tool | Role in Harness Workflow |
|---|---|
bash |
Run shell commands, install packages, execute CLI tools, run tests, clone repos |
write_file |
Generate Python files (Click CLI, backend modules, tests, setup.py) |
edit_file |
Make targeted edits to generated code (single replacement) |
multi_edit |
Apply multiple atomic edits to a single file in one pass |
read_file |
Read target software source files, existing harness code, test results |
grep |
Search for patterns across the target software codebase (APIs, CLI tools, data models) |
glob |
Find files matching patterns in the source tree (*.py, *.xml, *.json, etc.) |
ls |
List directory contents to understand project structure |
mcp__codegraph__search / mcp__codegraph__context |
Optional code graph analysis when CodeGraph is enabled (Reasonix strips the codegraph_ raw prefix, so the model-visible names omit it) |
web_fetch |
Fetch documentation, API references, or remote files from the web |
Recommended Workflow with Reasonix Tools
Phase 1 (Analysis) β Use ls + glob to survey the source tree, grep to find API surfaces and CLI entry points, and read_file to inspect key files. When CodeGraph is enabled and its tools are available, use mcp__codegraph__search and mcp__codegraph__context for deeper symbol and architecture analysis.
Phase 2-3 (Design & Implementation) β Use write_file to create new harness files, edit_file / multi_edit to refine generated code, and bash to run pip install -e . for installation.
Phase 4-6 (Testing) β Use bash to run pytest and capture results, read_file to inspect test output, and write_file to update TEST.md.
Phase 7 (Packaging) β Use write_file for setup.py, bash for pip install -e . and which cli-anything-<software> verification.
Step Budget
A full harness build typically requires 25β40 tool-call rounds (architecture inspection, 10+ file writes, installation, and multiple test runs). When invoked via run_skill, the subagent inherits a step budget derived from the parent agent's agent.max_steps setting in reasonix.toml:
- If
max_steps = 0(the default, meaning unlimited), the subagent also runs with no step cap β this is the recommended configuration for the CLI-Anything workflow. - If
max_stepsis set to a finite value, the subagent receives half that budget (minimum 5), which may truncate a complex build before completion.
Users who have configured a finite max_steps should ensure it is set to 0 or a sufficiently high value (e.g., 64 or more) before running a CLI-Anything build, so the subagent has enough rounds to complete all seven phases.
Modes
Build
Use when the user wants a new harness.
Produce this structure:
<repo-root>/
βββ skills/
β βββ cli-anything-<software>/
β βββ SKILL.md
βββ <software>/
βββ agent-harness/
βββ <SOFTWARE>.md
βββ setup.py
βββ cli_anything/
βββ <software>/
βββ README.md
βββ __init__.py
βββ __main__.py
βββ <software>_cli.py
βββ core/
βββ utils/
βββ tests/
βββ skills/
βββ SKILL.md
Implement a stateful Click CLI with:
- one-shot subcommands
- REPL mode as the default when no subcommand is given
--jsonmachine-readable output- session state
FAQ
Where does the method come from?
The skill points to the HARNESS.md guide in the CLI-Anything project, either from a local copy or from GitHub.
Does it need Reasonix to run?
The skill is written as an adapter for Reasonix, the agent environment it runs in.
Is it only for graphical apps?
No. Its inputs can be a local source path or a GitHub repository, so it also works with code projects.
Details
Original description by the author
Use when the user wants Reasonix to build, refine, test, or validate a CLI-Anything harness for a GUI application or source repository. Adapts the CLI-Anything methodology to Reasonix without changing the generated Python harness format.
repo: HKUDS/CLI-Anything
Popularity
- GitHub stars
- 58k
- Ranking position
- #3239
- License
- Apache-2.0
- Updated
- 9/21/2026
Comments
- β¦
More skills from this repository
cli-anything-3mf
58kLets your agent inspect and fix 3D printing files, including finding round holes, resizing them, repairing meshes, and comparing two files.
cli-anything-qgis
58kLets your agent open, edit, and export QGIS map projects from the terminal, including layers, features, print layouts, and processing tools.
cli-anything-adguardhome
58kLets your agent manage AdGuard Home, a network-wide ad blocker, including filters, DNS rewrites, clients, and query logs.
cli-anything-anygen
58kLets your agent generate slides, documents, websites, and diagrams from a written prompt using the AnyGen service.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.