跳到正文
cccskills
免费在 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.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

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.

查看安装方法

适用场景

  • 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

包含的文件(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(原文)

安装前可以查看交给 AI 代理的指令内容。

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

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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-Anything5.5万2026年9月22日 更新

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-Anything5.5万2026年9月22日 更新

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-Anything5.5万2026年9月22日 更新

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-Anything5.5万2026年9月22日 更新

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-Anything5.5万2026年9月22日 更新

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-Anything5.5万2026年9月22日 更新

查看 HKUDS 的全部技能

报告此技能的问题