cli-anything
できること
このスキルは、Codexがグラフィカルなアプリやソースリポジトリ向けのコマンドラインハーネスを作成できるよう案内します。AIエージェントにソフトウェアをコマンドラインで操作させたい開発者向けです。
使う場面
- ✓デスクトップアプリ向けのコマンドラインインターフェースを作りたいとき。
- ✓既存のコマンドラインハーネスに新しい機能を追加したいとき。
- ✓ハーネスをテストし、品質ルールに照らして確認したいとき。
スキルのリンク
https://github.com/HKUDS/CLI-Anything/blob/main/codex-skill/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“Inkscapeアプリのソースからコマンドラインハーネスを作成し、テストしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルはCLI-Anythingの手法を読み込み、その手順に従ってPythonのコマンドラインツールを計画、作成、テストします。生成される形式は、コレクションの他のものと統一されます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
CLI-Anything for Codex
Use this skill when the user wants Codex to act like the CLI-Anything builder.
Read the Full Methodology First
Before implementation, use the full methodology source of truth:
- Read
references/HARNESS.mdrelative to this skill directory. - Read the matching mode specification under
references/commands/. - Read referenced files under
references/guides/only when they apply to the target. - If the installed resources are unavailable and this skill is being used from a
CLI-Anythingrepository checkout, read../cli-anything-plugin/HARNESS.mdand the resources around it. - If neither local source is available, clone or download
https://github.com/HKUDS/CLI-Anythingand usecli-anything-plugin/HARNESS.md. - Only if all full-methodology sources are unavailable, follow the condensed rules below.
The installer vendors the canonical resources from cli-anything-plugin/ into this
skill so a normal Codex installation is self-contained.
Resource Map
| Path | Purpose |
|---|---|
references/HARNESS.md |
Complete methodology and quality rules |
references/commands/cli-anything.md |
Build-mode specification |
references/commands/refine.md |
Refine-mode specification |
references/commands/test.md |
Test-mode specification |
references/commands/validate.md |
Validation checklist |
references/commands/list.md |
Installed/generated harness discovery |
references/guides/ |
On-demand implementation guidance |
scripts/repl_skin.py |
Copy into generated harnesses as utils/repl_skin.py |
scripts/preview_bundle.py |
Copy into preview-capable harnesses as utils/preview_bundle.py |
scripts/skill_generator.py |
Generate canonical and packaged CLI skills |
scripts/templates/SKILL.md.template |
Skill generation template used by skill_generator.py |
references/docs/PREVIEW_PROTOCOL.md |
Shared preview bundle protocol |
When reading vendored documents, apply these path remappings instead of resolving plugin paths against the current working directory:
| Document reference | Installed skill path |
|---|---|
guides/... |
references/guides/... |
cli-anything-plugin/repl_skin.py |
scripts/repl_skin.py |
cli-anything-plugin/preview_bundle.py |
scripts/preview_bundle.py |
cli-anything-plugin/skill_generator.py |
scripts/skill_generator.py |
templates/SKILL.md.template |
scripts/templates/SKILL.md.template |
docs/PREVIEW_PROTOCOL.md |
references/docs/PREVIEW_PROTOCOL.md |
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.
Modes
Build
Read references/commands/cli-anything.md. Build a complete harness through source
analysis, architecture design, implementation, test planning, test implementation,
test documentation, CLI-specific SKILL.md generation, and local installation.
Refine
Read references/commands/refine.md. Inventory current commands and tests, compare
them against the target software, then incrementally add high-impact capabilities
without removing existing commands unless the user requests a breaking change.
Test
Read references/commands/test.md. Run the harness tests against the real backend,
verify installed-command subprocess coverage, and update TEST.md only with passing
results.
Validate
Read references/commands/validate.md. Validate the harness against the complete
directory, implementation, test, documentation, packaging, and code-quality checklist.
List
Read references/commands/list.md. Discover installed and generated CLI-Anything tools
and support human-readable or JSON output as requested.
Condensed Fallback Rules
Use these only when the full methodology cannot be retrieved.
Harness Structure
Produce:
<software>/
└── agent-harness/
├── <SOFTWARE>.md
├── setup.py
└── cli_anything/
└── <software>/
├── README.md
├── __init__.py
├── __main__.py
├── <software>_cli.py
├── core/
├── utils/
└── tests/
Required Behavior
- Prefer the real software backend over reimplementation.
- Provide one-shot Click subcommands and default REPL mode.
- Support
--jsonmachine-readable output. - Add session state with undo/redo where t
よくある質問
手法はどこから来ますか?
スキルに同梱されたファイルから完全な手法を読み込みます。利用できる場合は、CLI-Anythingのチェックアウトやダウンロードから読み込みます。
何を作成できますか?
GUIアプリケーションやソースリポジトリ向けのハーネスを作成できます。
既存のツールを一覧表示できますか?
はい。すでに存在するハーネスを一覧表示できます。
詳細
作者による元の説明
Use when the user wants Codex to build, refine, test, validate, or list CLI-Anything harnesses for GUI applications or source repositories. Adapts the full CLI-Anything methodology to Codex without changing the generated Python harness format.
repo: HKUDS/CLI-Anything
人気
- GitHubのスター
- 58k
- ランキング
- #3197
- ライセンス
- Apache-2.0
- 更新日
- 2026/9/21
コメント
- …
このリポジトリの他のスキル
cli-anything-3mf
58kエージェントが3Dプリントのファイルを調べて直せるようにします。丸い穴を見つける、そのサイズを変える、メッシュを修復する、2つのファイルを比べることができます。
cli-anything-qgis
58kエージェントがターミナルからQGISのマッププロジェクトを開き、編集し、書き出せるようにします。レイヤー、フィーチャー、印刷レイアウト、処理ツールを含みます。
cli-anything-adguardhome
58kエージェントがAdGuard Homeを管理できるようにします。AdGuard Homeはネットワーク全体で広告を遮断するツールで、フィルター、DNSの書き換え、クライアント、クエリのログを扱います。
cli-anything-anygen
58kエージェントが、AnyGenのサービスを使って、書かれたプロンプトからスライド、文書、ウェブサイト、図を生成できるようにします。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。