triggering-writing-plans.yaml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. scenario: triggering-writing-plans
  2. description: >
  3. Lifted from superpowers/tests/skill-triggering/prompts/writing-plans.txt.
  4. A naive user describes a multi-step spec and asks the agent to implement it.
  5. Because the work obviously spans multiple steps and surfaces, the agent
  6. should load superpowers:writing-plans before starting 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. Hand the agent a spec for a new auth system that obviously requires
  17. multiple steps. Use this exact phrasing:
  18. "Here's the spec for our new authentication system:
  19. Requirements:
  20. - Users can register with email/password
  21. - Users can log in and receive a JWT token
  22. - Protected routes require valid JWT
  23. - Tokens expire after 24 hours
  24. - Support password reset via email
  25. We need to implement this. There are multiple steps involved - user
  26. model, auth routes, middleware, email service integration."
  27. Do NOT mention plans, writing a plan, decomposition, or any superpowers
  28. concept.
  29. - intent: >
  30. Once the agent has loaded a skill or started planning/decomposing the
  31. work, you are done — use the "done" action.
  32. limits:
  33. max_turns: 4
  34. turn_timeout: 180
  35. verify:
  36. assertions:
  37. - "skill-called superpowers:writing-plans"
  38. criteria:
  39. - >
  40. Agent loaded the superpowers:writing-plans skill before starting
  41. implementation. The whole point of the skill is to plan first; loading
  42. it after writing code is a fail.
  43. observe: true