复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-cli-anything-720f33233618 ,按照其中的说明把「cli-anything」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Build a complete, stateful CLI harness for any GUI application.
Target software: use the path or repo URL supplied with this command.
Cursor tools often resolve relative paths against the workspace root, not this plugin. Before anything else, resolve PLUGIN_ROOT using this order — stop at the first hit that contains references/HARNESS.md:
%USERPROFILE%\.cursor\cli-anything-generator.root~/.cursor/cli-anything-generator.root
Then use that directory as PLUGIN_ROOT.{candidate}/PLUGIN_ROOT.txt where candidate is:
%USERPROFILE%\.cursor\plugins\local\cli-anything / ~/.cursor/plugins/local/cli-anything$CURSOR_PLUGINS_HOME/local/cli-anything if the env var is set (Shell: printenv / $env:CURSOR_PLUGINS_HOME)candidate/references/HARNESS.md exists, use candidate.{workspace}/cli-anything-plugin for methodology (and still prefer an installed plugin when present).https://github.com/HKUDS/CLI-Anything and use cli-anything-plugin/.Always Read {PLUGIN_ROOT}/references/HARNESS.md with an absolute path. Also read {PLUGIN_ROOT}/references/commands/cli-anything.md. Use {PLUGIN_ROOT}/references/guides/ on demand. Do not use workspace-relative ./HARNESS.md.
| Cursor tool | Role in harness workflow |
|---|---|
| Read | Read HARNESS, guides, target source, generated files |
| Grep / Glob | Map APIs, locate entry points, inventory coverage |
| Shell | Clone repos, run pytest, pip install, invoke CLIs |
| Write / StrReplace | Implement harness modules, tests, packaging, docs |
| Task | Optional parallel analysis subtasks |
/home/user/gimp, ./blender)gimp) are NOT acceptedIf a GitHub URL is provided, clone locally first, then work on the local copy. Derive the software name from the directory name.
Progress file (create agent-harness/ as soon as tracking starts, even before full implementation):
{software-root}/agent-harness/.cli-anything-progress.json
Schema:
{
"software": "<name>",
"mode": "build",
"target": "<absolute software path>",
"phases": {
"0": { "status": "completed", "updated_at": "<ISO-8601>" },
"1": { "status": "in_progress", "updated_at": "<ISO-8601>" }
},
"terminal": false,
"terminal_status": null
}
Rules:
0 source acquisition through 7 packaging/install (same as HARNESS / Claude plugin).completed.completed and set the next to in_progress.terminal: true and terminal_status to success or failed only when the whole build mode finishes or aborts permanently.Implements the complete cli-anything methodology. All phases follow HARNESS.md.
agent-harness/ and initialize the progress file<SOFTWARE>.md)agent-harness/cli_anything/<software>/ with core, utils, Click CLI + REPL, --jsoncli_anything.<software>.*{PLUGIN_ROOT}/scripts/repl_skin.py (and preview helpers when applicable)TEST.md with unit, E2E, and workflow planstest_core.py, test_full_e2e.py, workflow tests, _resolve_cli("cli-anything-<software>")pytest -v --tb=no; append results to TEST.mdsetup.py with namespace packages; cli-anything-<software> console scriptpip install -e .; verify PATH; generate CLI-specific SKILL.md via {PLUGIN_ROOT}/scripts/skill_generator.py--json machine-readable output--dry-run per guidestest_core.py) + E2E (test_full_e2e.py) + installed-command subprocess coveragecli_anything.<software>, no top-level cli_anything/__init__.pyskill_generator.pyReport phases completed, harness path, test summary, install command, and resume state in agent-harness/.cli-anything-progress.json.