agentleFS
mirukymiruky/harness-sample/.agents/skills/add-cli-command/SKILL.md

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

  • Other versions4 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 4

    1. dotnet/sdk★ 3.2ksame name
    2. lbedner/aegis-stack★ 146same name
    3. james5101/jobtrack★ 2same name
    4. 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.

The file

Files
SKILL.md

CLIにコマンドやオプションを足す

入口から書き始めると、決まりごとが cli.py に入り込みやすい。内側から外側の順に進める。

手順

  1. 決まりごとが増えるなら src/booking/domain/ に書く。断る理由が増えるなら errors.py に BookingError の派生を足す。
  2. 操作を src/booking/service/booking_service.py のメソッドにする。現在時刻が要るなら self._clock.now() を使う。
  3. src/booking/cli.py に引数を足し、service を呼んで結果を表示する。cli.py には判定や集計を書かない。
  4. テストを足す。決まりごとは tests/test_service.py、表示と終了コードは tests/test_cli.py に置く。書き方は .claude/rules/tests.md にある。
  5. README.md の使い方と、CHANGELOG.md の「未リリース」に1行ずつ足す。
  6. make check を通す。

確かめること

  • 既存の予約ファイル(bookings.json)が、変更後もそのまま読めるか。保存する項目を変えたら .claude/rules/storage.md に従う。
  • 断るときは終了コード1で、理由を標準エラーに日本語で出しているか。
  • 複数の予約をまとめて作る操作は、1件でも断られたら1件も残していないか。

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.