agentleFS
B16B1RDB16B1RD/bb-writ/skills/principle-route-lessons/SKILL.md

principle-route-lessons

Skill0 starsChanged 6 days agoMITView on GitHub

失敗や訂正から得た知見をどこに残すか決めるときに適用する。ワークフロー自身の知見は機構(検査・型・スクリプト・手引き)へ、対象のドメインの知見は対象のリポジトリへ。文書に書くだけで済ませない。

The file

Files
SKILL.md

知見のルーティング

知見は、効く場所に置く。bb-writ 自身の振る舞いや手引きの知見は、製品の機構(検査・型・スクリプト・手引きの文)に組み込む。対象のドメインの知見(そのリポジトリの事実・経験則)は、対象のリポジトリ(README・テスト・lint・コード)に置く。別の記憶の置き場(Wiki・ノート)に留めない。

なぜ: 読まれるだけの文は「思い出させる」が「強制しない」。ループの振る舞いの知見は、文として置くと不活性になる(cc-rite-workflow で実測)。コードベースが記憶であり、そこに置いた知見だけが次の実行で効く。

適用する場面:

  • 同じ訂正を 2 回受けたとき。
  • 「次回のために注意書きを足そう」と思ったとき。
  • 対象固有の落とし穴(環境・データの癖)を見つけたとき。

やること:

  • 製品の知見は、作り(誤りようの無い設計)→ 型 → lint・CI → テスト → 手引きの文、の順で強い形へ(principle-encode-lessons-in-structure)。
  • 対象の知見は、対象のリポジトリの既存の置き場(README・テスト・CI)に、その言葉で。
  • 環境に固有の知見は、一般化できれば製品へ、できなければ対象側へ。配布先で意味の無い知見を製品に留めない。

使わないとき: 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.