Automation and Guardrails
The more a workflow matters, the less it should depend on the agent remembering a sentence from a prompt.
The Reliability Stack
Section titled “The Reliability Stack”1. Instructions
Section titled “1. Instructions”Tell the agent what should happen in your context file.
2. Commands
Section titled “2. Commands”Provide one canonical command such as pnpm verify or make check.
3. Hooks Or Wrappers
Section titled “3. Hooks Or Wrappers”Automatically trigger formatting, validation, or reporting at the right time.
Fail the build if required checks were skipped or output is invalid.
Examples
Section titled “Examples”- Run formatting after edits through a wrapper command.
- Enforce
lint,typecheck, andtestin one CI gate. - Trigger screenshot capture after UI changes.
- Require changelog or docs updates when public behavior changes.
Practical Rule
Section titled “Practical Rule”Prompts improve consistency. Guardrails create consistency.