agentleFS
B16B1RDB16B1RD/bb-writ/skills/principle-encode-lessons-in-structure/SKILL.md

principle-encode-lessons-in-structure

Skill0 starsChanged 6 days agoMITView on GitHub

同じ指示を 2 回目に書こうとしたとき、同じ訂正が繰り返されたときに適用する。文を足す代わりに、lint・メタデータの印・実行時の検査・スクリプトにする。

54 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use principle-explain-the-number, setup-pstack and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ianclearySkill

    principle-explain-the-number

    Apply before you trust, report, or act on a number you measured: a speedup, a regression, a throughput, a latency, or an eval result. Find what limits it, and rule out that it measured something other than the work you think.

    Also in 29 projects that use this

  • bnemaSkill

    setup-pstack

    Configure which Pi models pstack uses per role. Detects available provider/model specs and writes pstack's user configuration. Use for /setup-pstack, "configure pstack models", or changing pstack model choices.

    Also in 25 projects that use this

  • ianclearySkill

    poteto-help

    Guides users through pstack setup, /poteto-mode, and picking the skill, playbook, or principle for a task. Type /poteto-help with a question.

    Also in 14 projects that use this

  • eryzerzSkill

    make-bot-ui

    Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or when exposing that UI on Tailscale.

    Also in 18 projects that use this

  • tristanphvnSkill

    ketchup-video

    Catch the user up like /keel:ketchup, with a short silent video of slides for what happened and the waiting calls as text under it. Use for /keel:ketchup-video.

    Also in 10 projects that use this

  • drafaelSkill

    in-your-own-words

    Restate the user's goals and the problem they are trying to solve to check understanding. Manual invocation only; use when the user explicitly invokes in-your-own-words or requests this understanding check. Do not solve the task or rewrite the assistant's last answer.

    Also in 20 projects that use this

The file

Files
SKILL.md

教訓は構造に組み込む

繰り返す教訓は、文でなく構造(lint・メタデータの印・実行時の検査・スクリプト)にする。構造で直せるなら、構造だけで直す。指示の文は症状。

なぜ: 文は読まれたときにしか効かず、効くかは読み手の判断に任される。構造は毎回、誰に対しても効く。同じ指示を 2 回書くのは、1 回目の文が効いていない証拠。

適用する場面:

  • 手引きやスキルに、前と同じ注意書きを足そうとしたとき。
  • レビューや訂正で、同じ指摘を 2 回受けたとき。
  • 「次は気を付ける」と報告に書こうとしたとき。

やること:

  • 強い形から選ぶ。作り(誤りようの無い設計)→ 型 → lint・CI → 試験 → 手引きの文、の順に見て、効く最初の形にする。メタデータの印は、frontmatter の項目のように機械が読める場所に置く。
  • 構造で塞いだら、同じ内容の文は足さない。既にある文は消すか、構造への参照にする。
  • 判断が要って構造にできない教訓は、指示を目立つ場所に移し、失敗の実例を 1 つ添える。

使わないとき: 1 回だけの出来事。どこに置くか(製品か、対象のリポジトリか)は principle-route-lessons で決める。

確かめる例: 訂正の後の差分に、検査・型・スクリプトのどれかがあり、同じ内容の注意書きが増えていない。

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.