Skip to content
Back to skills

Bdd Assistant

ASecurity

[UDS] 引導行為驅動開發(BDD)流程,使用 Given-When-Then 格式撰寫場景

  • 75 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 4, 2026
developmenttestingdocumentation

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add AsiaOstrich/universal-dev-standards --skill bdd-assistant --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bdd Assistant?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bdd Assistant
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/asiaostrich-bdd-assistant-44a8c9cf/badge)](https://www.skillsdirectory.com/skills/asiaostrich-bdd-assistant-44a8c9cf)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
source: ../../../../skills/bdd-assistant/SKILL.md
source_version: 1.0.0
translation_version: 1.0.0
last_synced: 2026-02-10
status: current
description: "[UDS] 引導行為驅動開發(BDD)流程,使用 Given-When-Then 格式撰寫場景"
name: bdd
allowed-tools: Read, Write, Grep, Glob
scope: partial
argument-hint: "[feature or spec | 功能或規格]"
---

# BDD 助手

> **語言**: [English](../../../../skills/bdd-assistant/SKILL.md) | 繁體中文

引導行為驅動開發(BDD)流程,使用 Given-When-Then 格式。

## BDD 循環

DISCOVERY ──► FORMULATION ──► AUTOMATION ──► LIVING DOCS

## 工作流程

### 1. DISCOVERY - 探索行為
與利害關係人討論、識別範例和邊界案例、理解「為什麼」。

### 2. FORMULATION - 制定場景
使用通用語言撰寫 Gherkin 場景,確保具體且明確。

### 3. AUTOMATION - 自動化測試
實作步驟定義,撰寫最小化程式碼以通過測試,在自動化中遵循 TDD。

### 4. LIVING DOCUMENTATION - 活文件維護
保持場景為最新狀態,作為共享文件使用,與利害關係人定期審查。

## Gherkin 格式

```gherkin
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` 品質關卡(若功能完成)
> - 與利害關係人審查場景確保業務正確性

## 參考

- 詳細指南:[guide.md](./guide.md)
- 核心規範:[behavior-driven-development.md](../../../../core/behavior-driven-development.md)

Files in this skill

  • SKILL.md2.2 KB
  • bdd-workflow.md11.6 KB
  • gherkin-guide.md8.7 KB
  • guide.md10 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…