prd-to-gherkin

prd-to-gherkin is a skill for Claude Code from cuongtl1992/vibe-skills. It costs 152 tokens per session (3,261 once invoked), scanned A, original, MIT.

A converter that turns a product requirements document (PRD) into Gherkin feature files. Gherkin is a structured format for describing behavior with steps such as Given, When, and Then.

In plain words
What is it for?
Use it to create BDD scenarios from a PRD or specification, with business rules grouped under explicit rules.
Why use it?
It turns informal requirements into consistent, testable scenarios that developers and testers can share.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ai-first-engineering plugin — 4 skills shipped together

Good fit Use it to create BDD scenarios from a PRD or specification, with business rules grouped under explicit rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cuongtl1992/vibe-skills/prd-to-gherkin
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cuongtl1992/vibe-skills --skill prd-to-gherkin
Clone the repo
git clone --depth 1 https://github.com/cuongtl1992/vibe-skills

Made for: Claude Code.

Or install ai-first-engineering, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for prd-to-gherkin

README.md
[![agentmods](https://agentmods.dev/badge/skills/cuongtl1992/vibe-skills/prd-to-gherkin/github.svg)](https://agentmods.dev/skills/cuongtl1992/vibe-skills/prd-to-gherkin)
Your own site
<a href="https://agentmods.dev/skills/cuongtl1992/vibe-skills/prd-to-gherkin"><img src="https://agentmods.dev/badge/skills/cuongtl1992/vibe-skills/prd-to-gherkin/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for prd-to-gherkin

Your own site · 80×15
<a href="https://agentmods.dev/skills/cuongtl1992/vibe-skills/prd-to-gherkin"><img src="https://agentmods.dev/badge/skills/cuongtl1992/vibe-skills/prd-to-gherkin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 152 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,261 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00152 $0.03261
Opus 5 $0.00076 $0.01631
Sonnet 5 $0.00030 $0.00652
Haiku 4.5 $0.00015 $0.00326

Measured 12d ago against content hash 3d70286d6533, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

prd-to-gherkin scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ai-first-engineering/skills/prd-to-gherkin/SKILL.md · 367 lines

How it starts

The opening of the file, as written. The whole thing — 367 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PRD to Gherkin Feature File Writer

Convert Lean PRD thành Gherkin .feature files. Mỗi scenario bắt buộc nằm trong Rule: block — không có scenario nào được phép đứng độc lập.

Ngôn ngữ

  • Gherkin syntax (Feature, Rule, Scenario, Given, When, Then, And, But, Background, Scenario Outline, Examples) → tiếng Anh
  • Nội dung steps, Rule description, Feature descriptiontiếng Việt
  • Tag names → tiếng Anh (lowercase, kebab-case)

Ví dụ:

Feature: Xuất hóa đơn điện tử
  As a chủ cửa hàng
  I want xuất hóa đơn trực tiếp từ POS
  So that tránh nhập lại dữ liệu thủ công

  Rule: Chỉ merchant có gói trả phí active mới được xuất hóa đơn

    @api @smoke
    Scenario: Merchant gói trả phí xuất hóa đơn thành công
      Given Minh có gói trả phí đang active
      And Minh có đơn hàng đã hoàn thành
      When Minh yêu cầu xuất hóa đơn cho đơn hàng
      Then hóa đơn được tạo với trạng thái "Nháp"

Core Mental Model: PRD → Example Mapping → Feature File

PRD Section              →  Gherkin Construct
─────────────────────────────────────────────
Feature Name             →  Feature: <tên>
Bối cảnh                 →  Feature description (narrative)
User Stories (As a...)   →  Persona context trong Background hoặc step names
Business Rule Must Have  →  Rule: <business rule> → Scenarios
Business Rule Should Have →  Rule: <business rule> → Scenarios (tag @p2)
Business Rule Won't Have →  Không generate scenario
Open Questions           →  # TODO: comment trong feature file

Rule: keyword là bắt buộc — nó nhóm scenarios theo business rule, tạo traceability ngược về PRD.

Quy tắc tuyệt đối: Scenario PHẢI nằm trong Rule

# ✅ ĐÚNG — scenario nằm trong Rule
Rule: Mã số thuế phải đúng format 10 hoặc 13 chữ số

  Scenario: Merchant nhập mã số thuế 10 chữ số hợp lệ
    ...

  Scenario: Hệ thống từ chối mã số thuế sai format
    ...

# ❌ SAI — scenario không nằm trong Rule, KHÔNG BAO GIỜ LÀM ĐIỀU NÀY
Scenario: Merchant nhập mã số thuế
  ...

Read the full file on GitHub · 367 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 367 lines · 0 tokens per session scan A 3d70286d6533

Subscribe to this mod's changes

prd-to-gherkin is a skill published in the GitHub repository cuongtl1992/vibe-skills (10 stars, last pushed 5mo ago), licensed MIT. It adds 152 tokens to every session and 3,261 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

pptx-html-fidelity-audit

Audit a python-pptx export against its source HTML deck, identify layout/content drift (footer overflow, cropped content, missing italic/em, lost styling, off-rhythm spacing), and re-export with strict footer-rail + cursor-flow layout discipline. Use this skill whenever the user has a .pptx that was generated from an…

nexu-io/open-design · 185 tokens

foundry-hosted-agent-validation

Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.

microsoft/agent-framework · 82 tokens

typescript-providers

Implement, modify, test, or document TypeScript provider packages under ts/packages/providers, including framework adapters for OpenAI, Anthropic, Google, LangChain, Mastra, Vercel, LlamaIndex, Cloudflare, and Claude Agent SDK. Use for provider-specific TS work; do not use for core-only changes.

ComposioHQ/composio · 70 tokens

spreadsheet-direct-verification

Use a deterministic Python/openpyxl inspection pass to verify workbook structure, counts, marked rows, and output-file existence when delegated spreadsheet summaries seem inconsistent.

HKUDS/OpenSpace · 36 tokens

spreadsheet-create-verify-gate

Create or edit Excel workbooks with openpyxl-specific pitfall handling, anchored preflight audit, and deterministic post-write proof that every criterion is satisfied.

HKUDS/OpenSpace · 38 tokens

spreadsheet-proof-gate-merged-fedf41-merged

The derived skill is complete and provides a meaningful enhancement.

HKUDS/OpenSpace · 12 tokens