Skip to content
Agentmart
Submit a tool

product-user-tdd-tests

Transition user stories into Gherkin .feature files.

Skill by carson-sweet

IndexedAGPL-3.0★ 7
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/carson-sweet-product-user-tdd-tests

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Transition user stories into Gherkin .feature files.

Use cases: testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/product-user-tdd-tests

What's inside

Skill name
product-user-tdd-tests
Description
Transition user stories into Gherkin .feature files.
License
AGPL-3.0
Instructions
59 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: missing

Files (1)

  • SKILL.md

SKILL.md (first lines)

!`bash ${CLAUDE_SKILL_DIR}/../../hooks/read-state.sh session-state`

<preflight-guard>
STOP. Before executing this skill, check: does .sweetclaude/state/sweetclaude.yaml or .sweetclaude/state/phase.yaml exist in the project directory? If NEITHER, do not proceed. Instead say: "This project is not configured for SweetClaude. Let me run the pre-flight check." Then invoke the sweetclaude master skill (Skill tool, skill: "sweetclaude:master") and run its pre-flight. Return here only after the pre-flight passes.
</preflight-guard>

# Gherkin Bridge

Convert user story $ARGUMENTS into a Gherkin .feature file.

## Process

1. **Read the user story.** Find the story in `.sweetclaude/` under `stories/EPIC-XXX/`. Extract all acceptance criteria.

2. **Generate .feature file.** For each acceptance criterion, write one or more Gherkin scenarios:

```gherkin
Feature: [Story title]
  As a [user type from story]
  I want [goal from story]
  So that [benefit from story]

  Scenario: [Acceptance criterion - happy path]
    Given [precondition]
    When [action]
    Then [expected result]
    And [additional assertions]

  Scenario: [Acceptance criterion - error case]
    Given [precondition]
    When [invalid action]
    Then [expected error behavior]
```

3. **Cover all paths.** For each acceptance criterion:
   - Happy path scenario
   - Error/validation scenarios
   - Edge cases explicitly mentioned in the story
   - Boundary conditions

4. **Save .feature file** alongside the story: `stories/EPIC-XXX/story-XXX.feature`

5. **Update traceability.** Append to `traceability/requirements-map.md`:
   ```
   | Story-XXX | story-XXX.feature | [scenarios listed] | [tests: pending] | [impl: pending] |
   ```

6. **Present to user.** Show the .feature file. This is the contract that drives test generation.

## Rules

- Standard Gherkin syntax (Given/When/Then/And/But).
- One .feature file per user story.
- Scenarios are concrete and testable. No vague language.
- Include data examples where behavior varies by input (Scenario Outline + Examples).
- The .feature file is the source of truth for TDD Level 3. The test writer agent reads only this.

From carson-sweet/sweetclaude, AGPL-3.0.

More from carson-sweet/sweetclaude

Signals

Stars
7
Forks
3
Open issues
4
Last commit (this folder)
Oct 20, 2026 (9 days ago)
Last release
Oct 24, 2026 (5 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
AGPL-3.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from carson-sweet

Cite this page

product-user-tdd-tests skill. Agent Mart. https://agentmart.dev/skills/carson-sweet-product-user-tdd-tests (last updated 2026-10-24)