bdd-spec
Use INSTEAD OF superpowers:brainstorming when the user wants structured acceptance criteria in Given/When/Then format. This is the right choice when requirements need to be testable — not just designed. Trigger: "spec this out", "acceptance criteria", "BDD", "behavior driven", "what should happen when", "edge cases", "define requirements", or any pre-implementation requirements discussion where the output should be runnable scenarios, not just a design doc. Produces Gherkin-ready acceptance criteria. Not for generating test code — use bdd-generate after this.
What this skill does
# Acceptance Criteria Co-Author
## Goal
Co-author acceptance criteria with the user before code exists. Produce structured Given/When/Then specs that define *what* "done" means — the source of truth that feeds the SDLC pipeline (architect plans, builder TDD targets, validator reports, bdd-generate scaffolding).
Stance: assume the user is learning BDD. Guide, don't lecture. Ask questions, don't assert assumptions.
## Dependencies
### Tools
- None required — this is a conversational skill that produces markdown output.
### Connectors
- **SDLC pipeline** — Output feeds into: architect (plan documents), builder (TDD targets), validator (PASS/FAIL rows), and `bdd-generate` (Gherkin scaffolding). The handoff to `bdd-generate` is optional.
## Context
### Output Format
```markdown
## Acceptance Criteria: {Feature Name}
### AC-1: {Descriptive title}
**Given** {precondition — state before the action}
**When** {single action the user or system takes}
**Then** {verifiable, measurable outcome}
and {additional outcome on indented line}
**Edge cases:**
- {What should happen when...?}
**Notes:** {Open questions, V2 considerations, or scope decisions}
```
Design rules:
- **AC-N numbering** — provides traceability from spec → plan → implementation → verification
- **Bold Given/When/Then** — human-readable markdown, not Gherkin. Conversion happens in `bdd-generate`
- **One action per When** — if "When" contains "and", split into separate criteria
- **Verifiable Then** — every outcome must be observable and testable. "The system works correctly" is not verifiable. "The system returns HTTP 200 with `user_id`" is.
- **Scenario Outline tables** — consolidate when 3+ edge cases follow the same pattern:
```markdown
### AC-N: Input validation (parameterized)
**Given** a user on the registration form
**When** the user submits with `<input>`
**Then** the system displays `<error_message>`
| input | error_message |
|-------|---------------|
| empty email | "Email is required" |
| "not-an-email" | "Invalid email format" |
```
### Anti-Patterns
| Anti-Pattern | Example | Fix |
|---|---|---|
| Implementation-as-criteria | "Then the system stores a bcrypt hash" | "Then the password is stored securely" |
| God criterion | AC covers login + session + redirect + audit | Split into AC-1, AC-2, AC-3, AC-4 |
| Missing the Given | "When the user clicks delete Then removed" | "Given a user viewing their own item When..." |
| Non-verifiable Then | "Then handles the error gracefully" | "Then displays 'Unable to process' and logs correlation ID" |
### Positive Patterns
- **Negative Path** — spec what should *not* happen: "Then does not reveal whether the email exists"
- **State Transition** — "Given order in 'pending' When payment confirmed Then transitions to 'confirmed'"
- **Permission Matrix** — Scenario Outline for role-based access (role × action × result table)
### Edge Case Probing
For structured probing questions organized by domain (input validation, auth, state integrity, concurrency, boundaries, errors, external deps, UX states), consult:
→ **`references/edge-case-checklist.md`**
For BDD terminology definitions, consult:
→ **`references/bdd-glossary.md`**
## Process
### Step 0: Load Stored Feedback
```bash
python ${CLAUDE_PLUGIN_ROOT}/scripts/feedback_manager.py autonomous-sdlc show-feedback
```
Apply relevant feedback: **spec_writing**, **bdd_workflow**, **general**.
### Step 1: Understand Feature Intent
Redirect implementation language to behavior language. "I need JWT authentication" → "Users need to log in and stay authenticated across requests."
Ask:
- Who is the actor? (End user, admin, system, external service?)
- What is the core behavior?
- Why does this matter?
- What does success look like from the actor's perspective?
Red flag: if the user describes *how* instead of *what*, gently redirect.
### Step 2: Write the Happy Path
Coach the Given/When/Then for the primary success scenario:
- **Given** — What must be true before the action?
- **When** — What single action triggers the behavior?
- **Then** — What is the observable result?
Write it. Read it back. Ask: "Does this capture what you mean?"
### Step 3: Probe for Error Scenarios
Think hard about how this behavior can fail before asking — the failure modes you miss here become the bugs that ship. Reason through the categories in the checklist rather than picking the obvious ones.
Consult `references/edge-case-checklist.md` for structured probing questions.
Present edge cases as questions, not assertions. Let the user decide what matters for V1:
- "What should happen when the user submits an empty form?"
- "What if the database is unreachable?"
- "What about concurrent updates?"
For each confirmed edge case, write a full AC block or add to an existing AC's edge case list.
### Step 4: Look for Scenario Outlines
When 3+ edge cases follow the same behavioral pattern, consolidate into a parameterized table. Signs: "It should reject empty, too-long, and malformed input" or "Different roles have different permissions."
### Human Checkpoint: Review and Refine
Read back all acceptance criteria, then:
1. **Scope check** — "Are we trying to do too much for V1? What can wait?"
2. **Completeness check** — "Is there a scenario we haven't considered?"
3. **Verifiability check** — "Can each Then be tested automatically?"
4. **One more thing** — "Anything else before we lock these down?"
Mark deferred items with "V2:" prefix in a Notes section.
**Wait for user confirmation before considering the spec complete.**
## Output
Structured acceptance criteria in markdown, ready to:
- Slot into the `## Acceptance Criteria` section of an architect plan document
- Feed into `bdd-generate` for Gherkin scaffolding
- Serve as standalone specification artifacts
AC-N numbers provide traceability across the entire SDLC pipeline.
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.