Skip to content

feat: add acceptance-criteria skill - #1112

Closed
chiragdarji wants to merge 2 commits into
obra:mainfrom
chiragdarji:feat/acceptance-criteria-skill
Closed

chiragdarji wants to merge 2 commits into
obra:mainfrom
chiragdarji:feat/acceptance-criteria-skill

Conversation

@chiragdarji

Copy link
Copy Markdown

What problem are you trying to solve?

The existing workflow jumps from brainstorming (design approval) directly to writing-plans (implementation tasks). There is no step that converts approved design decisions into verifiable, pass/fail behavioral contracts before implementation begins. Without this, writing-plans produces tasks like "make sure the filter works correctly" — untestable, not traceable — and verification-before-completion has nothing concrete to check against.

The specific failure mode: specs get approved, plans get written, features get built, and only at code review do people discover the implementer interpreted a behavior differently than the designer intended.

What does this PR change?

Adds a acceptance-criteria skill. Sits between superpowers:brainstorming and superpowers:writing-plans. Requires reading the approved spec (not working from memory), extracts all behavioral paths (happy, alternate, error, boundary), enforces Given/When/Then format and SMART properties on every criterion, runs a coverage check mapping each spec section to at least one AC, gets human partner review, then hands off a test contract to writing-plans.

Is this change appropriate for the core library?

  • Would it be useful to someone on a completely different project? Yes — any project building user-facing behavior benefits from testable ACs before implementation begins.
  • Is it project/team/tool-specific? No — Given/When/Then and SMART criteria are domain-agnostic.
  • Does it integrate or promote a third-party service? No.

What alternatives did you consider?

  1. Extending brainstorming to produce ACs inline — rejected. Brainstorming ends with a spec document; adding AC writing conflates design exploration with behavioral specification, and ACs need human review as a separate gate.
  2. Extending writing-plans to derive ACs from the spec — rejected. ACs require human review and approval before a plan can be written; they are a prerequisite to planning, not an output of it.
  3. Leaving AC writing to the human partner — rejected. The agent is the one writing the spec and the plan; if it doesn't write ACs, they don't get written before implementation starts.

Does this PR contain multiple unrelated changes?

No. One skill, one file: skills/acceptance-criteria/SKILL.md.

Existing PRs

Environment tested

Harness Harness version Model Model version
Claude Code latest Claude Sonnet claude-sonnet-4-5

Evaluation

  • Initial prompt: "We just finished brainstorming the cart persistence feature. Now write the acceptance criteria before we plan it."
  • Adversarial pressure scenarios run: 4 (deadline pressure + "small feature"; writing from memory without reading spec; vague adjectives in Then clause; multiple outcomes in Then as comma list)
  • Before: Agent wrote vague behavioral statements ("cart should work reliably"), skipped error paths, or jumped directly to writing-plans without AC step.
  • After: Agent reads spec before writing, extracts all behavioral paths including errors and boundaries, enforces Given/When/Then with SMART check, flags untestable ACs for rewrite, runs coverage check against spec sections, gets explicit human partner review before handing off.

Rigor

  • Used superpowers:writing-skills process and completed adversarial pressure testing (results above)
  • Tested adversarially, not just on the happy path — two gaps found and closed:
    1. Vague adjectives ("helpful," "clear," "intuitive") not in the original Red Flags list → expanded to name more examples + added catch-all rule
    2. Multiple outcomes in Then written as comma list (not the word "and") bypassed the original check → Red Flag now covers commas and bullet points, not just "and"
  • Did not modify any existing skills or carefully-tuned content

Human review

  • A human has reviewed the COMPLETE proposed diff before submission

Adds Given/When/Then acceptance criteria skill that sits between
brainstorming and writing-plans. Enforces SMART properties on each
criterion, requires spec approval before writing, maps every
behavioral requirement to a verifiable AC, and hands off directly
to writing-plans with a test contract.
@obra

obra commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Hi @chiragdarji. I'm Claude, helping @obra triage. This adds a new workflow skill (one of three filed together) without a problem you've hit or any evaluation. 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 26, 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 skills Retired: use a skill:* label or skill-system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants