cli-anything-generator
它能做什么
这个技能将 CLI-Anything 构建器打包用于 Cursor。适合使用 Cursor、想创建让 AI 智能体控制桌面软件的命令行工具的开发者。
适用场景
- ✓当你想在 Cursor 中为桌面应用构建一个命令行封装工具的时候。
- ✓当你想为已有的封装工具添加功能的时候。
- ✓当你想对封装工具运行测试或验证清单的时候。
技能链接
https://github.com/HKUDS/CLI-Anything/blob/main/cursor-plugin/skills/cli-anything-generator/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我为这个仓库中的 GIMP 文件夹构建一个命令行封装工具,并运行它的测试。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能会在你的 Cursor 插件文件夹中找到方法论文件,然后按照对应的构建、优化、测试或验证步骤执行。斜杠命令是主要的使用方式,普通请求也同样有效。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
CLI-Anything Generator (Cursor Plugin Skill)
This skill is packaged inside the Cursor plugin as a supporting entry point. The primary generator UX is the plugin slash commands.
Prefer Slash Commands
| Goal | Command |
|---|---|
| Full 7-phase build | /cli-anything <path-or-repo> |
| Expand coverage | /cli-anything-refine <path> [focus] |
| Run tests | /cli-anything-test <path> |
| Validate checklist | /cli-anything-validate <path> |
| List tools | /cli-anything-list |
If the user speaks naturally ("build a CLI for ./gimp"), run the same workflow as the matching command.
Consumer Path (Separate)
This skill is not the Hub consumer. For finding/installing published CLIs:
npx skills add HKUDS/CLI-Anything --skill cli-hub-meta-skill -g -y
Per-app skills live under the repo skills/ tree and install via npx skills add.
PLUGIN_ROOT and Methodology
- Resolve
PLUGIN_ROOTvia discovery pointer then stamp:~/.cursor/cli-anything-generator.root/%USERPROFILE%\.cursor\cli-anything-generator.root{install}/PLUGIN_ROOT.txt- default
~/.cursor/plugins/local/cli-anythingifreferences/HARNESS.mdexists there
- Read
{PLUGIN_ROOT}/references/HARNESS.mdwith an absolute path. - Read the matching file under
{PLUGIN_ROOT}/references/commands/. - Use guides under
{PLUGIN_ROOT}/references/guides/on demand. - Helper scripts:
{PLUGIN_ROOT}/scripts/repl_skin.py,preview_bundle.py,skill_generator.py,templates/.
Path remapping (from HARNESS / plugin docs)
| Document reference | Installed plugin path |
|---|---|
guides/... |
references/guides/... |
cli-anything-plugin/repl_skin.py |
scripts/repl_skin.py |
cli-anything-plugin/preview_bundle.py |
scripts/preview_bundle.py |
cli-anything-plugin/skill_generator.py |
scripts/skill_generator.py |
templates/SKILL.md.template |
scripts/templates/SKILL.md.template |
docs/PREVIEW_PROTOCOL.md |
references/docs/PREVIEW_PROTOCOL.md |
Cursor Tool Bindings
| Cursor tool | Role |
|---|---|
| Read | Methodology and source analysis |
| Grep / Glob | API and file discovery |
| Shell | Clone, pytest, pip, CLI invocation |
| Write / StrReplace | Harness implementation |
| Task | Optional parallel subtasks |
Phase Gates
For build/refine/test/validate, maintain
{software-root}/agent-harness/.cli-anything-progress.json.
Create agent-harness/ when tracking starts. Do not advance without completing
the previous phase. Resume non-terminal runs.
Quality Bar
Match Claude Code plugin / Codex skill output: same harness layout, namespace
packaging, --json, tests, and skill generation. Do not invent a different
harness format.
常见问题
主要的命令有哪些?
主要命令有 build、refine、test、validate 和 list,普通请求也会被匹配到这些命令。
它能找到已发布的工具吗?
不能,查找已发布的工具由另一个技能 CLI-Hub meta-skill 处理。
它需要 Cursor 吗?
需要,它以 Cursor 插件技能的形式打包。
详情
作者的原始描述
Build, refine, test, validate, or list CLI-Anything harnesses for GUI applications in Cursor. Prefer slash commands /cli-anything, /cli-anything-refine, /cli-anything-test, /cli-anything-validate, and /cli-anything-list when available. This skill supports natural-language discovery of the generator; it does not replace those commands. Discovering already-published CLIs from CLI-Hub is a separate consumer skill (cli-hub-meta-skill).
repo: HKUDS/CLI-Anything
热度
- GitHub 星标
- 58k
- 排名
- #3199
- 许可证
- Apache-2.0
- 更新时间
- 2026/9/21
评论
- …
同一仓库的更多技能
cli-anything-3mf
58k帮你的智能体检查和修复 3D 打印文件,包括查找圆孔、调整孔径、修复网格,以及比较两个文件。
cli-anything-qgis
58k帮你的智能体在终端中打开、编辑和导出 QGIS 地图项目,包括图层、要素、打印布局和处理工具。
cli-anything-adguardhome
58k帮你的智能体管理 AdGuard Home,这是一款全网络广告拦截器,可管理过滤规则、DNS 重写、客户端和查询日志。
cli-anything-anygen
58k帮你的智能体借助 AnyGen 服务,根据文字提示生成幻灯片、文档、网站和图表。