← 返回 Skills 市场
chensu1234

cli-anything

作者 chensu1234 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
275
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cli-anything-hkuds
功能描述
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-Anythi...
使用说明 (SKILL.md)

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:

\x3Csoftware>/
└── agent-harness/
    ├── \x3CSOFTWARE>.md
    ├── setup.py
    └── cli_anything/
        └── \x3Csoftware>/
            ├── README.md
            ├── __init__.py
            ├── __main__.py
            ├── \x3Csoftware>_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-\x3Csoftware> rather than only module imports.

Validate

Check that the harness:

  • uses the cli_anything.\x3Csoftware> 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/\x3Csoftware>_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-\x3Csoftware> 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
安全使用建议
This skill is instruction-only and coherent for building CLI harnesses. Before running it: (1) only use it on source trees you trust or run in an isolated environment (container/VM) because it advises installing and executing code from the target repo; (2) review any ../cli-anything-plugin/HARNESS.md referenced by the instructions if present; (3) inspect changes the agent proposes to ensure it doesn't modify unrelated files; (4) prefer running tests and installation steps manually or in sandboxed CI to limit risk from untrusted repositories.
功能分析
Type: OpenClaw Skill Name: cli-anything-hkuds Version: 1.0.0 The skill bundle provides a framework for an AI agent to automate the creation of CLI wrappers (harnesses) for software repositories or GUI applications. The instructions in SKILL.md outline a standard development workflow, including repository cloning, code generation using the Click library, and local installation via 'pip install -e .'. While these actions involve high-privilege operations, they are consistent with the stated purpose of the tool and lack any indicators of malicious intent, such as data exfiltration, unauthorized network access, or obfuscated payloads.
能力评估
Purpose & Capability
The name/description (build/refine/test/validate CLI harnesses) matches the SKILL.md requirements: it expects a local path or repo URL, describes harness layout, testing, packaging, and validation. There are no unrelated env vars, binaries, or install steps requested.
Instruction Scope
The instructions legitimately direct the agent to read local source trees (and, when present, ../cli-anything-plugin/HARNESS.md), analyze architecture, and run tests/installation commands (e.g., pip install -e ., subprocess invocations). This is expected for a harness-builder but means the agent will access and execute code from the target repo — a potential risk if the repo is untrusted.
Install Mechanism
No install spec and no code files are included in the skill package, so nothing is written to disk by the skill itself. The only instructions that may install things are user-directed steps (e.g., pip install -e .) applied to the target repository, which is appropriate for the stated purpose.
Credentials
The skill declares no required environment variables, credentials, or config paths. The SKILL.md does not ask for secrets or unrelated credentials.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request persistent system-wide privileges or modify other skills' configurations.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cli-anything-hkuds
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cli-anything-hkuds 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Build CLIs for any GUI app using CLI-Anything methodology. Supports OpenClaw agents to generate command-line interfaces for software like GIMP, Blender, LibreOffice, and more.
元数据
Slug cli-anything-hkuds
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

cli-anything 是什么?

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-Anythi... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 275 次。

如何安装 cli-anything?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cli-anything-hkuds」即可一键安装,无需额外配置。

cli-anything 是免费的吗?

是的,cli-anything 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

cli-anything 支持哪些平台?

cli-anything 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 cli-anything?

由 chensu1234(@chensu1234)开发并维护,当前版本 v1.0.0。

💬 留言讨论