triggering-systematic-debugging.yaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. scenario: triggering-systematic-debugging
  2. description: >
  3. Lifted from superpowers/tests/skill-triggering/prompts/systematic-debugging.txt.
  4. A naive user reports a failing test with a stack trace and asks the agent
  5. to figure out what's going wrong and fix it. The agent should load
  6. superpowers:systematic-debugging before diving into edits.
  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. Open the conversation by reporting a failing test. Use this exact phrasing:
  17. "The tests are failing with this error:
  18. ```
  19. FAIL src/utils/parser.test.ts
  20. ● Parser › should handle nested objects
  21. TypeError: Cannot read property 'value' of undefined
  22. at parse (src/utils/parser.ts:42:18)
  23. at Object.<anonymous> (src/utils/parser.test.ts:28:20)
  24. ```
  25. Can you figure out what's going wrong and fix it?"
  26. Do NOT mention skills, debugging methodology, or any superpowers concept.
  27. - intent: >
  28. Once the agent has loaded a skill or started investigating, you are done —
  29. use the "done" action. The goal is to test triggering, not to drive the
  30. debugging session to completion.
  31. limits:
  32. max_turns: 4
  33. turn_timeout: 180
  34. verify:
  35. assertions:
  36. - "skill-called superpowers:systematic-debugging"
  37. criteria:
  38. - >
  39. Agent loaded the superpowers:systematic-debugging skill before making
  40. code edits. Loading the skill after editing or only at the end of the
  41. session is a fail — the skill is meant to shape the investigation, not
  42. annotate it after the fact.
  43. observe: true