复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-cli-anything-cb37d7e6bd5c ,按照其中的说明把「refine」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Refine an existing CLI harness to improve coverage of the software's functions and usage patterns.
Before refining, read ./HARNESS.md. All new commands and tests must follow the same standards as the original build. HARNESS.md is the single source of truth for architecture, patterns, and quality requirements.
/cli-anything:refine <software-path> [focus]
<software-path> - Required. Local path to the software source code (e.g., /home/user/gimp, ./blender). Must be the same source tree used during the original build.
Note: Only local paths are accepted. If you need to work from a GitHub repo, clone it first with /cli-anything, then refine.
[focus] - Optional. A natural-language description of the functionality area to focus on. When provided, the agent skips broad gap analysis and instead targets the specified capability area.
Examples:
/cli-anything:refine /home/user/shotcut "vid-in-vid and picture-in-picture features"/cli-anything:refine /home/user/gimp "all batch processing and scripting filters"/cli-anything:refine /home/user/blender "particle systems and physics simulation"/cli-anything:refine /home/user/inkscape "path boolean operations and clipping"When [focus] is provided:
This command is used after a CLI harness has already been built with /cli-anything. It analyzes gaps between the software's full capabilities and what the current CLI covers, then iteratively expands coverage. If a [focus] is given, the agent narrows its analysis and implementation to that specific functionality area.
<software>_cli.py) and all core modules{ function_name: covered | not_covered }<software-path>--json output supporthandle_errorcore/ or utils/test_core.pytest_full_e2e.pyREADME.md with new commands and usage examplesTEST.md with new test results<SOFTWARE>.md) with new coverage notes# Broad refinement — agent finds gaps across all capabilities
/cli-anything:refine /home/user/gimp
# Focused refinement — agent targets a specific functionality area
/cli-anything:refine /home/user/shotcut "vid-in-vid and picture-in-picture compositing"
/cli-anything:refine /home/user/gimp "batch processing and Script-Fu filters"
/cli-anything:refine /home/user/blender "particle systems and physics simulation"
/cli-anything:refine /home/user/inkscape "path boolean operations and clipping masks"