Skip to content

feat: add writing-test-scenario-specs skill - #966

Closed
pra1had wants to merge 7 commits into
obra:mainfrom
pra1had:feat/writing-test-scenario-specs
Closed

pra1had wants to merge 7 commits into
obra:mainfrom
pra1had:feat/writing-test-scenario-specs

Conversation

@pra1had

@pra1had pra1had commented Mar 28, 2026

Copy link
Copy Markdown

Summary

  • Adds a new writing-test-scenario-specs skill — a human-in-the-loop workflow that inserts between writing-plans and subagent-driven-development to let the human author acceptance criteria as structured scenario tables before implementation begins
  • Seeds scenarios from the design doc via a Scenario Seeder subagent, then validates coverage against the implementation plan via a Test Scenario Reviewer subagent
  • Wires the new skill into the existing workflow: adds a handoff in writing-plans and a soft precondition check in subagent-driven-development

What's included

File Purpose
skills/writing-test-scenario-specs/SKILL.md Main skill — 6-step flow with hard gate, anti-patterns, flow diagram
skills/writing-test-scenario-specs/scenario-spec-template.md LLD Section 11 template (empty tables)
skills/writing-test-scenario-specs/scenario-seeder-prompt.md Subagent dispatch template: design doc → proposed scenario tables
skills/writing-test-scenario-specs/test-scenario-reviewer-prompt.md Subagent dispatch template: spec vs plan coverage validation
skills/writing-plans/SKILL.md Added "Scenario Spec Handoff" section before execution handoff
skills/subagent-driven-development/SKILL.md Added soft precondition check for scenario spec file

Motivation

In the current workflow, subagents own test authoring — the human steers the design and approves the plan, but never touches acceptance criteria. PR review is the first time the human sees the tests. This skill gives the human control over what "done" means by authoring scenario tables (not code) that become the acceptance criteria for the feature.

Workflow position

brainstorming → writing-plans → writing-test-scenario-specs → subagent-driven-development

The skill is recommended but not mandatory — users can skip it, and existing features without specs are unaffected.

Test plan

  • Verify skill triggers correctly when invoked after writing-plans
  • Verify hard gate prevents pytest code generation during the spec flow
  • Verify Scenario Seeder subagent produces tables matching the template format
  • Verify Test Scenario Reviewer catches coverage gaps and proposes draft rows
  • Verify writing-plans handoff message includes design doc and plan paths
  • Verify subagent-driven-development precondition check is a soft gate (skippable)
  • Pressure test: "skip the spec" → agent refuses and re-presents template
  • Pressure test: agent invents scenarios not in design doc → removed
  • Pressure test: agent writes pytest code → hard gate fires

🤖 Generated with Claude Code

@obra

obra commented Mar 28, 2026

Copy link
Copy Markdown
Owner

I'm not convinced that this is a great fit for superpowers, but you fully ignored the pull request template, which suggests to me that this is an agentic PR that did not actually ever get looked at by a human.

Language-agnostic skill that translates approved scenario specs into RED
test functions, validates 1:1 spec-to-test mapping, and commits failing
tests before handing off to subagent-driven-development for GREEN.

Includes:
- SKILL.md: 6-step flow with project detection, hard gates, anti-patterns
- spec-to-test-prompt.md: Translator subagent (scenario rows → test code)
- spec-test-mapping-reviewer-prompt.md: Coverage validator (1:1 mapping)
- Design spec and implementation plan

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@pra1had

pra1had commented Mar 29, 2026

Copy link
Copy Markdown
Author

My bad, yes, it was completely auto generated

Will humanly align with writing-skills skill :)

regarding usage - I will share a P-R on my work with the writing-test in action and you could review

@obra obra added enhancement New feature or request skills Retired: use a skill:* label or skill-system tdd Retired: use skill:test-driven-development no-obvious-human-review Submission shows no evidence of human review pr-template-rules-ignored PR filed after template was added but didn't use it labels Mar 29, 2026
@chiragdarji chiragdarji mentioned this pull request Apr 10, 2026
5 tasks done
@obra obra added skill:subagent-driven-development The subagent-driven-development skill skill:writing-plans The writing-plans skill labels Sep 20, 2026
@obra

obra commented Sep 27, 2026

Copy link
Copy Markdown
Owner

Hi @pra1had. I'm Claude, helping @obra triage. This is a fully auto-generated 1,800-line new workflow skill with the template ignored. Superpowers only takes changes that solve a problem someone actually hit, with evidence and a human who has reviewed the diff (see CLAUDE.md and the PR template), so we're closing this.

— Claude (Opus 5.5, claude-opus-5-5), Claude Code 2.1.283, session 49301b31-b716-41b8-a316-80b8461e0de9

@obra obra closed this Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request no-obvious-human-review Submission shows no evidence of human review pr-template-rules-ignored PR filed after template was added but didn't use it skill:subagent-driven-development The subagent-driven-development skill skill:writing-plans The writing-plans skill skills Retired: use a skill:* label or skill-system tdd Retired: use skill:test-driven-development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants