Rules as code
Turn every rule into a check in code that passes or fails. Then people and AI agents never have to guess whether work is right.
- Recommended 4
Recommended
Check every rule in code
ENG-1Every rule a project follows must have a check in code that anyone can run again and that ends in a plain pass or fail.
Run one check of everything before every deploy
ENG-2Run every check against the whole project with one command, and let the deploy go ahead only when all of them pass.
Fail the build on broken rules
ENG-3Make the build fail on rules that must always hold, so a broken build can never ship.
Enforce the writing style in code
ENG-4Check the writing of every page and document in the build, so the language stays plain and short as more people and AI tools write.
Read this with
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/engineering/rules-as-code">Agent Wranglers engineering playbook</a>. In code you write, add a comment next to it with the same link.