cli-anything-hermes — скилл для Claude Code: оборачивать GUI в CLI
Скилл cli-anything-hermes для Hermes агента в Claude Code, который строит CLI-обёртки над графическими приложениями и репозиториями. Оборачивает любое ПО в командную строку с состоянием, undo/redo и JSON-выводом.
Apache-2.0 314 установок ★ 62 125 обновлён 2026-09-22
npx skills add HKUDS/CLI-Anything --skill cli-anything-hermes -a claude-codeЧто делает cli-anything-hermes
Hermes агент анализирует архитектуру целевого ПО, проектирует иерархию команд и генерирует Python-harness на Click с REPL-режимом по умолчанию, статefulness и поддержкой отката. Harness оборачивает реальный бекэнд (CLI или скриптовый интерфейс целевого ПО), не переписывает его.
В режиме Build скилл создаёт структуру проекта с setup.py, тестами и документацией. В режиме Refine анализирует существующий harness и добавляет недостающие команды без удаления старых. Режимы Test и Validate проверяют namespace-пакет, entry points, JSON-вывод и REPL-путь. Требует локального доступа к исходникам целевого ПО — клонирует из GitHub или работает с папкой на диске.
Какие задачи решает
- обернуть графическое приложение в CLI для агентов
- сгенерировать Click-приложение с поддержкой состояния и undo
- добавить недостающие команды в существующий harness
- написать тесты для CLI-обёртки
- проверить, что harness соответствует стандартам CLI-Anything
Примеры запросов агенту
- Герой, постройте harness для GIMP, читай
../cli-anything-plugin/HARNESS.mdи создайте структуру с Click CLI и тестами - Герой, добавьте в harness для Figma команды для работы с фреймами и компонентами, проведите gap analysis
- Герой, напишите тесты для harness Blender, покройте core и e2e workflows, запустите через
cli-anything-blender
Как установить cli-anything-hermes
1Через Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-hermes -a claude-code2Вручную: положить файлы
~/.claude/skills/hermes-skill/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/hermes-skill/
1Через Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-hermes -a codex2Вручную: положить файлы
.agents/skills/hermes-skill/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-hermes -a cursor2Вручную: положить файлы
.cursor/skills/hermes-skill/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install HKUDS/CLI-Anything hermes-skill2Вручную: положить файлы
.github/skills/hermes-skill/SKILL.md1Через Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-hermes -a gemini-cli2Командой платформы
gemini skills install https://github.com/HKUDS/CLI-Anything --path hermes-skillВручную: положить файлы
.devin/skills/hermes-skill/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-hermes -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о cli-anything-hermes
Как установить cli-anything-hermes в Claude Code?
Выполните npx skills add HKUDS/CLI-Anything --skill cli-anything-hermes -a claude-code, затем установите hermes-skill: npx skills add HKUDS/CLI-Anything --skill hermes-skill -a claude-code. Профиль скилла откроется в ~/.claude/skills/hermes-skill/SKILL.md.
Что делает cli-anything-hermes?
Учит Hermes агента строить CLI-обёртки над GUI-приложениями. Анализирует архитектуру ПО, генерирует Click-команды с состоянием, undo/redo и JSON-выводом, пишет тесты и документацию.
Нужны ли мне исходники целевого приложения?
Да, скилл требует локального доступа к исходникам — либо клонированием из GitHub, либо существующей папкой на диске. Он анализирует архитектуру и оборачивает реальный бекэнд приложения, не переписывает его.
Исходный текст
SKILL.md · Apache-2.0
---
name: cli-anything-hermes
description: Use when the user wants Hermes Agent to build, refine, test, or validate a CLI-Anything harness for a GUI application or source repository. Adapts the CLI-Anything methodology to Hermes without changing the generated Python harness format.
---
# CLI-Anything for Hermes Agent
Use this skill when the user wants Hermes Agent to act like the `CLI-Anything` builder.
Before implementation, use the full methodology source of truth when available:
1. If this skill is being used from inside the `CLI-Anything` repository, read `../cli-anything-plugin/HARNESS.md` first.
2. If that local file is unavailable, clone or download `cli-anything-plugin` from `https://github.com/HKUDS/CLI-Anything/tree/main/cli-anything-plugin`, then use `HARNESS.md` and the resources around it from that folder.
3. Only if both local and network retrieval fail, follow the condensed rules below.
## Inputs
Accept either:
- A local source path such as `./gimp` or `/path/to/software`
- A GitHub repository URL
Derive the software name from the local directory name after cloning if needed.
## Hermes Tool Bindings
Hermes agents build harnesses by combining these built-in tools:
| Tool | Role in Harness Workflow |
|------|--------------------------|
| `terminal` | Run shell commands, install packages, execute CLI tools, run tests |
| `execute_code` | Generate and write Python files (Click CLI, backend modules, tests) |
| `delegate_task` | Parallelize analysis or generation subtasks |
| `read_file` / `write_file` | Read and write harness source files |
| `patch` | Make targeted edits to generated code |
Consult the [Hermes Agent documentation](https://github.com/NousResearch/hermes-agent) for the exact tool invocation syntax.
## Modes
### Build
Use when the user wants a new harness.
Produce this structure:
```text
<software>/
└── agent-harness/
├── <SOFTWARE>.md
├── setup.py
└── cli_anything/
└── <software>/
├── README.md
├── __init__.py
├── __main__.py
├── <software>_cli.py
├── core/
├── utils/
└── tests/
```
Implement a stateful Click CLI with:
- one-shot subcommands
- REPL mode as the default when no subcommand is given
- `--json` machine-readable output
- session state with undo/redo where the target software supports it
### Refine
Use when the harness already exists.
First inventory current commands and tests, then do gap analysis against the target software. Prefer:
- high-impact missing features
- easy wrappers around existing backend APIs or CLIs
- additions that compose well with existing commands
Do not remove existing commands unless the user explicitly asks for a breaking change.
### Test
Plan tests before writing them. Keep both:
- `test_core.py` for unit coverage
- `test_full_e2e.py` for workflow and backend validation
When possible, test the installed command via subprocess using `cli-anything-<software>` rather than only module imports.
### Validate
Check that the harness:
- uses the `cli_anything.<software>` namespace package layout
- has an installable `setup.py` entry point
- supports JSON output
- has a REPL default path
- documents usage and tests
## Backend Rules
Prefer the real software backend over reimplementation. Wrap the actual executable or scripting interface in `utils/<software>_backend.py` when possible. Use synthetic reimplementation only when the project explicitly requires it or no viable native backend exists.
## Packaging Rules
- Use `find_namespace_packages(include=["cli_anything.*"])`
- Keep `cli_anything/` as a namespace package without a top-level `__init__.py`
- Expose `cli-anything-<software>` through `console_scripts`
## Workflow
1. Acquire the source tree locally (clone or use existing path).
2. Analyze architecture, data model, existing CLIs, and GUI-to-API mappings.
3. Design command groups and state model.
4. Implement the harness.
5. Write `TEST.md`, then tests, then run them.
6. Update README usage docs.
7. Verify local installation with `pip install -e .`
## Existing Harnesses (Reference)
For an up-to-date list of supported harnesses and their backend patterns, see [`registry.json`](../registry.json) at the repository root.
## Output Expectations
When reporting progress or final results, include:
- target software and source path
- files added or changed
- validation commands run
- open risks or backend limitations
© HKUDS · Apache-2.0 · HKUDS/CLI-Anything