mid-conversation-skill-invocation.yaml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. scenario: mid-conversation-skill-invocation
  2. description: >
  3. Lifted from superpowers/tests/explicit-skill-requests/run-claude-describes-sdd.sh.
  4. Reproduces the regression that test exists to catch: Claude *describes*
  5. the subagent-driven-development workflow conversationally, the user
  6. asks to use it, and Claude must then actually load the skill and
  7. dispatch — not stay in describing-mode.
  8. The setup is the same as explicit-skill-request-sdd (base repo + stub
  9. plan), but the conversation deliberately starts with the agent
  10. explaining the skill before the user invokes it.
  11. user_posture: spec-aware
  12. setup:
  13. helpers:
  14. - create_base_repo
  15. - add_sdd_auth_plan
  16. assertions:
  17. - "git rev-parse --is-inside-work-tree"
  18. - "git branch --show-current | grep -q main"
  19. - "test -f docs/superpowers/plans/auth-system.md"
  20. turns:
  21. - intent: >
  22. Open the conversation by asking the agent to summarize, in plain
  23. English, how the superpowers:subagent-driven-development workflow
  24. executes a multi-task plan. Use phrasing like:
  25. "Quick question before we start — can you describe how
  26. subagent-driven-development works? I want to make sure I
  27. understand the workflow before I commit to using it."
  28. Do NOT ask the agent to use the skill yet. The point is to put
  29. the agent in describing-mode first.
  30. - intent: >
  31. After the agent describes the workflow, *now* ask it to use
  32. the skill on the plan. Use phrasing like:
  33. "Got it, that's what I want. I have a plan at
  34. docs/superpowers/plans/auth-system.md. subagent-driven-development,
  35. please — dispatch the first subagent."
  36. The agent must transition from describing to actually loading
  37. the skill and dispatching. This is the regression: sometimes
  38. the agent stays in describing-mode and never actually invokes.
  39. - intent: >
  40. If the agent asks any clarifying question, answer briefly and
  41. let it proceed. If it offers to start, say "yes, go ahead."
  42. - intent: >
  43. Once the agent has loaded the SDD skill (after your second
  44. message, not in response to the description request) AND
  45. dispatched at least one subagent, you are done — use the
  46. "done" action.
  47. limits:
  48. max_turns: 10
  49. turn_timeout: 300
  50. verify:
  51. assertions:
  52. - "skill-called superpowers:subagent-driven-development"
  53. - "tool-called Agent"
  54. criteria:
  55. - >
  56. Agent transitioned from describing the skill to actually using
  57. it. The regression this scenario exists to catch is: the agent
  58. describes the SDD workflow from training-data memory in
  59. response to the first user turn and then *stays in describing
  60. mode* — never loading the skill or dispatching subagents in
  61. response to the second turn's explicit invocation. A pass
  62. requires the description response to be followed by genuine
  63. skill execution: the agent must dispatch a subagent in direct
  64. response to the second user message. (Loading the Skill tool
  65. *to* read the skill content for the first turn's description
  66. is fine — what matters is whether the second turn produces
  67. action.)
  68. observe: true