cli-anything
Was er macht
Diese Fähigkeit leitet einen KI-Agenten an, eine Kommandozeilenschnittstelle für ein Programm zu bauen, das sonst mit Schaltflächen und Fenstern läuft. Sie ist für Entwickler gedacht, die ihren Agenten solche Werkzeuge bauen lassen möchten.
Wann du ihn nutzt
- ✓Wenn du möchtest, dass ein Agent eine Kommandozeilenversion einer Desktop-App baut, die du nutzt.
- ✓Wenn du ein Quellcode-Projekt hast und ein Kommandozeilenwerkzeug dafür bauen lassen möchtest.
- ✓Wenn du ein Kommandozeilenwerkzeug testen und prüfen möchtest, das ein Agent gebaut hat.
Link zum Skill
https://github.com/HKUDS/CLI-Anything/blob/main/reasonix-skill/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Ich möchte ein Kommandozeilen-Werkzeug für den Bildbearbeiter GIMP bauen, damit mein Agent es nutzen kann.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent liest den Methodenleitfaden, untersucht die App oder das Repository und schreibt Python-Code für das Werkzeug, einschließlich Tests. Danach prüft er, ob das Werkzeug funktioniert.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
Häufige Fragen
Woher stammt die Methode?
Die Fähigkeit verweist auf die Datei HARNESS.md im CLI-Anything-Projekt, entweder aus einer lokalen Kopie oder von GitHub.
Braucht sie Reasonix, um zu laufen?
Die Fähigkeit ist als Adapter für Reasonix geschrieben, die Agentenumgebung, in der sie läuft.
Ist sie nur für grafische Apps?
Nein. Ihre Eingaben können ein lokaler Quellpfad oder ein GitHub-Repository sein, sie funktioniert also auch mit Code-Projekten.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 58k
- Platz im Ranking
- #3239
- Lizenz
- Apache-2.0
- Aktualisiert
- 21.9.2026
Kommentare
- …
Weitere Skills aus diesem Repository
cli-anything-3mf
58kLässt deinen Agenten 3D-Druckdateien prüfen und korrigieren, einschließlich Runder Löcher finden, sie in der Größe anpassen, Netze reparieren und zwei Dateien vergleichen.
cli-anything-qgis
58kLässt deinen Agenten QGIS-Kartenprojekte im Terminal öffnen, bearbeiten und exportieren, einschließlich Ebenen, Objekten, Druck-Layouts und Verarbeitungswerkzeugen.
cli-anything-adguardhome
58kLässt deinen Agenten AdGuard Home verwalten, einen netzwerkweiten Werbeblocker, einschließlich Filtern, DNS-Umschreibungen, Clients und Abfrageprotokollen.
cli-anything-anygen
58kLässt deinen Agenten Folien, Dokumente, Websites und Diagramme aus einem geschriebenen Auftrag mit dem Dienst AnyGen erzeugen.
Ähnliche Skills
diffs
394kLässt deinen Agenten einen echten, teilbaren Diff seiner Änderungen als Viewer-Link oder Bilddatei erstellen, statt einer handgeschriebenen Zusammenfassung.
coding-agent
394kHilft deinem Agenten, eine größere Programmieraufgabe als Hintergrund-Worker an Codex, Claude Code oder OpenCode zu übergeben und danach den Fortschritt zu prüfen.
gh-issues
394kHilft deinem Agenten, GitHub-Issues zu finden, die zu bearbeitenden auszuwählen und Pull Requests mit Korrekturen zu öffnen, einschließlich der Nacharbeit an Review-Kommentaren.