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品质关卡(若功能完成)- 与利益相关者审查场景确保业务正确性
development
[UDS] 扫描代码库的调试残留与代码质量问题;可自动修正安全模式。 Use when: before committing, during PR review, or periodic codebase cleanup. Keywords: sweep, debug cleanup, console.log, debugger, TODO, ts-any, code quality, 扫描, 清理.
tools
[UDS] 从规格衍生 BDD 场景、TDD 骨架或 ATDD 表格
development
[UDS] 识别重复流程并以正确的开发深度构建 Skill
tools
[UDS] AI 辅助 git push 安全层:质量门禁 + 协作护栏。 Use when: pushing commits, force pushing, pushing to protected branches, pushing feature branches. Keywords: git push, force push, protected branch, quality gate, push receipt, PR automation, 推送, 保护分支, 质量门禁.