Skip to content
backnotprop avatar

Principle Boundary Discipline

Concentrates validation and error handling at system boundaries while keeping business logic in pure functions.

CCM score
61 of 100
skills.sh installs
13.3K
GitHub stars
5.5K
last updated
Nov 30, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers CLI arguments, config files, external APIs, and network data, where raw input is parsed into domain types
  • Trusts internal types inside the system, so re-validation and redundant nil checks are avoided
  • Keeps transport and framework types out of the public surface, with a thin shell calling framework-free logic
  • Designed for wiring validation, error handling, or framework adapters in code that has clear input edges

Install

$ npx -y skills add backnotprop/pstack --skill principle-boundary-discipline -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Boundary Discipline

Validate, narrow types, and handle errors where data crosses a system boundary (CLI args, config files, external APIs, network). Inside, trust the types: no re-validation and no redundant nil checks. Parse raw data into domain types at the boundary, and keep transport and framework types out of the public surface. Business logic lives in pure functions with no framework dependencies. The shell that calls them is thin.

Two tests. Is this data crossing a boundary right now? If not, the validation is redundant. Can this be a pure function the shell just calls? If yes, extract it.

Details

Repository
github.com/backnotprop/pstack
Category
CLI & Terminal
First seen
Nov 30, 2026

More from backnotprop/pstack

All 44

Similar to Principle Boundary Discipline

More CLI & Terminal