cli-anything
Fungsinya
Skill ini memandu agent AI dalam membuat antarmuka baris perintah untuk program yang biasanya berjalan dengan tombol dan jendela. Skill ini ditujukan untuk pengembang yang ingin agent mereka membangun alat seperti itu.
Kapan dipakai
- โSaat Anda ingin agent membuat versi baris perintah dari aplikasi desktop yang Anda gunakan.
- โSaat Anda memiliki proyek kode sumber dan ingin alat baris perintah dibuat untuknya.
- โSaat Anda ingin menguji dan memeriksa alat baris perintah yang dibangun agent.
Link skill
https://github.com/HKUDS/CLI-Anything/blob/main/reasonix-skill/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โSaya ingin membangun alat baris perintah untuk editor gambar GIMP agar agent saya dapat menggunakannya.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent membaca panduan metode, mempelajari aplikasi atau repositori, dan menulis kode Python untuk alat tersebut, termasuk pengujiannya. Lalu agent memeriksa bahwa alat itu berfungsi.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Dari mana metode ini berasal?
Skill mengarah ke panduan HARNESS.md di proyek CLI-Anything, baik dari salinan lokal maupun dari GitHub.
Apakah ia membutuhkan Reasonix untuk berjalan?
Skill ditulis sebagai adaptor untuk Reasonix, lingkungan agent tempat ia berjalan.
Apakah ini hanya untuk aplikasi grafis?
Tidak. Masukannya dapat berupa jalur sumber lokal atau repositori GitHub, sehingga juga berfungsi untuk proyek kode.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 58k
- Peringkat
- #3239
- Lisensi
- Apache-2.0
- Diperbarui
- 21/9/2026
Komentar
- โฆ
Skill lain dari repositori ini
cli-anything-3mf
58kMemungkinkan agent Anda memeriksa dan memperbaiki file cetak 3D, termasuk menemukan lubang bulat, mengubah ukurannya, memperbaiki mesh, dan membandingkan dua file.
cli-anything-qgis
58kMemungkinkan agent Anda membuka, mengedit, dan mengekspor proyek peta QGIS dari terminal, termasuk layer, fitur, tata letak cetak, dan alat pemrosesan.
cli-anything-adguardhome
58kMemungkinkan agent Anda mengelola AdGuard Home, pemblokir iklan untuk seluruh jaringan, termasuk filter, penulisan ulang DNS, klien, dan log kueri.
cli-anything-anygen
58kMemungkinkan agent Anda membuat slide, dokumen, situs web, dan diagram dari prompt tertulis menggunakan layanan AnyGen.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.