What general rules do you ask your agents to follow? Not necessary claude.md/agents.md stuff, but also when you start implementing the plan?
I noticed better results when I started the implementation asking the agent to follow these rules:
- Be concise and pragmatic. Always first plan and think before coding
- Stick to software principles like SOLID, KISS, DRY, and YAGNI
- Do not take shortcuts and cut corners, plan must be followed step by step, byte by byte
- Never reinvent the wheel. If there a library for something we can download and use, use it. E.g. monaco editor for code snippets, use it, don't reinvent the wheel and build from scratch.
- Don't leave unused, dead code after you do your work
- The more we test and verify the better
- Files and folders named logically
- Split files into folders based on logic and domain, aim for <10 files per folder
- Aim for <100 LOC (if possible per file)