OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add cursor/plugins --skill principle-boundary-discipline
Apply when wiring validation, error handling, or framework adapters. Concentrate guards at system boundaries (CLI, config, network, external APIs); trust internal types and keep business logic in pure functions.
npx skills add cursor/plugins --skill principle-boundary-discipline
Place validation, type narrowing, and error handling at system boundaries. Trust internal code unconditionally. Business logic lives in pure functions. The shell is thin and mechanical.
Why: Scattered validation is noisy, redundant, and gives a false sense of safety. Keep logic out of framework wiring so it can be tested without the framework.
The pattern:
Applications:
Validation and error handling:
Code organization:
The tests: