terrylica/cc-skills/cli-anything
Claude Code and agent skill by terrylica/cc-skills
- community
Checking that the SKILL.md file is still in the repository.
Reference guide for CLI-Anything, which auto-generates production-ready agent-controllable CLI harnesses for any GUI application via a 7-phase.
Install
npx vskill@latest install terrylica/cc-skills/cli-anythingSKILL.md
CLI-Anything Reference
Auto-generates production-ready, agent-controllable CLI interfaces for any GUI application with accessible source code. A 7-phase pipeline maps GUI actions to backend APIs and emits Click-based harnesses with --json output mode, interactive REPL, and pytest test suites.
Source: <https://github.com/HKUDS/CLI-Anything> License: MIT | Python: 3.10+ | Tests: 1,508 passing across 11 apps
Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
Installation
Method 1: Claude Code Marketplace (recommended)
Method 2: Manual Claude Code
Method 3: OpenCode — global
Method 4: OpenCode — project-level
Generating a New CLI Harness
All Commands
| Command | Platform | Purpose | |
|---|---|---|---|
/cli-anything <path-or-url> | Claude Code | Build full 7-phase harness | |
/cli-anything:refine <path> [focus] | Claude Code | Expand with gap analysis | |
/cli-anything:test <path-or-url> | Claude Code | Run tests + update TEST.md | |
/cli-anything:validate <path-or-url> | Claude Code | Verify HARNESS.md standards | |
/cli-anything:list [--path dir] [--depth n] [--json] | Claude Code | Discover installed CLI-Anything tools | |
/cli-anything ./gimp | OpenCode | Build harness | |
/cli-anything-refine ./gimp | OpenCode | Refine harness | |
/cli-anything-test ./gimp | OpenCode | Run tests | |
/cli-anything-validate ./gimp | OpenCode | Validate standards | |
/cli-anything-list | OpenCode | List installed tools |
Refinement with Focus
Installing a Generated CLI
Using Generated CLIs
All generated CLIs share a consistent interface pattern.
GIMP Example
LibreOffice Example
Blender Example
Inkscape Example
Output Modes
Every command supports two output modes:
| Mode | Usage | Audience | |
|---|---|---|---|
| Human-readable (default) | cli-anything-gimp layer add ... | Terminal / humans | |
| Machine-readable JSON | cli-anything-gimp --json layer add ... | AI agents, scripts |
The --json flag is always the first argument, before any subcommands.
Interactive REPL
Enter by running the CLI with no subcommands:
REPL features:
- 50-level undo/redo stack
- Persistent command history
- ANSI 256-color output (software-specific accent colors)
- Table rendering, progress indicators
- All subcommands available interactively
Running Tests
Environment Variables
| Variable | Purpose | |
|---|---|---|
CLI_ANYTHING_FORCE_INSTALLED=1 | Forces tests to use the real installed binary (validates which cli-anything-<software> resolves correctly, not just module import) |
Supported Applications (11 total, 1,508 tests)
| Application | Category | Entry Point | |
|---|---|---|---|
| GIMP | Creative (raster) | cli-anything-gimp | |
| Blender | Creative (3D) | cli-anything-blender | |
| Inkscape | Creative (vector) | cli-anything-inkscape | |
| Audacity | Media (audio) | cli-anything-audacity | |
| LibreOffice | Productivity | cli-anything-libreoffice | |
| OBS Studio | Media (streaming) | cli-anything-obs-studio | |
| Kdenlive | Media (video) | cli-anything-kdenlive | |
| Shotcut | Media (video) | cli-anything-shotcut | |
| Zoom | Communication | cli-anything-zoom | |
| Draw.io | Diagramming | cli-anything-drawio | |
| AnyGen | AI Content | cli-anything-anygen |
The 7-Phase Pipeline (HARNESS.md)
What /cli-anything triggers under the hood:
| Phase | Name | What happens | |
|---|---|---|---|
| 1 | Source Acquisition | Accept local path or GitHub URL; clone if needed | |
| 2 | Codebase Analysis | Map GUI actions → backend APIs; inventory existing CLI tools; document data model | |
| 3 | CLI Architecture Design | Choose interaction model (stateful REPL + subcommand); define command groups; plan --json output | |
| 4 | Implementation | Build Click-based CLI with cli_anything.<software> namespace; implement REPL via shared ReplSkin | |
| 5 | Test Planning | Write TEST.md with planned test inventory before code | |
| 6 | Test Implementation | Unit tests (synthetic data) + E2E tests (real software output) + subprocess tests | |
| 7 | PyPI Publishing | setup.py with find_namespace_packages(); console_scripts entry points |
Fundamental Rule: The CLI MUST delegate rendering to the real software — never reimplement functionality in Python. The target software is a hard dependency.
Generated Harness Structure
Each generated CLI follows this layout (PEP 420 namespace packages):
Why namespace packages: cli_anything/ has no __init__.py, enabling multiple separately-installed CLIs to coexist under the same cli_anything.* namespace without conflict.
Output Verification Standards
Tests verify real output using magic bytes and content analysis:
| Output Type | Verification | |
|---|---|---|
%PDF- magic bytes + non-zero size | ||
| OOXML (.docx, .xlsx) | ZIP structure validation | |
| CSV | Data row count + column check | |
| Images | Pillow pixel value analysis | |
| Audio | RMS level check (non-silent) |
Prerequisites Checklist
Before running /cli-anything <path>:
- [ ] Python 3.10+ installed
- [ ] Target software installed (hard dependency — it will be called for rendering)
- [ ] Source code accessible (local path or public GitHub URL)
- [ ]
click>=8.0.0available (installed viapip install -e .) - [ ]
Pillow>=10.0.0,prompt-toolkit>=3.0.0available - [ ]
pytestavailable for running tests
Key Files Reference
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/cli-anything/skills/cli-anything/SKILL.md
Popularity
- Repository stars
- 62
- Repository forks
- 10
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/terrylica/cc-skills/cli-anything)