Boundary Contracts
Enforces explicit schema validation and tolerant adapter boundaries for external inputs with runtime wrappers and static linting rules.
Boundary Contracts provides an architectural pattern and tooling suite to safely ingest untrusted external data at application boundaries. By utilizing portable runtime wrappers like owned decoders for strict schema validation and tolerant adapters for evolving third-party provider inputs, it ensures unvalidated data never leaks into internal application logic. The skill includes bundled Oxlint linting rules to statically enforce boundary declarations, reject handwritten type casting slop, and guarantee narrow, owned result types across your codebase.
Key Features
010 GitHub stars
02Zero runtime dependency architecture designed to live directly in target repositories
03Static Oxlint rule suite to prevent raw input escapes and untyped dictionary leakage
04Tolerant adapter wrapper returning structured success/failure pairs (tolerantAdapter)
05Explicit owned decoder wrapper with pluggable schema validation (ownedDecoder)
06Standardized contract vocabulary for isolating external provider schema churn
Use Cases
01Replacing loose TypeScript 'unknown' lint policies with boundary-aware static analysis
02Building resilient integration adapters for evolving third-party cloud provider events
03Validating and sanitizing third-party API payloads and incoming webhook inputs