← Back to Skills Marketplace
yikai123456

Cli Anything

by kay · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ Security Clean
709
Downloads
4
Stars
2
Active Installs
3
Versions
Install in OpenClaw
/install cli-anything-xingyue
Description
基于 HKUDS/CLI-Anything 仓库重构的 OpenClaw Skill。为任意软件生成 CLI 工具,让 AI Agent 可以控制它。通过分析软件源代码,自动生成可被 AI 调用的命令行接口。支持 GIMP、Blender、LibreOffice、OBS 等软件。
README (SKILL.md)

CLI-Anything for OpenClaw

🔧 基于 HKUDS/CLI-Anything 仓库重构

让任意软件都能被 AI Agent 驱动。

什么是 CLI-Anything?

今天的软件为人而生,明天的用户是 Agent。

CLI-Anything 连接 AI Agent 与全世界软件的桥梁,通过一行命令让任意软件变成 Agent 可控的工具。

核心特性

  • 🌍 通用性 - 任何软件都可以变成 CLI 工具
  • 📦 开箱即用 - 11+ 预生成的 CLI(GIMP, Blender, LibreOffice 等)
  • 🔗 无缝集成 - 无需 API、无需 GUI 重建
  • 📝 自描述 - --help 自动生成文档
  • 🤖 Agent 优先 - 结构化 JSON 输出

快速命令

查看可用 CLI

/cli-list

当前可用的 CLI:

  • gimp - 图像编辑
  • blender - 3D 建模/渲染
  • libreoffice - 办公套件
  • obs-studio - 屏幕录制/直播
  • kdenlive - 视频编辑
  • shotcut - 视频编辑
  • audacity - 音频编辑
  • inkscape - 矢量图形
  • drawio - 流程图
  • zoom - 视频会议
  • anygen - AI 内容生成

安装 CLI

/cli-install gimp
/cli-install blender

安装后即可使用:

cli-anything-gimp --help
cli-anything-blender --help

构建新 CLI(高级)

/cli-build ./my-software
/cli-build https://github.com/user/repo

⚠️ 完整构建需要在 Claude CodeCodex 环境中进行。

优化 CLI

/cli-refine ./gimp
/cli-refine ./gimp "添加图像批处理功能"

验证 CLI

/cli-validate ./gimp

使用示例

GIMP 图像编辑

# 查看帮助
cli-anything-gimp --help

# 创建新项目
cli-anything-gimp project new --width 1920 --height 1080 -o poster.json

# 添加图层
cli-anything-gimp --json layer add -n "Background" --type solid --color "#1a1a2e"

# 导出
cli-anything-gimp export png -o output.png

# 交互式 REPL
cli-anything-gimp

Blender 3D

# 创建场景
cli-anything-blender scene new -o scene.json

# 添加立方体
cli-anything-blender object add cube --location 0 0 0

# 渲染
cli-anything-blender render output.png --samples 128

LibreOffice 文档

# 打开文档
cli-anything-libreoffice document open report.odt

# 添加内容
cli-anything-libreoffice text add "Hello World"

# 导出 PDF
cli-anything-libreoffice export pdf -o report.pdf

工作原理

CLI-Anything 自动执行 7 阶段流水线:

  1. 🔍 分析 — 扫描源码,将 GUI 操作映射到 API
  2. 📐 设计 — 规划命令分组、状态模型
  3. 🔨 实现 — 构建 Click CLI(REPL、JSON、撤销/重做)
  4. 📋 规划测试 — 生成测试计划
  5. 🧪 编写测试 — 实现测试套件
  6. 📝 文档 — 更新使用文档
  7. 📦 发布 — 生成 setup.py

注意事项

  • 首次使用 /cli-list 会自动克隆 CLI-Anything 仓库
  • 预生成的 CLI 无需额外配置,安装后可直接使用
  • 构建新软件 CLI 需要 Claude Code 或 Codex 环境
  • 已安装的 CLI 可通过 pip uninstall 卸载
Usage Guidance
This skill appears to do what it says (generate and install CLI wrappers) and uses a GitHub repo as its source. Before installing or running build/install flows: 1) Review the cloned repository contents in ~/.openclaw/cli-anything (or clone it yourself) — do not blindly run pip install on unreviewed code. 2) Prefer running builds/installations inside an isolated environment (virtualenv, container, or VM) to avoid modifying your system Python or exposing sensitive files. 3) Be careful when passing local paths to /cli-build; the scripts walk directories and will run operations relative to those paths. 4) Note the SKILL metadata omits the fact it writes to ~/.openclaw — expect disk writes. 5) The skill mentions using external LLM environments (Claude Code/Codex) for full generation; do not send sensitive source code to external services without reviewing privacy implications. If you want higher assurance, ask the publisher for a reproducible release (tagged GitHub release or checksum) and inspect the harness code before running pip install.
Capability Analysis
Type: OpenClaw Skill Name: cli-anything-xingyue Version: 1.0.2 The skill is a legitimate wrapper for the HKUDS/CLI-Anything project, which aims to provide CLI interfaces for GUI-based software to be controlled by AI agents. The code performs standard operations such as cloning the official repository from GitHub (https://github.com/HKUDS/CLI-Anything.git) and installing generated packages using 'pip install -e .'. There is no evidence of data exfiltration, malicious execution, or prompt injection; the logic is consistent with the stated purpose of the tool.
Capability Assessment
Purpose & Capability
Name/description ask to generate CLI tools for arbitrary software; required binaries (git, python3, pip) and the included scripts that clone a GitHub repo and install harness packages align with that purpose.
Instruction Scope
Runtime instructions and scripts clone the CLI-Anything GitHub repo, inspect user-supplied paths or repos, list/validate harness directories, and call `pip install -e` on generated harnesses. These actions are consistent with building/installing CLIs but involve executing third-party code and walking the filesystem; review inputs/paths and the cloned repository before running builds or installs.
Install Mechanism
There is no opaque download/install host: the code clones https://github.com/HKUDS/CLI-Anything.git (a standard GitHub URL). No URL shorteners or unknown personal servers are used. The skill is instruction- and script-based rather than using a binary installer.
Credentials
The skill requests no credentials or environment variables, which matches expectations. However it writes to and uses a local path (~/.openclaw/cli-anything) even though 'required config paths' in the metadata are empty — a minor metadata inconsistency. The scripts will also run pip installs which affect the user environment.
Persistence & Privilege
always:false and autonomous invocation is allowed (platform default). The skill creates persistent files in the user's home (~/.openclaw/cli-anything) and can install console commands via `pip install -e` — this grants it the ability to persist executables on the system, so exercise caution and review code before installing.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install cli-anything-xingyue
  3. After installation, invoke the skill by name or use /cli-anything-xingyue
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
优化描述,去除冗余信息
v1.0.1
添加原作者信息
v1.0.0
基于 HKUDS/CLI-Anything 仓库重构的 OpenClaw Skill
Metadata
Slug cli-anything-xingyue
Version 1.0.2
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 3
Frequently Asked Questions

What is Cli Anything?

基于 HKUDS/CLI-Anything 仓库重构的 OpenClaw Skill。为任意软件生成 CLI 工具,让 AI Agent 可以控制它。通过分析软件源代码,自动生成可被 AI 调用的命令行接口。支持 GIMP、Blender、LibreOffice、OBS 等软件。 It is an AI Agent Skill for Claude Code / OpenClaw, with 709 downloads so far.

How do I install Cli Anything?

Run "/install cli-anything-xingyue" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Cli Anything free?

Yes, Cli Anything is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Cli Anything support?

Cli Anything is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Cli Anything?

It is built and maintained by kay (@yikai123456); the current version is v1.0.2.

💬 Comments