/principles:principlesfrom principles
Named engineering principles (prove it works, fix root causes, subtract before you add, build the lever, and 20 more) that steer how an agent designs, builds and verifies. Use when a task or the user names a principle, when beau-mode tells you to apply one, or when deciding how much to build, where state and validation live, or what counts as proof.
Ships in principles. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Each principle is one short rule with a trigger. They exist so that a person can steer an agent with a name ("apply prove it works") and so that an agent can say exactly which rule changed which decision.
references/<id>.md. The index line is a reminder, not the rule.Groups: core (how much to build, when to rethink), architecture (where state, validation and compatibility live), verification (what counts as proof), delegation (parallel work and autonomy), meta (turning lessons into structure).
| Principle | Group | When | Rule |
|---|---|---|---|
Attack the Premise (attack-the-premise) | core | Two or more fixes that share one premise have failed the same gate. | Write the premise down and test it directly before you write another fix that assumes it. |
Build the Lever (build-the-lever) | core | Any non-trivial work. | Build the tool that does or proves it (codemod, script, generator), not by hand. The tool is the artifact a reviewer reruns. |
Exhaust the Design Space (exhaust-the-design-space) | core | A novel interaction or architectural decision with no precedent. | Build 2-3 competing prototypes and compare before committing. |
Experience First (experience-first) | core | Product, UX, or feature-scope tradeoffs. | Choose user delight over implementation convenience. |
Foundational Thinking (foundational-thinking) | core | Before writing logic: core types and data structures, scaffold-vs-feature sequencing, what concurrent actors share. | Get the data structures right so downstream code becomes obvious. |
Laziness Protocol (laziness-protocol) | core | Refactoring, sizing a diff, or tempted to add abstractions, layers, or signal threading. | Bias to deletion and the smallest change that solves the problem. |
Minimize Reader Load (minimize-reader-load) | core | Reviewing or shaping code that's hard to trace. | Count layers and hidden state, collapse one-caller wrappers, shrink mutable scope. |
Outcome-Oriented Execution (outcome-oriented-execution) | core | Planned rewrites and migrations with explicit phase boundaries. | Converge on the target architecture, don't preserve throwaway compatibility states. |
Redesign from First Principles (redesign-from-first-principles) | core | Integrating a new requirement into an existing design. | Redesign as if it had been foundational from day one. |
Subtract Before You Add (subtract-before-you-add) | core | Sequencing an addition, refactor, or rewrite. | Remove dead weight first, then build on the simpler base. |
Boundary Discipline (boundary-discipline) | architecture | Wiring validation, error handling, or framework adapters. | Guards at system boundaries, trust internal types, keep business logic pure. |
Make Operations Idempotent (make-operations-idempotent) | architecture | Designing commands, lifecycle steps, or loops that run amid crashes and retries. | Converge to the same end state. |
Migrate Callers Then Delete Legacy APIs (migrate-callers-then-delete-legacy-apis) | architecture | Introducing a new internal API while old callers exist. | Migrate and delete in one wave. |
Model the Domain (model-the-domain) | architecture | Writing stateful logic, or code that branches a lot or repeats a shape assumption across files. | Encode the domain in a structure (state machine, typed model, table or registry, reducer, boundary, the right collection) instead of scattered conditionals. |
Separate Before Serializing Shared State (separate-before-serializing-shared-state) | architecture | Concurrent actors might write the same file, branch, key, or object. | Eliminate the sharing first. |
Type System Discipline (type-system-discipline) | architecture | Designing types or a signature in any typed language. | Make illegal states unrepresentable, brand primitives, parse external data at boundaries. |
Explain the Number (explain-the-number) | verification | Before you measure, and 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. |
Fix Root Causes (fix-root-causes) | verification | Debugging. | Trace each symptom back to the first place the system went wrong and fix it there. A guard is a fix only when the state it handles is legitimate. |
Prove It Works (prove-it-works) | verification | After a task, before declaring done. | Verify against the real artifact, not a proxy or "it compiles". |
Sequence Work into Verifiable Units (sequence-verifiable-units) | verification | Multi-step work (sweeps, migrations, runs of similar edits) and how you stack commits and PRs. | Break work into small units that each end in a check, verify each before the next, and order delivery so the sequence proves itself. |
Test Behavior, Not Implementation (test-behavior-not-implementation) | verification | Writing, changing, or keeping a test. | Assert what the code's users can observe, so the test fails when that behavior breaks and keeps passing when only the internals change. |
Guard the Context Window (guard-the-context-window) | delegation | Context fills up: large outputs, long files, repeated reads, fan-out planning. | Route bulk to subagents, keep summaries in the main thread. |
Never Block on the Human (never-block-on-the-human) | delegation | Tempted to ask "should I do X?" on reversible work. | Proceed, present the result, let the human course-correct. |
Encode Lessons in Structure (encode-lessons-in-structure) | meta | You catch yourself writing the same instruction a second time. | Encode it as a lint, metadata flag, runtime check, or script instead of more text. |
The first 24 principles are adapted from Lauren Tan's pstack (MIT). Each file's source field records the upstream path and commit. Edits here are ours. See docs/UPSTREAM.md in agent-kit for how upstream changes are reviewed.
references/attack-the-premise.md (opens in a new tab)references/boundary-discipline.md (opens in a new tab)references/build-the-lever.md (opens in a new tab)references/checklists/benchmark.md (opens in a new tab)references/encode-lessons-in-structure.md (opens in a new tab)references/exhaust-the-design-space.md (opens in a new tab)references/experience-first.md (opens in a new tab)references/explain-the-number.md (opens in a new tab)references/fix-root-causes.md (opens in a new tab)references/foundational-thinking.md (opens in a new tab)references/guard-the-context-window.md (opens in a new tab)references/laziness-protocol.md (opens in a new tab)references/make-operations-idempotent.md (opens in a new tab)references/migrate-callers-then-delete-legacy-apis.md (opens in a new tab)references/minimize-reader-load.md (opens in a new tab)references/model-the-domain.md (opens in a new tab)references/never-block-on-the-human.md (opens in a new tab)references/outcome-oriented-execution.md (opens in a new tab)references/prove-it-works.md (opens in a new tab)references/redesign-from-first-principles.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub lyddonb/agent-kit --plugin principles