跳到正文
Skillpedia
通用编程58k · #3199

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/HKUDS/CLI-Anything/blob/main/cursor-plugin/skills/cli-anything-generator/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Resolve PLUGIN_ROOT via discovery pointer then stamp:
    • ~/.cursor/cli-anything-generator.root / %USERPROFILE%\.cursor\cli-anything-generator.root
    • {install}/PLUGIN_ROOT.txt
    • default ~/.cursor/plugins/local/cli-anything if references/HARNESS.md exists there
  2. Read {PLUGIN_ROOT}/references/HARNESS.md with an absolute path.
  3. Read the matching file under {PLUGIN_ROOT}/references/commands/.
  4. Use guides under {PLUGIN_ROOT}/references/guides/ on demand.
  5. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能