Skip to content
cccskills
FreePublished on GitHub

cli-anything

Build and improve Python command interfaces for GUI applications with OpenClaw. The skill guides source analysis, command design, testing, and packaging, including interactive sessions and structured JSON output for agents.

OriginalShow the original description

Use when the user wants OpenClaw to build, refine, test, or validate a CLI-Anything harness for a GUI application or source repository. Adapts the CLI-Anything methodology to OpenClaw without changing the generated Python harness format.

See how to install

Good for

  • Build a command interface for a GUI application
  • Add missing commands to an existing interface
  • Test workflows against the actual application
  • Check package installation and JSON output

Files included (40)

  • SKILL.md3.3 KB
  • agent-harness/cli_anything/macrocli/__init__.py32 B
  • agent-harness/cli_anything/macrocli/__main__.py136 B
  • agent-harness/cli_anything/macrocli/backends/__init__.py0 B
  • agent-harness/cli_anything/macrocli/backends/base.py2.3 KB
  • agent-harness/cli_anything/macrocli/backends/file_transform.py7.5 KB
  • agent-harness/cli_anything/macrocli/backends/gui_agent.py20.8 KB
  • agent-harness/cli_anything/macrocli/backends/gui_macro.py7.1 KB
  • agent-harness/cli_anything/macrocli/backends/native_api.py8.7 KB
  • agent-harness/cli_anything/macrocli/backends/recovery.py4.9 KB
  • agent-harness/cli_anything/macrocli/backends/semantic_ui.py22.2 KB
  • agent-harness/cli_anything/macrocli/backends/visual_anchor.py26.1 KB
  • agent-harness/cli_anything/macrocli/core/__init__.py0 B
  • agent-harness/cli_anything/macrocli/core/llm_assist.py15.6 KB
  • agent-harness/cli_anything/macrocli/core/macro_model.py12.3 KB
  • agent-harness/cli_anything/macrocli/core/parameterize.py10.6 KB
  • agent-harness/cli_anything/macrocli/core/recorder.py28.1 KB
  • agent-harness/cli_anything/macrocli/core/registry.py5.9 KB
  • agent-harness/cli_anything/macrocli/core/routing.py4.2 KB
  • agent-harness/cli_anything/macrocli/core/runtime.py10.5 KB
  • agent-harness/cli_anything/macrocli/core/session.py6.1 KB
  • agent-harness/cli_anything/macrocli/macro_definitions/demo/gedit_find_and_replace.yaml1.7 KB
  • agent-harness/cli_anything/macrocli/macro_definitions/demo/gedit_new_window.yaml901 B
  • agent-harness/cli_anything/macrocli/macro_definitions/demo/gedit_save_as.yaml1.8 KB
  • agent-harness/cli_anything/macrocli/macro_definitions/demo/gedit_type_and_save.yaml1015 B
  • agent-harness/cli_anything/macrocli/macro_definitions/examples/export_file.yaml1.6 KB
  • agent-harness/cli_anything/macrocli/macro_definitions/examples/transform_json.yaml1.1 KB
  • agent-harness/cli_anything/macrocli/macro_definitions/examples/undo_last.yaml889 B
  • agent-harness/cli_anything/macrocli/macro_definitions/manifest.yaml731 B
  • agent-harness/cli_anything/macrocli/macrocli_cli.py34.1 KB
  • agent-harness/cli_anything/macrocli/README.md2.8 KB
  • agent-harness/cli_anything/macrocli/skills/SKILL.md5.6 KB
  • agent-harness/cli_anything/macrocli/tests/__init__.py0 B
  • agent-harness/cli_anything/macrocli/tests/test_core.py23.8 KB
  • agent-harness/cli_anything/macrocli/tests/test_full_e2e.py13.6 KB
  • agent-harness/cli_anything/macrocli/utils/__init__.py0 B
  • agent-harness/cli_anything/macrocli/utils/repl_skin.py19.2 KB
  • agent-harness/DEMO.md10.0 KB
  • agent-harness/MACROCLI.md7.7 KB
  • agent-harness/setup.py2.3 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

CLI-Anything for OpenClaw

Use this skill when the user wants OpenClaw to act like the CLI-Anything builder.

If this skill is being used from inside the CLI-Anything repository, read ../cli-anything-plugin/HARNESS.md before implementation. That file is the full methodology source of truth. If it is not available, follow the condensed rules below.

Inputs

Accept either:

  • A local source path such as ./gimp or /path/to/software
  • A GitHub repository URL

Derive the software name from the local directory name after cloning if needed.

Modes

Build

Use when the user wants a new harness.

Produce this structure:

<software>/
└── agent-harness/
    ├── <SOFTWARE>.md
    ├── setup.py
    └── cli_anything/
        └── <software>/
            ├── README.md
            ├── __init__.py
            ├── __main__.py
            ├── <software>_cli.py
            ├── core/
            ├── utils/
            └── tests/

Implement a stateful Click CLI with:

  • one-shot subcommands
  • REPL mode as the default when no subcommand is given
  • --json machine-readable output
  • session state with undo/redo where the target software supports it

Refine

Use when the harness already exists.

First inventory current commands and tests, then do gap analysis against the target software. Prefer:

  • high-impact missing features
  • easy wrappers around existing backend APIs or CLIs
  • additions that compose well with existing commands

Do not remove existing commands unless the user explicitly asks for a breaking change.

Test

Plan tests before writing them. Keep both:

  • test_core.py for unit coverage
  • test_full_e2e.py for workflow and backend validation

When possible, test the installed command via subprocess using cli-anything-<software> rather than only module imports.

Validate

Check that the harness:

  • uses the cli_anything.<software> namespace package layout
  • has an installable setup.py entry point
  • supports JSON output
  • has a REPL default path
  • documents usage and tests

Backend Rules

Prefer the real software backend over reimplementation. Wrap the actual executable or scripting interface in utils/<software>_backend.py when possible. Use synthetic reimplementation only when the project explicitly requires it or no viable native backend exists.

Packaging Rules

  • Use find_namespace_packages(include=["cli_anything.*"])
  • Keep cli_anything/ as a namespace package without a top-level __init__.py
  • Expose cli-anything-<software> through console_scripts

Workflow

  1. Acquire the source tree locally.
  2. Analyze architecture, data model, existing CLIs, and GUI-to-API mappings.
  3. Design command groups and state model.
  4. Implement the harness.
  5. Write TEST.md, then tests, then run them.
  6. Update README usage docs.
  7. Verify local installation with pip install -e .

Output Expectations

When reporting progress or final results, include:

  • target software and source path
  • files added or changed
  • validation commands run
  • open risks or backend limitations

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

cli-anything

FreeSummary

Use Reasonix to build or improve a Python command-line interface for existing software. The workflow covers source analysis, interactive commands, JSON output, tests, documentation, and installation checks using the software’s own backend where possible.

  • Build command-line access to a GUI application
  • Add missing features to an existing command-line interface
  • Test commands against the actual software backend
HKUDS/CLI-Anything54.6KUpdated Sep 22, 2026

cli-anything

FreeSummary

Use Codex to build Python command-line tools for applications with graphical interfaces. Analyze source code, add commands, test against the actual software, validate packaging and documentation, and discover tools already generated or installed.

  • Build a command-line tool from application source code
  • Extend an existing tool with more commands
  • Test behavior against the actual application
HKUDS/CLI-Anything54.6KUpdated Sep 22, 2026

cli-anything-3mf

FreeSummary

Inspect and edit 3MF files for 3D printing. Detect cylindrical holes, change their diameters, repair mesh issues, and compare files while preserving BambuStudio and PrusaSlicer metadata when repacking the edited file.

  • Detect cylindrical holes and check their diameters
  • Resize selected holes to a target diameter
  • Repair degenerate faces and duplicate vertices
HKUDS/CLI-Anything54.6KUpdated Sep 22, 2026

Manage AdGuard Home network filtering from the command line. Update blocklists, register devices, configure DNS rules that map names to addresses, and inspect query logs and statistics through the AdGuard Home REST API.

  • Adding and refreshing ad-blocking filter lists
  • Mapping local domain names to IP addresses
  • Registering devices and managing fixed address assignments
HKUDS/CLI-Anything54.6KUpdated Sep 22, 2026

Generate slides, documents, websites, and diagrams from natural language prompts through AnyGen OpenAPI. Manage reference uploads, check generation progress, and download finished files using commands with structured output for AI agents.

  • Generate slides or documents from written instructions
  • Upload reference files for a generation task
  • Check generation progress and download finished files
HKUDS/CLI-Anything54.6KUpdated Sep 22, 2026

Build and edit audio projects through an Audacity command-line interface: arrange and trim clips, adjust tracks, configure effects, add labels, and render audio files while retaining project state and undo history.

  • Trim, split, and arrange audio clips
  • Adjust track volume, pan, mute, and solo
  • Configure effects and add timeline labels
HKUDS/CLI-Anything54.6KUpdated Sep 22, 2026

See all skills by HKUDS

Report a problem with this skill