Skip to content
Back to skills

Principles

ASecurity

Use when a design or trade-off decision needs a named engineering principle to settle it — e.g. choosing between two designs, deciding whether to keep a compatibility layer, how to sequence a refactor, where validation belongs. Index of 19 principles; read only the one reference file that applies.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added December 3, 2026
code-qualityrustgitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add restierecon/tbv --skill principles --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Principles?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Principles
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/restierecon-principles/badge)](https://www.skillsdirectory.com/skills/restierecon-principles)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: principles
description: Use when a design or trade-off decision needs a named engineering principle to settle it — e.g. choosing between two designs, deciding whether to keep a compatibility layer, how to sequence a refactor, where validation belongs. Index of 19 principles; read only the one reference file that applies.
---

# Engineering principles

Imported from [pstack `skills/principle-*`](https://github.com/backnotprop/pstack/tree/main/skills)
(MIT, Copyright (c) 2026 Lauren Tan — see LICENSE in this directory).

Pick the line that matches the decision in front of you, read that one file, apply it.
prove-it-works, test-behavior-not-implementation and subtract-before-you-add are
already baked into the builder/reviewer checklists.

- [attack-the-premise](references/attack-the-premise.md) — two fixes sharing one premise failed the same gate: question the premise, not the fix
- [boundary-discipline](references/boundary-discipline.md) — validate at system boundaries, trust internal types, keep logic pure
- [build-the-lever](references/build-the-lever.md) — non-trivial work: build the script/codemod that does or proves it
- [encode-lessons-in-structure](references/encode-lessons-in-structure.md) — a repeated instruction becomes a lint, check or script
- [exhaust-the-design-space](references/exhaust-the-design-space.md) — no precedent: sketch 2-3 alternatives before committing
- [experience-first](references/experience-first.md) — UX/scope trade-off: fewer, polished features over convenience
- [foundational-thinking](references/foundational-thinking.md) — data structures and scaffolding before logic
- [laziness-protocol](references/laziness-protocol.md) — prefer deletion and the smallest diff
- [make-operations-idempotent](references/make-operations-idempotent.md) — operations converge despite crashes and retries
- [migrate-callers-then-delete-legacy-apis](references/migrate-callers-then-delete-legacy-apis.md) — new internal API: migrate callers and delete the old one in the same wave
- [minimize-reader-load](references/minimize-reader-load.md) — cut layers to trace and state to hold
- [model-the-domain](references/model-the-domain.md) — encode the domain in a structure, not scattered conditionals
- [never-block-on-the-human](references/never-block-on-the-human.md) — reversible work proceeds; confirm only irreversible actions. Product direction stays with the human; grill/escalation rules still apply
- [outcome-oriented-execution](references/outcome-oriented-execution.md) — planned migrations converge on the end state, no throwaway compat code
- [prove-it-works](references/prove-it-works.md) — verify against the real artifact, not a proxy or self-report
- [redesign-from-first-principles](references/redesign-from-first-principles.md) — new requirement: redesign as if it were there from day one
- [subtract-before-you-add](references/subtract-before-you-add.md) — remove dead code and redundancy first, then build
- [test-behavior-not-implementation](references/test-behavior-not-implementation.md) — assert observed results against literal values
- [type-system-discipline](references/type-system-discipline.md) — illegal states unrepresentable, parse at boundaries, exhaust variants

Files in this skill

  • LICENSE1 KB
  • SKILL.md3.2 KB
  • references/attack-the-premise.md1.5 KB
  • references/boundary-discipline.md1.5 KB
  • references/build-the-lever.md2 KB
  • references/encode-lessons-in-structure.md1.9 KB
  • references/exhaust-the-design-space.md879 B
  • references/experience-first.md932 B
  • references/foundational-thinking.md1.2 KB
  • references/laziness-protocol.md1.1 KB
  • references/make-operations-idempotent.md1.1 KB
  • references/migrate-callers-then-delete-legacy-apis.md862 B
  • references/minimize-reader-load.md1.7 KB
  • references/model-the-domain.md1.8 KB
  • references/never-block-on-the-human.md1 KB
  • references/outcome-oriented-execution.md843 B
  • references/prove-it-works.md1.5 KB
  • references/redesign-from-first-principles.md570 B
  • references/subtract-before-you-add.md843 B
  • references/test-behavior-not-implementation.md2.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in code-quality →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.