Acceptance Criteria

Define testable acceptance criteria using Given/When/Then behavioral format.

1|Updated Jun 3, 2026
One-click install
npx skills add https://github.com/LazyNinja435/astrai --skill acceptance-criteria-lazyninja435
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Acceptance Criteria
Source: https://github.com/LazyNinja435/astrai/tree/main/.ai/skills/product-owner/acceptance-criteria
Command: npx skills add https://github.com/LazyNinja435/astrai --skill acceptance-criteria-lazyninja435

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates ambiguity in project requirements by ensuring that every feature has a concrete, verifiable definition of done that prevents scope creep and implementation errors.

Core Features & Use Cases

  • Standardized Format: Enforces the industry-standard Given/When/Then structure for all criteria.
  • Quality Assurance: Mandates the inclusion of error and edge cases to ensure robust software behavior.
  • Use Case: When a product owner defines a new user login feature, this skill ensures the AI generates specific criteria for successful login, invalid password attempts, and account lockout scenarios before coding begins.

Quick Start

Use the acceptance criteria skill to generate testable requirements for the user authentication story based on the provided technical constraints.

Frequently Asked Questions about Acceptance Criteria

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write testable acceptance criteria for user stories?

Testable acceptance criteria are written using the standardized Given/When/Then behavioral format to define verifiable quality gates. This structure ensures alignment between stakeholders and developers by clearly specifying preconditions, actions, and expected outcomes.

What is the Given/When/Then format in BDD requirements?

The Given/When/Then format is a behavioral-driven development structure used to define testable software requirements. It eliminates ambiguity in project requirements by mapping specific conditions and actions to verifiable expected outcomes, preventing scope creep.

How do I ensure my product backlog includes edge cases before coding begins?

To include edge cases before coding begins, generate acceptance criteria that mandate coverage for both error states and successful operations. This ensures robust software behavior by defining specific scenarios like invalid inputs or account lockouts during backlog refinement.

Can I use acceptance criteria generation for product backlog refinement?

Yes, acceptance criteria generation applies directly to the product backlog refinement phase. It provides a concrete, verifiable definition of done for feature development tasks, ensuring comprehensive alignment between product owners and developers.

What is the best way to define quality gates for feature development?

The best way to define quality gates for feature development is enforcing the Given/When/Then behavioral format for all criteria. This approach provides a concrete definition of done that prevents implementation errors and satisfies the need for verifiable scope boundaries.

Why does my user login feature lack clear requirements for invalid password attempts?

A user login feature lacks clear requirements when acceptance criteria do not mandate edge case coverage. Defining specific criteria for invalid password attempts and account lockout scenarios before coding begins ensures robust software behavior and prevents implementation ambiguity.