بنقرة واحدة
bdd
[UDS] Guide through Behavior-Driven Development workflow
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
[UDS] Guide through Behavior-Driven Development workflow
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
| name | bdd |
| scope | partial |
| description | [UDS] Guide through Behavior-Driven Development workflow |
| allowed-tools | Read, Write, Grep, Glob |
| argument-hint | [feature or spec | 功能或規格] |
| status | reference |
⚠️ Status: Reference(參考用,非可執行流程) — BDD 生命週期協調(4 階段循環、Gherkin scaffolding、RED/GREEN 執行)已於 2026-04-28 移至 adoption layer(XSPEC-095)。此處保留 Gherkin 格式定義、Three Amigos 結構、BDD 循環圖供參考。 Lifecycle orchestration has moved to the adoption layer (XSPEC-095); this document is reference-only. For enforced execution, use your adoption layer's toolchain.
Guide through the Behavior-Driven Development (BDD) workflow using Given-When-Then format.
引導行為驅動開發(BDD)流程,使用 Given-When-Then 格式。
DISCOVERY ──► FORMULATION ──► AUTOMATION ──► LIVING DOCS
^ │
└────────────────────────────────────────────┘
📖 以下為流程的參考結構,非可執行步驟;自動化/強制執行請用 adoption layer 工具鏈(XSPEC-095)。 The steps below are a reference structure, not an executable workflow.
Discuss with stakeholders, identify examples and edge cases, understand the "why".
Write Gherkin scenarios using ubiquitous language, make them concrete and specific.
Implement step definitions, write minimal code to pass, follow TDD within automation.
Keep scenarios current, use as shared documentation, review with stakeholders.
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 - Start interactive BDD session | 啟動互動式 BDD 會話
/bdd "user can reset password" - BDD for specific feature | 針對特定功能
/bdd login-feature.feature - Work with existing feature file | 處理現有功能檔案
After /bdd completes, the AI assistant should suggest:
BDD 場景已定義。建議下一步 / BDD scenarios defined. Suggested next steps:
- 執行
/tdd實作步驟定義 ⭐ Recommended / 推薦 — Implement step definitions- 執行
/checkin品質關卡(若功能完成)— Quality gates (if feature complete)- 與利害關係人審查場景確保業務正確性 — Review scenarios with stakeholders
完整的 AI 行為定義請參閱對應的命令文件:
/bddFor complete AI agent behavior definition, see the corresponding command file:
/bdd
[UDS] 引導 CI/CD 管線設計、配置和優化
Guide CI/CD pipeline design, configuration, and optimization. Use when: setting up pipelines, optimizing build times, configuring deployment stages. Keywords: CI/CD, pipeline, GitHub Actions, deployment, build.
在编写规格前进行结构化 AI 辅助头脑风暴。 使用时机:功能规划、创意发想、问题定义。 关键字:brainstorm, persona, multi-critic, HMW, SCAMPER, 头脑风暴, 发想。
[UDS] 在撰寫規格前進行結構化 AI 輔助腦力激盪
[UDS] Structured AI-assisted brainstorming before spec creation
[UDS] 从规格衍生 BDD 场景、TDD 骨架或 ATDD 表格