
Guides agents to encode invariants in types so invalid states fail at compile time
- Open source
- 5.1K GitHub stars
- Developer tools


Guides agents to encode invariants in types so invalid states fail at compile time

Guides the agent to settle data shapes and shared state before writing logic

Guides the agent to encode domain logic in data structures instead of branching

Guides an agent to remove dead code and extra guards before adding new work

Reduces how much a reader must trace and hold in mind when reviewing code

Guides agents through modeling entities, invariants and forbidden states before schema

Guides agents to write tests that check observable behavior, not internal details

Keeps the agent moving on reversible work instead of pausing to ask permission

Guides agents to write TypeScript with stronger types, safer boundaries and real tests

Applies readability rules to code you write, review or refactor in any language

Checklist of anti-patterns and best practices for writing agent instructions and skills

Keeps the agent biased toward deletion and the smallest change during refactors
The closest alternatives to Principle boundary discipline are Principle type system discipline, Principle foundational thinking, Principle model the domain, Principle subtract before you add and Principle minimize reader load.
Yes. Principle type system discipline, Principle foundational thinking, Principle model the domain have a free or open-source option.