cursor avatar

Principle Boundary Discipline

Parse raw input into domain types at system boundaries and keep business logic in pure functions.

CCM score
58 of 100
skills.sh installs
6K
GitHub stars
19.4K
last updated
Nov 25, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers guard placement at system boundaries: CLI args, config files, external APIs, and network data
  • Requires parsing raw data into domain types at the boundary, with no re-validation or redundant nil checks inside
  • Keeps transport and framework types out of the public surface, with business logic in framework-free pure functions
  • Designed for code that wires validation, error handling, or framework adapters around a thin calling shell

Install

$ npx -y skills add cursor/plugins --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/cursor/plugins
Category
CLI & Terminal
First seen
Nov 25, 2026

More from cursor/plugins

All 93

Similar to Principle Boundary Discipline

More CLI & Terminal