cli-anything-generator

Builds, tests, and validates CLI harnesses for GUI applications in Cursor.

48.8k|4.5k|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/HKUDS/CLI-Anything --skill cli-anything-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-anything-generator
Source: https://github.com/HKUDS/CLI-Anything/tree/main/cursor-plugin/skills/cli-anything-generator
Command: npx skills add https://github.com/HKUDS/CLI-Anything --skill cli-anything-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GUI applications are not natively usable by AI agents, and manually building command-line harnesses for them is slow and inconsistent. This Skill guides the full 7-phase workflow of generating, refining, testing, and validating CLI-Anything harnesses inside Cursor.

Core Features & Use Cases

  • Harness Generation: Runs a structured 7-phase build workflow to create a complete CLI harness for any GUI application, matching the Claude Code plugin output format.
  • Refinement & Validation: Expands command coverage, runs pytest suites, and checks harnesses against a validation checklist with phase-gate progress tracking.
  • Use Case: Point the Skill at a local GIMP checkout and ask it to build a CLI; it clones or reads the source, implements the harness with namespace packaging and --json output, writes tests, and generates a companion skill.

Quick Start

Ask the agent to build a CLI harness for a local application path, for example by saying build a CLI for ./gimp.

Frequently Asked Questions about cli-anything-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a CLI for a GUI application in Cursor?

Run the /cli-anything slash command with a path or repository, or ask naturally to build a CLI for a given path. The Skill follows a 7-phase workflow that analyzes the source, implements the harness, and generates tests and a companion skill.

How do I test and validate a generated CLI harness?

Use /cli-anything-test to run the pytest suite and /cli-anything-validate to check the harness against the validation checklist. Progress is tracked in agent-harness/.cli-anything-progress.json so interrupted runs can resume.

Does this skill install published CLIs from CLI-Hub?

No, discovering and installing published CLIs is handled by the separate cli-hub-meta-skill consumer skill. This generator skill only builds, refines, tests, and validates new harnesses.

What output format does a generated CLI harness follow?

Generated harnesses match the Claude Code plugin and Codex skill output: the same harness layout, namespace packaging, --json output flag, test suite, and skill generation. The Skill does not invent alternate formats.

Why does the skill need a PLUGIN_ROOT path?

PLUGIN_ROOT locates the installed plugin's methodology files, including references/HARNESS.md, command guides, and helper scripts like repl_skin.py and skill_generator.py. It is resolved via a discovery pointer file or the default ~/.cursor/plugins/local/cli-anything location.