What problem does it solve?
This skill helps you avoid interface mismatches, repeated relationship-shape code, and unsafe agent workflows by selecting an appropriate design pattern and enforcing clear Require/Guarantee/Maintain/Assert contracts.
Core Features & Use Cases
- Pattern-selection protocol: Selects patterns based on the underlying pressure and constraints rather than pattern names.
- Contract-first interface shaping: Defines caller preconditions, implementation postconditions, invariants, and boundary assertions.
- Agentic systems state-machine guidance: Reframes nondeterministic loops as deterministic, tool-validated state transitions (model as compiler, harness as linker).
- Pragmatic constraints: Encourages “no pattern over the wrong pattern,” stops early for single-call solutions, and favors readable interfaces over clever abstractions.
Quick Start
Use the design-patterns skill to refactor an interface or component relationship by stating the concrete constraint and asking which contract-shaped GoF pattern family best matches it.