.gemini/skills/bdd-assistant/SKILL.md
[UDS] 引導行為驅動開發(BDD)流程,使用 Given-When-Then 格式撰寫場景
npx skillsauth add asiaostrich/universal-dev-standards bddInstall 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, 推送, 保护分支, 质量门禁.