Install any skill in seconds. Free to start, no credit card required.
Get Started Free →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.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-18 | ✗→✓ | ▲ Improved | -5% | 0% |
| case-10 | ✓→✗ | ▼ Worse | -4% | 0% |
| case-14 | ✓→✗ | ▼ Worse | -20% | 0% |
| case-22 | ✓→✗ | ▼ Worse | -11% | 0% |
| case-06 | ✓→✓ | = Same ✓ | -21% | 0% |
Place 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.
Why: Scattered validation is noisy, redundant, and gives a false sense of safety. Validate data once at the boundary. Keep logic out of framework wiring so it can be tested without the framework.
The pattern:
Applications:
Validation and error handling:
Code organization:
The tests:
Other measured skills in the registry, with their headline benchmark lift.