Discussion about this post

User's avatar
Jelena Cupac's avatar

Do you have any tips for prompting AI to write good tests & code?

Expand full comment
Ferdinand ade's avatar

Marco Emrich & I worked out this prompt for following TDD, also some rules for refactoring. It works suprisingly good (tested with cursor & claude code). give it a try if you like: https://github.com/ferdi145/mad-tdd-mob-ai-driven/blob/main/CLAUDE.md

What also works well is to do a Testlist or an Example Mapping eg on Miro/Whiteboard and then just paste a picture to translate it to a Markdown file. this can then be used as input for the TDD loop.

Expand full comment
4 more comments...

No posts