smithery/wahidyankf

plan-writing-gherkin-criteria

Guide for writing Gherkin acceptance criteria using Given-When-Then syntax for testable requirements.

Installation

$ npx skills add smithery/wahidyankf --skill plan-writing-gherkin-criteria

Summary

  • Guide for writing Gherkin acceptance criteria using Given-When-Then syntax for testable requirements.
  • Covers scenario structure, background blocks, scenario outlines with examples tables, common patterns for authentication/CRUD/validation/error handling, and best practices for clear testable specifications.
  • Essential for writing user stories and plan acceptance criteria

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/wahidyankf.

npx skills add smithery/wahidyankf

Browse all from smithery/wahidyankf

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 4,744 B
  • docs SUMMARY.md 409 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Gherkin Acceptance Criteria Skill

Purpose

This Skill provides comprehensive guidance for writing Gherkin acceptance criteria using Given-When-Then syntax to create clear, testable specifications for features and user stories.

When to use this Skill: writing acceptance criteria for user stories, defining testable requirements in plans, specifying expected behaviour for features, and documenting edge cases and error handling.

Core Concepts

What is Gherkin?

Gherkin is a structured language for writing acceptance criteria using Given-When-Then syntax. It enables:

  • Clear communication: Non-technical stakeholders understand requirements
  • Testable specifications: Scenarios map directly to automated tests
  • Complete coverage: All scenarios and edge cases documented
  • Unambiguous expectations: No room for interpretation

Given-When-Then Structure

Anatomy of a scenario:

Scenario: [Brief description of scenario]
  Given [Initial context/preconditions]
  When [Action or event occurs]
  Then [Expected outcome/postconditions]

Breakdown:

  • Given: Sets up the context (initial state, preconditions, setup)
  • When: Describes the action or event (user action, system event, trigger)
  • Then: Specifies expected outcome (assertions, verification, results)

Journey Coherence

See [Journey Coherence](./reference/step-keyword-cardinality.md) for the full rule text, conforming/non-conforming examples, and the canonical convention link.

Basic Scenario Patterns

See [Basic Scenario Patterns](./reference/basic-scenario-patterns.md) for three worked patterns: simple success path, error handling, and boundary conditions.

Advanced Gherkin Features

See [Advanced Gherkin Features](./reference/advanced-gherkin-features.md) for Background blocks, Scenario Outline with Examples tables, and Data Tables.

Common Domain Patterns

See [Domain Patterns — Auth and CRUD](./reference/domain-patterns-auth-and-crud.md) and [Domain Patterns — Form Validation and API Responses](./reference/domain-patterns-validation-and-api.md) for worked full-feature examples across authentication, CRUD, form validation, and API responses.

Best Practices

See [Writing Clear Scenarios](./reference/writing-clear-scenarios.md) and [Scenario Independence, UI Coupling, and Style](./reference/independence-coupling-and-style.md) for the DO/DON'T rules, scenario independence, avoiding UI coupling, and declarative vs imperative style — each with good/bad examples.

Common Mistakes

See [Common Mistakes](./reference/common-mistakes.md) for the four most common Gherkin mistakes — too many steps, asserting internal implementation, ambiguous language, and testing multiple behaviours — each with a fix.

Phase Gate Acceptance Checks

See [Phase Gate Acceptance Checks](./reference/phase-gate-acceptance-checks.md) for how phase gate checklist items in delivery.md meet the same testability standard as Gherkin scenarios.

Integration with Plans

See [Integration with Plans](./reference/integration-with-plans.md) for the plan-level acceptance criteria format and the user story acceptance criteria format.

Reference Documentation

Primary Convention: [Acceptance Criteria Convention](../../../repo-governance/development/infra/acceptance-criteria.md)

Directory Structure Convention: [Specs Directory Structure Convention](../../../repo-governance/conventions/structure/specs-directory-structure.md) — Where to place feature files in the specs/ directory

Related Conventions: [Plans Organization](../../../repo-governance/conventions/structure/plans.md), [Maker-Checker-Fixer Pattern](../../../repo-governance/development/pattern/maker-checker-fixer.md)

Related Skills: repo-practicing-trunk-based-development, repo-applying-maker-checker-fixer

Related Agents: plan-maker, plan-checker, plan-execution-checker

External Resources: Official Gherkin Reference, Writing Better Gherkin


This Skill packages essential Gherkin acceptance criteria knowledge for writing clear, testable specifications. For additional patterns and examples, consult external Gherkin resources.