Principle Boundary Discipline

Concentrate parsing, validation, and error translation at real system boundaries while keeping typed internal business logic small and direct.

njs14 Updated

File contents

Keep guards at boundaries

Treat the request text that activated this skill as the boundary decision to inspect.

Apply boundary discipline. Identify the exact CLI, file, configuration, network, database, or external API crossing. Parse once into a domain value, translate errors there, and remove redundant internal guards only when the parsed type truly carries the invariant. Return the boundary, the trusted internal shape, and its focused test.

njs14/pkstack/tree/main/.kiro/skills/principle-boundary-discipline commit 42d6406a23

Frequently asked questions

npx skillmds@latest add njs14/principle-boundary-discipline