agentleFS
B16B1RDB16B1RD/bb-writ/skills/principle-subtract-before-you-add/SKILL.md

principle-subtract-before-you-add

Skill0 starsChanged 6 days agoMITView on GitHub

機能の追加・リファクタ・書き直しの順番を決めるときに適用する。使われないコード・重複した検証・中身の無い参照を先に消し、単純になった土台の上に足す。

52 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

足す前に削る

系を育てるときは、先に複雑さを取り除き、それから作る。既定は削る方。見つけたときより少し単純で、できることは同じか多い形を、同じか小さい表面で残す。

なぜ: 削った後の土台は読みやすく、足す変更も小さく済む。不要なものの上に足すと、不要なものとの整合まで保ち続けることになる。

適用する場面:

  • 新しい機能を入れる場所の近くに、使われていない関数・設定・分岐があるとき。
  • 書き直しや移行を始めるとき。
  • スキルや手引きの文に、重複した指示・中身の無い参照・長すぎる雛形があるとき。

やること:

  • 順番を、削る → 作る、にする。削るだけの commit を先に置く。
  • 磨く前に切る。最小の形に達してから、品質に手をかける。
  • 実際の使われ方に合わせて作る。仕様が求める以上の検証・解析器・防御を足さない。新しい内容の無い参照は、空の見出しを残さずに消す。

使わないとき: 消す対象がまだ使われている場合。呼び出し元を移してから消す(principle-no-speculative-structure の旧 API の扱い)。

確かめる例: 最初の commit が削除で、機能の commit がそれに続く。変更の後で、ファイルや公開する関数の数が増えていない。増えたなら理由が書いてある。

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.