Skills for Real Engineers. Straight from my .agents directory.
principle-boundary-discipline
Agent skill frombacknotprop/pstack
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.
How to install principle-boundary-discipline
npx skills add backnotprop/pstack# or add only this skill to Claude Code: copy the folder
skills/principle-boundary-discipline/
# into
~/.claude/skills/principle-boundary-discipline/ (all projects)
.claude/skills/principle-boundary-discipline/ (one project)
1# Boundary Discipline23Place 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.45**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.67**The pattern:**8- **At boundaries** (CLI args, config files, external APIs, network protocols): validate, return errors, handle defensively.9- **Inside the system:** typed data, error propagation, no re-validation. Trust the types.10- **Across the boundary.** Expose domain concepts, not the boundary's private representation. Keep general-purpose mechanism inside and special-purpose policy at the edge.1112**Applications:**1314Validation and error handling:15- Validate config at parse time (the boundary), not inside business logic16- Parse raw data into domain types at the boundary17- Do not re-export transport, storage, framework, or wire types through the public surface18- No redundant nil checks deep in call chains if the boundary already validated1920Code organization:21- Business logic in pure functions with no framework dependencies22- Parse functions: pure transforms from raw bytes to typed state23- Prompt construction: structured state in, string out24- Scoring and assessment: pure transforms from state to results2526**The tests:**27…
Excerpt shown under the repository's MIT license.
More skills in pstack
Similar skill repositories
Public repository for Agent Skills
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
The open-source app everyone uses to manage agents at work
The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.
