Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

bdd-gherkin-specificationBDD 小黄瓜规格

Agent Skill

bdd-gherkin-specification 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,518

周安装

62

GitHub Stars

1

下载量

486
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:bdd-gherkin-specification(BDD 小黄瓜规格)
来源仓库:https://github.com/jzallen/fred_simulations
仓库路径:skills/bdd-gherkin-specification
安装命令:
npx skills add https://github.com/jzallen/fred_simulations --skill bdd-gherkin-specification
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/jzallen/fred_simulations --skill bdd-gherkin-specification

简介

bdd-gherkin-specification 提供 BDD 与 Gherkin 规格写作专家支持,桥接业务需求与技术实现。

  • 使用 Feature、Scenario 等关键字编写可执行规范,促进三方协作。
  • 适用于需求文档化、测试用例生成与自动化流水线集成。
  • 输出应为独立、声明式场景,聚焦行为而非实现细节。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

BDD & Gherkin Specification

You are an expert in Behavior-Driven Development (BDD) and Gherkin specification writing. This skill helps you create clear, executable specifications that bridge business requirements and technical implementation.

What is BDD?

BDD is a methodology for capturing requirements that expresses the behavior of features using real-world examples. It bridges the gap between business stakeholders, developers, and testers by using shared language and concrete scenarios.

What is Gherkin?

Gherkin is a plain-text language for writing BDD scenarios using keywords like Feature, Scenario, Given, When, Then. It's human-readable, business-focused, and executable as automated tests.

When to Use This Skill

USE when:

  • Defining acceptance criteria for user stories
  • Creating living documentation
  • Bridging communication gaps between technical and non-technical stakeholders
  • Specifying complex business rules
  • Working in cross-functional teams

DO NOT USE when:

  • Requirements are purely technical (architecture, refactoring)
  • Team is small and co-located with constant communication
  • Features are too simple to warrant formal specification

Quick Start

Basic Gherkin Structure:

Feature: User Login

  Scenario: Successful login with valid credentials
    Given the user is on the login page
    When the user enters valid credentials
    Then the user should be redirected to the dashboard

Available Resources

Core Documentation

- Basic structure and file naming - Given-When-Then detailed explanation - All keywords (Feature, Scenario, Background, Scenario Outline, Rule) - AND/BUT usage - Read when: Writing your first feature file or need keyword reference

- Declarative vs imperative style - Keep scenarios focused and independent - Consistent language and perspective - Clear outcomes and business value - Read when: Reviewing or improving scenario quality

- Complete feature files across different domains - Product search, shopping cart, authentication - Background and Scenario Outline usage - Side-by-side comparisons (good vs bad) - Read when: Need inspiration or want to see patterns in action

Advanced Topics

- Testing implementation vs behavior - Overly technical language - Dependent scenarios - UI-centric vs behavior-centric - Read when: Troubleshooting or code review

- Directory structure patterns - When to split features - Using Rules to group scenarios - Team collaboration patterns - Read when: Setting up project structure or scaling BDD adoption

- Feature file template to copy - Keywords at a glance - Common patterns - Quick decision tree - Read when: Need fast lookup or reminder

Key Principles

  1. Be Declarative - Describe WHAT behavior should happen, not HOW it's implemented
  2. Stay Focused - One scenario = one behavior (5-10 steps max)
  3. Stay Independent - Scenarios should not depend on each other
  4. Use Business Language - Avoid technical jargon; speak the user's language
  5. Make it Readable - Anyone on the team should understand the scenario

Typical Workflow

  1. Start with Examples - Read examples.md to see patterns
  2. Learn Syntax - Reference gherkin-syntax.md for keywords
  3. Write Scenarios - Use quick-reference.md template
  4. Review Quality - Check against best-practices.md
  5. Avoid Mistakes - Scan anti-patterns.md during review

Quick Tips

  • Write scenarios BEFORE code (they're specifications, not tests)
  • Each scenario should be understandable in isolation
  • Use Background for common setup across scenarios
  • Use Scenario Outline for testing multiple similar cases
  • Use Rule to group related scenarios
  • Keep feature files under 20 scenarios (split if larger)

File Naming Convention

Use lowercase with underscores: user_authentication.feature, shopping_cart_checkout.feature

Remember

BDD scenarios are conversations written down, not test scripts. They should be readable by product owners, developers, and testers alike. If your scenario requires technical knowledge to understand, it's not declarative enough.


For comprehensive guidance, explore the reference/ directory based on your current need.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.96%
按下载量换算170

Claude

34.02%
按下载量换算165

Cursor

17.77%
按下载量换算86

Gemini CLI

10.85%
按下载量换算53

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills