agentleFS
B16B1RDB16B1RD/bb-writ/skills/principle-laziness-protocol/SKILL.md

principle-laziness-protocol

Skill0 starsChanged 6 days agoMITView on GitHub

差分の大きさを見直すとき、リファクタのとき、抽象・層・引数の引き回しを足したくなったときに適用する。削る方へ寄せ、問題を解く最小の変更にする。

51 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 30 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 19 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 11 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

最小の変更で解く

問題を解く最小の変更をする。同じ判断を何か所でも繰り返さず、1 か所で決めて、結果を単純な値(フラグ)で渡す。少ない行は、整って見える定型より価値がある。

なぜ: 差分が小さいほど、読み手が確かめる範囲が狭く、誤りの入る余地も小さい。同じ判断が散らばると、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.