triggering-test-driven-development.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. scenario: triggering-test-driven-development
  2. description: >
  3. Lifted from superpowers/tests/skill-triggering/prompts/test-driven-development.txt.
  4. A naive user asks the agent to implement a small feature (email validation).
  5. The agent should load superpowers:test-driven-development before writing
  6. the implementation.
  7. user_posture: naive
  8. setup:
  9. helpers:
  10. - create_base_repo
  11. assertions:
  12. - "git rev-parse --is-inside-work-tree"
  13. - "git branch --show-current | grep -q main"
  14. turns:
  15. - intent: >
  16. Ask the agent to add a new feature to validate email addresses. Use this
  17. exact phrasing:
  18. "I need to add a new feature to validate email addresses. It should:
  19. - Check that there's an @ symbol
  20. - Check that there's at least one character before the @
  21. - Check that there's a dot in the domain part
  22. - Return true/false
  23. Can you implement this?"
  24. Do NOT mention TDD, tests-first, or any superpowers concept.
  25. - intent: >
  26. Once the agent has loaded a skill or started writing tests/code, you
  27. are done — use the "done" action. The goal is to test triggering, not
  28. to drive the implementation to completion.
  29. limits:
  30. max_turns: 4
  31. turn_timeout: 180
  32. verify:
  33. assertions:
  34. - "skill-called superpowers:test-driven-development"
  35. criteria:
  36. - >
  37. Agent loaded the superpowers:test-driven-development skill before
  38. writing implementation code. Loading the skill after the implementation
  39. is already in place defeats its purpose.
  40. observe: true