agentleFS
requierequie/endostack/skills/principle-redesign-from-first-principles/SKILL.md

principle-redesign-from-first-principles

Skill4 starsChanged 15 days agoMITView on GitHub

Use when a new requirement has to fit into an existing design. Rework the design as though the requirement had been there from the beginning, and carry it into every type, doc, and example, instead of attaching it at the side.

46 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-pstack, poteto-help and 3 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.
  • 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

  • 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

  • JoshueOsunaSkill

    Poteto Mode

    poteto's agent style for concise, detailed responses, deliberate subagents, unslopped prose, simple code, and verified work. Use for poteto, /poteto-mode, or requests to work in this style.

    Also in 3 projects that use this

  • instructureSkill

    ketchup

    Rebuild context after /clear by analyzing uncommitted changes across Canvas LMS and all plugin repositories

    Also in 18 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 46 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read every affected file and understand the current design before changing it.

    line 17
  2. Distinctive:

    Ask what you would build from scratch if this requirement had been there on day one.

    line 18

“Common” is measured: kept by at least 6 in 10 of the 46 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Redesign from first principles

Rework the design so that a new requirement looks like it was there from day one. Bolting it onto the side of the existing structure is the failure this principle prevents.

When it applies

Fitting a new requirement into a design that already exists. Compare principle-attack-the-premise, which challenges a factual belief behind a string of failed fixes.

What to do

  1. Read every affected file and understand the current design before changing it.
  2. Ask what you would build from scratch if this requirement had been there on day one.
  3. Carry the change into everything that refers to the old design: types, documentation, examples, and the rationale sections explaining why the design looks the way it does.
  4. Plan the complete redesign, then deliver it in verifiable increments (principle-sequence-verifiable-units).

An example. A single-tenant agent platform gains a requirement for multi-tenancy. Bolting it on means adding a tenant_id parameter to the functions that happened to break, and every query that was missed becomes a cross-tenant data leak. Redesigning means asking how the system would look if tenants had existed from the start: a tenant is part of every request context, storage is scoped by tenant at the data access layer, and no query can be written without one. The second design makes the leak impossible to write. The first only makes it less common.

The failure it prevents

Features bolted on in ways that distort the design, and docs and examples that still describe the old world.

Done when

The design reads as if the requirement was always there.

Related: principle-foundational-thinking, principle-attack-the-premise, principle-sequence-verifiable-units.

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.