with one click
bdd-assistant
[UDS] 引導行為驅動開發(BDD)流程,使用 Given-When-Then 格式撰寫場景
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
[UDS] 引導行為驅動開發(BDD)流程,使用 Given-When-Then 格式撰寫場景
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
| name | bdd-assistant |
| source | ../../../../skills/bdd-assistant/SKILL.md |
| source_version | 1.0.0 |
| translation_version | 1.0.0 |
| last_synced | "2026-02-10T00:00:00.000Z" |
| status | current |
| description | [UDS] 引導行為驅動開發(BDD)流程,使用 Given-When-Then 格式撰寫場景 |
語言: English | 繁體中文
⚠️ 狀態:參考用(非可執行流程) — BDD 生命週期協調(4 階段循環、Gherkin scaffolding、RED/GREEN 執行)已於 2026-04-28 移至 adoption layer(XSPEC-095)。此處保留 Gherkin 格式定義、Three Amigos 結構、BDD 循環圖供參考;需要強制執行的流程請改用你的 adoption layer 工具鏈。
引導行為驅動開發(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品質關卡(若功能完成)- 與利害關係人審查場景確保業務正確性
[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 表格