
principle-boundary-discipline
Apply when wiring validation, error handling, or framework adapters
by cursorFree
Description
principle-boundary-discipline is an agent skill from Cursor's plugins collection that applies a design principle for wiring validation, error handling and framework adapters. It says to place validation, type narrowing and error handling at the system's boundaries, meaning the command-line arguments, configuration files, external APIs and network protocols, and to trust internal code unconditionally once data has crossed into the system. Business logic should live in pure functions, with a thin and mechanical shell around them, so the logic can be tested without the framework. The reasoning given is that scattered validation is noisy, redundant and creates a false sense of safety. Inside the system, data should be typed and errors propagated, without re-validating what has already been checked. When data crosses the boundary outward, the code should expose domain concepts rather than the boundary's private representation. The principle guides how to structure a new feature or adapter, and it suits developers who want validation to happen in one place and core logic to stay easy to test. It is listed on skills.sh, where the page shows install counts and GitHub stars for the Cursor plugins repository. Install it with npx skills add https://github.com/cursor/plugins --skill principle-boundary-discipline.…
Highlights
- Validation at system boundaries
- Trust internal typed code
- Pure business logic functions
- Thin mechanical framework shell
- Domain concepts across boundaries
- Installs from skills.sh
Ratings & Reviews
No ratings yet
Be the first to rate principle-boundary-discipline.
People also visit

clean-code-principles
SOLID principles, design patterns, DRY, KISS, and clean code fundamentals

principle-type-system-discipline
Apply when designing types, reviewing a function signature

pragmatic-programmer
Apply meta-principles of software craftsmanship: DRY, orthogonality

principle-foundational-thinking
Apply before writing logic: choosing core types and data structures
principle-boundary-discipline FAQ
Where does the skill say to validate?
At system boundaries such as command-line arguments, configuration, external APIs and network protocols.
Should internal code be validated again?
No. The skill says to trust the types inside the system and propagate errors.
Where should business logic live?
In pure functions, so it can be tested without the framework.
How do I install it?
Run npx skills add https://github.com/cursor/plugins --skill principle-boundary-discipline.
How popular is it?
The skill is listed in the cursor/plugins repository, which has 11.4K GitHub stars.
What are the best principle-boundary-discipline alternatives?
Popular alternatives to principle-boundary-discipline include clean-code-principles, principle-model-the-domain and principle-type-system-discipline. See all principle-boundary-discipline alternatives












