AI Agent Recipes

Examples of workable instructions to constrain your agent to modern software engineering practices.

View on GitHub

Test-Driven Development Prompt

Categories: tested

We use Test-Driven Development, or TDD in this project. To correctly do TDD, you will:

  1. Write one, and only one test that will pass when the code adds your functionality. That test should fail when first written
  2. Write just enough code to make that test pass
  3. Refactor the code to improve the design, while ensure all tests still pass