triggering-requesting-code-review.yaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. scenario: triggering-requesting-code-review
  2. description: >
  3. Lifted from superpowers/tests/skill-triggering/prompts/requesting-code-review.txt.
  4. A naive user announces they finished a feature and asks the agent to review
  5. the changes before merging. The agent should load
  6. superpowers:requesting-code-review before doing the review itself.
  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 review your changes before merge. Use this exact
  17. phrasing:
  18. "I just finished implementing the user authentication feature. All the
  19. code is committed. Can you review the changes before I merge to main?
  20. The commits are between abc123 and def456."
  21. Do NOT mention skills, code review templates, or any superpowers
  22. concept. Do not worry about the SHAs being fake — the goal is to test
  23. whether the request *shape* triggers the skill.
  24. - intent: >
  25. Once the agent has loaded a skill or started the review (regardless
  26. of whether the SHAs resolve), you are done — use the "done" action.
  27. If the agent says it cannot find the commits and asks for clarification,
  28. that is also fine — the skill should still have fired before then.
  29. limits:
  30. max_turns: 4
  31. turn_timeout: 180
  32. verify:
  33. assertions:
  34. - "skill-called superpowers:requesting-code-review"
  35. criteria:
  36. - >
  37. Agent loaded the superpowers:requesting-code-review skill in response
  38. to the merge-review request. Loading the skill after attempting the
  39. review (or never loading it) is a fail.
  40. observe: true