maid-developer

MAID Phase 3 - Implement code to make tests pass (TDD)

Phase 3: Implementation (TDD)

Implement code to make tests pass. Follow Red-Green-Refactor. Refer to the MAID methodology skill for guidelines.

Your Task

  1. Confirm Red phase: pytest tests/test_task_XXX_*.py -v (should fail)

  2. Implement code:

    • Make tests pass (Green phase)
    • Match manifest artifacts exactly
    • Only edit files in manifest
  3. CRITICAL - Validate ALL manifests (no arguments):

    maid validate
    maid test
    make lint
    make type-check
    make test
    

    Note: maid validate and maid test WITHOUT arguments validates entire codebase

  4. Refactor if needed while keeping tests green

Success

✓ All validations pass ✓ All tests pass ✓ Code quality checks pass