cli-anything
Что он делает
Этот скилл помогает ИИ-агенту создать интерфейс командной строки для программы, которая обычно работает с кнопками и окнами. Он нужен разработчикам, которые хотят, чтобы их агент создавал такие инструменты.
Когда использовать
- ✓Когда вы хотите, чтобы агент сделал версию командной строки для десктопного приложения, которым вы пользуетесь.
- ✓Когда у вас есть проект с исходным кодом и нужен инструмент командной строки для него.
- ✓Когда вы хотите протестировать и проверить инструмент командной строки, который создал агент.
Ссылка на скилл
https://github.com/HKUDS/CLI-Anything/blob/main/reasonix-skill/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Создай инструмент командной строки для редактора изображений GIMP, чтобы мой агент мог им пользоваться.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент читает руководство по методике, изучает приложение или репозиторий и пишет код инструмента на Python, включая тесты. Затем он проверяет, что инструмент работает.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
CLI-Anything for Reasonix
Use this skill when the user wants Reasonix to act like the CLI-Anything builder.
Before implementation, use the full methodology source of truth when available:
- If the current workspace is the
CLI-Anythingrepository, readcli-anything-plugin/HARNESS.md. - If Reasonix is running from this adapter directory, also check
../cli-anything-plugin/HARNESS.md. - If neither local file is available, clone or download
cli-anything-pluginfromhttps://github.com/HKUDS/CLI-Anything/tree/main/cli-anything-plugin, then useHARNESS.mdand the resources around it from that folder. - Only if local and network retrieval both fail, follow the condensed rules below.
Inputs
Accept either:
- A local source path such as
./gimpor/path/to/software - A GitHub repository URL
Derive the software name from the local directory name after cloning if needed.
Reasonix Tool Bindings
Reasonix agents build harnesses by combining these built-in tools:
| Reasonix Tool | Role in Harness Workflow |
|---|---|
bash |
Run shell commands, install packages, execute CLI tools, run tests, clone repos |
write_file |
Generate Python files (Click CLI, backend modules, tests, setup.py) |
edit_file |
Make targeted edits to generated code (single replacement) |
multi_edit |
Apply multiple atomic edits to a single file in one pass |
read_file |
Read target software source files, existing harness code, test results |
grep |
Search for patterns across the target software codebase (APIs, CLI tools, data models) |
glob |
Find files matching patterns in the source tree (*.py, *.xml, *.json, etc.) |
ls |
List directory contents to understand project structure |
mcp__codegraph__search / mcp__codegraph__context |
Optional code graph analysis when CodeGraph is enabled (Reasonix strips the codegraph_ raw prefix, so the model-visible names omit it) |
web_fetch |
Fetch documentation, API references, or remote files from the web |
Recommended Workflow with Reasonix Tools
Phase 1 (Analysis) — Use ls + glob to survey the source tree, grep to find API surfaces and CLI entry points, and read_file to inspect key files. When CodeGraph is enabled and its tools are available, use mcp__codegraph__search and mcp__codegraph__context for deeper symbol and architecture analysis.
Phase 2-3 (Design & Implementation) — Use write_file to create new harness files, edit_file / multi_edit to refine generated code, and bash to run pip install -e . for installation.
Phase 4-6 (Testing) — Use bash to run pytest and capture results, read_file to inspect test output, and write_file to update TEST.md.
Phase 7 (Packaging) — Use write_file for setup.py, bash for pip install -e . and which cli-anything-<software> verification.
Step Budget
A full harness build typically requires 25–40 tool-call rounds (architecture inspection, 10+ file writes, installation, and multiple test runs). When invoked via run_skill, the subagent inherits a step budget derived from the parent agent's agent.max_steps setting in reasonix.toml:
- If
max_steps = 0(the default, meaning unlimited), the subagent also runs with no step cap — this is the recommended configuration for the CLI-Anything workflow. - If
max_stepsis set to a finite value, the subagent receives half that budget (minimum 5), which may truncate a complex build before completion.
Users who have configured a finite max_steps should ensure it is set to 0 or a sufficiently high value (e.g., 64 or more) before running a CLI-Anything build, so the subagent has enough rounds to complete all seven phases.
Modes
Build
Use when the user wants a new harness.
Produce this structure:
<repo-root>/
├── skills/
│ └── cli-anything-<software>/
│ └── SKILL.md
└── <software>/
└── agent-harness/
├── <SOFTWARE>.md
├── setup.py
└── cli_anything/
└── <software>/
├── README.md
├── __init__.py
├── __main__.py
├── <software>_cli.py
├── core/
├── utils/
├── tests/
└── skills/
└── SKILL.md
Implement a stateful Click CLI with:
- one-shot subcommands
- REPL mode as the default when no subcommand is given
--jsonmachine-readable output- session state
Частые вопросы
Откуда берётся методика?
Скилл ссылается на руководство HARNESS.md в проекте CLI-Anything, либо из локальной копии, либо с GitHub.
Нужен ли Reasonix для работы?
Скилл написан как адаптер для Reasonix, среды агента, в которой он работает.
Он только для графических приложений?
Нет. На входе можно указать локальный путь к исходному коду или репозиторий GitHub, поэтому он работает и с проектами кода.
Подробности
Оригинальное описание автора
Use when the user wants Reasonix to build, refine, test, or validate a CLI-Anything harness for a GUI application or source repository. Adapts the CLI-Anything methodology to Reasonix without changing the generated Python harness format.
repo: HKUDS/CLI-Anything
Популярность
- Звёзды на GitHub
- 58k
- Место в рейтинге
- #3239
- Лицензия
- Apache-2.0
- Обновлён
- 21.09.2026
Комментарии
- …
Другие скиллы из этого репозитория
cli-anything-3mf
58kПозволяет агенту проверять и исправлять файлы для 3D-печати: находить круглые отверстия, менять их размер, чинить сетки и сравнивать два файла.
cli-anything-qgis
58kПозволяет агенту открывать, редактировать и экспортировать карты QGIS из терминала: слои, объекты, макеты печати и инструменты обработки.
cli-anything-adguardhome
58kПозволяет агенту управлять AdGuard Home, блокировщиком рекламы для всей сети, включая фильтры, переписывание DNS, клиентов и журналы запросов.
cli-anything-anygen
58kПозволяет агенту создавать слайды, документы, сайты и диаграммы по текстовому запросу с помощью сервиса AnyGen.
Похожие скиллы
diffs
394kПозволяет агенту создать настоящее сравнение правок в виде ссылки или файла изображения, которым можно поделиться, вместо ручной сводки.
coding-agent
394kПомогает агенту передать большую задачу по коду в Codex, Claude Code или OpenCode как фоновому исполнителю, а затем проверять ее ход.
gh-issues
394kПомогает агенту находить задачи GitHub, выбирать, над какими работать, и открывать запросы на слияние с исправлениями, включая ответы на комментарии рецензентов.