locales/zh-CN/skills/bdd-assistant/SKILL.md
引导行为驱动开发(BDD)流程,使用 Given-When-Then 格式撰写场景。 使用时机:定义行为场景、撰写 Gherkin、三剑客会议、BDD 流程。 关键字:bdd, gherkin, given-when-then, scenario, feature, 行为驱动, 场景, 验收。
npx skillsauth add asiaostrich/universal-dev-standards locales/zh-CN/skills/bdd-assistantInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
语言: English | 简体中文
引导行为驱动开发(BDD)流程,使用 Given-When-Then 格式。
DISCOVERY ──► FORMULATION ──► AUTOMATION ──► LIVING DOCS
与利害关系人讨论、识别范例和边界案例、理解「为什么」。
使用通用语言撰写 Gherkin 场景,确保具体且明确。
实现步骤定义,撰写最小化代码以通过测试,在自动化中遵循 TDD。
保持场景为最新状态,作为共享文档使用,与利害关系人定期审查。
Feature: User Login
As a registered user
I want to log in to my account
So that I can access my dashboard
Scenario: Successful login
Given I am on the login page
When I enter valid credentials
Then I should see my dashboard
| 角色 | 关注点 | Role | Focus | |------|--------|------|-------| | 业务 | 什么和为什么 | Business | What & Why | | 开发 | 如何实现 | Development | How | | 测试 | 假设情况 | Testing | What if |
/bdd - 启动互动式 BDD 会话/bdd "user can reset password" - 针对特定功能进行 BDD/bdd login-feature.feature - 使用现有的 feature 文件/bdd 完成后,AI 助手应建议:
BDD 场景已定义。建议下一步:
- 执行
/tdd实现步骤定义- 执行
/checkin品质关卡(若功能完成)- 与利益相关者审查场景确保业务正确性
tools
[UDS] 從規格衍生 BDD 場景、TDD 骨架或 ATDD 表格
development
[UDS] /methodology: 選擇並追蹤開發方法論(SDD/BDD/TDD)。 Use when: 選擇方法論、切換開發模式、查詢當前方法論狀態。 若要查詢各階段對應指令請用 /dev-workflow。
testing
[UDS] Derive BDD scenarios, TDD skeletons, or ATDD tables from specifications
development
[UDS] Create or review specification documents for Spec-Driven Development