What problem does it solve?
This Skill helps prevent failures caused by invalid input that propagate through multiple layers of a system by enforcing validation and guards at every checkpoint, turning sporadic bugs into impossible-to-reproduce errors.
Core Features & Use Cases
- Entry-point validation: Reject obviously invalid inputs at API boundaries to reduce quick failures and noisy error states.
- Business logic assertions: Ensure data makes sense for the operation, catching edge cases that entry checks miss.
- Environment guards and debug instrumentation: Refuse dangerous operations in tests or non-temporary contexts and capture contextual logs and stacks for forensics.
- Use Case: Prevent accidental git operations from running in the repository root during tests by validating projectDir at creation, workspace initialization, environment guards in git init, and stack logging before risky actions.
Quick Start
Add validation at the API entry, validate again in business logic, refuse dangerous operations in test or prod contexts, and log context before performing risky actions.