# CLI Anything Generator

Build, refine, test, validate, or list CLI-Anything harnesses for GUI applications in...

- Repository: https://github.com/HKUDS/CLI-Anything (58029 stars)
- Category: Testing
- License: Apache-2.0
- Last updated: 2026-09-22
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add HKUDS/CLI-Anything --skill cli-anything-generator -g -a claude-code -y`
Codex: `npx skills add HKUDS/CLI-Anything --skill cli-anything-generator -g -a codex -y`
Cursor: `npx skills add HKUDS/CLI-Anything --skill cli-anything-generator -g -a cursor -y`
Gemini CLI: `npx skills add HKUDS/CLI-Anything --skill cli-anything-generator -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add HKUDS/CLI-Anything`

## Description

Build, refine, test, validate, or list CLI-Anything harnesses for GUI applications in Cursor. Prefer slash commands /cli-anything, /cli-anything-refine, /cli-anything-test, /cli-anything-validate, and /cli-anything-list when available. This skill supports natural-language discovery of the generator; it does not replace those commands. Discovering already-published CLIs from CLI-Hub is a separate consumer skill (cli-hub-meta-skill).

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# CLI-Anything Generator (Cursor Plugin Skill)

This skill is packaged **inside the Cursor plugin** as a supporting entry point.
The primary generator UX is the plugin slash commands.

## Prefer Slash Commands

| Goal | Command |
|------|---------|
| Full 7-phase build | `/cli-anything <path-or-repo>` |
| Expand coverage | `/cli-anything-refine <path> [focus]` |
| Run tests | `/cli-anything-test <path>` |
| Validate checklist | `/cli-anything-validate <path>` |
| List tools | `/cli-anything-list` |

If the user speaks naturally ("build a CLI for ./gimp"), run the same workflow as the matching command.

## Consumer Path (Separate)

This skill is **not** the Hub consumer. For finding/installing published CLIs:

```bash
npx skills add HKUDS/CLI-Anything --skill cli-hub-meta-skill -g -y
```

Per-app skills live under the repo `skills/` tree and install via `npx skills add`.

## PLUGIN_ROOT and Methodology

1. Resolve `PLUGIN_ROOT` via discovery pointer then stamp:
   - `~/.cursor/cli-anything-generator.root` / `%USERPROFILE%\.cursor\cli-anything-generator.root`
   - `{install}/PLUGIN_ROOT.txt`
   - default `~/.cursor/plugins/local/cli-anything` if `references/HARNESS.md` exists there
2. Read `{PLUGIN_ROOT}/references/HARNESS.md` with an absolute path.
3. Read the matching file under `{PLUGIN_ROOT}/references/commands/`.
4. Use guides under `{PLUGIN_ROOT}/references/guides/` on demand.
5. Helper scripts: `{PLUGIN_ROOT}/scripts/repl_skin.py`, `preview_bundle.py`,
   `skill_generator.py`, `templates/`.

### Path remapping (from HARNESS / plugin docs)

The rest: https://github.com/HKUDS/CLI-Anything/blob/HEAD/cursor-plugin/skills/cli-anything-generator/SKILL.md
