add-cli-command
Skill0 starsChanged yesterdayMITView on GitHub
booking のCLIにサブコマンドやオプションを足すときの手順。「コマンドを追加して」「オプションを足して」「CLIで〜できるようにして」と頼まれたら使う。
4 other projects use a version of this.
Adopted by
Most recently taken up by
- GCarin1/Doctrinatheir own version, first seen Nov 8, 2026
- james5101/jobtracktheir own version, first seen Oct 11, 2026
- lbedner/aegis-stacktheir own version, first seen Oct 8, 2026
- dotnet/sdktheir own version, first seen Oct 8, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- dotnet/sdk★ 3.2ksame name
- lbedner/aegis-stack★ 146same name
- james5101/jobtrack★ 2same name
- GCarin1/Doctrina★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- harness-retroSkill
- sync-specsSkill
- write-adrSkill
The file
Files
CLIにコマンドやオプションを足す
入口から書き始めると、決まりごとが cli.py に入り込みやすい。内側から外側の順に進める。
手順
- 決まりごとが増えるなら
src/booking/domain/に書く。断る理由が増えるならerrors.pyにBookingErrorの派生を足す。 - 操作を
src/booking/service/booking_service.pyのメソッドにする。現在時刻が要るならself._clock.now()を使う。 src/booking/cli.pyに引数を足し、service を呼んで結果を表示する。cli.pyには判定や集計を書かない。- テストを足す。決まりごとは
tests/test_service.py、表示と終了コードはtests/test_cli.pyに置く。書き方は.claude/rules/tests.mdにある。 README.mdの使い方と、CHANGELOG.mdの「未リリース」に1行ずつ足す。make checkを通す。
確かめること
- 既存の予約ファイル(
bookings.json)が、変更後もそのまま読めるか。保存する項目を変えたら.claude/rules/storage.mdに従う。 - 断るときは終了コード1で、理由を標準エラーに日本語で出しているか。
- 複数の予約をまとめて作る操作は、1件でも断られたら1件も残していないか。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

