dotfiles/config/opencode/AGENTS.md (view raw)
| 1 | # Code Quality Standards |
| 2 | - Make minimal, surgical changes |
| 3 | - Abstractions: Consciously constrained, pragmatically parameterised, doggedly documented |
| 4 | - Make illegal states unrepresentable: Model domain with ADTs/discriminated unions; parse inputs at boundaries into typed structures; if state can't exist, code can't mishandle it |
| 5 | |
| 6 | # Testing |
| 7 | - Write tests that verify semantically correct behavior |
| 8 | - Failing tests are acceptable when they expose genuine bugs and test correct behavior |
| 9 | |
| 10 | # Plans |
| 11 | - At the end of each plan, give me a list of unresolved questions to answer, if any. Make the questions extremely concise. Sacrifice grammar for the sake of concision. |
| 12 | |
| 13 | # MCPs |
| 14 | - If you are unsure how to do something, use `grep-app` to search code examples from GitHub. |
| 15 | - When you need to search docs, use `context7` tools. |