- Provide code base/project details and up-to-date context.
- Separation of concerns in different modules.
- Create implementation details for each PR, maintain implementation docs.
- Generate small, focused chunks of code (< 1k lines).
- Keep functions concise and small.
- Comment every function; add context before AI generation.
- Keep those comments updated with every change on that code
- Make sure the generated code is modular and easy to refactor.
- Lint all code, remove unused references.
- Review, refine, and iterate on every AI generation.
- Use AI code as a draft, finalize with human oversight.
- Always create human written test or don't use test in initial phase/draft.
- Use structured logging to debug generated code.
- Small, focused generation (< 1k lines).
- Provide it with quality context/details for generation.
- Use generated code as a draft.
- Review, refine, and iterate on every generation.