bdd
BDD — Behavior Driven Development
BDD 用結構化的自然語言(Gherkin)定義軟體行為,並用測試框架自動驗證。
檔案組織
- 依照功能分出不同 Context 資料夾
- steps 資料夾用來存放 Step definitions,因為同一 Context 很常共用 Step 所以每個 Context 建立一個檔案即可
- 如果有多個 Context 共用的 Step 也可以提取到 steps/shared.steps.ts 資料夾中定義 step
- 根據不同的測試框架可能還會有 supports 之類的資料夾
More from cacaorick/skills
ai-dev-workflow
由文件串起完整的 AI 開發流程。涵蓋領域建模與程式碼組織(DDD)以及 AI 開發規範設定(Agent 規範)。Use when (1) the user asks to organize code by business features or define naming conventions, (2) creating or updating AGENTS.md / project rule files, (3) starting a new project from scratch, or (4) the agent needs the full development lifecycle.
12ddd
DDD 領域驅動設計 - 戰略設計。專注於產出 Domain Model 文件,包括識別核心域/支撐域/通用域、拆分 Bounded Context、定義 Ubiquitous Language 與 Context Map。Use when (1) the user asks how to split Bounded Contexts, (2) the user asks to define Ubiquitous Language, (3) the user wants to create a Domain Model document, (4) the project uses DDD architecture and requires strategic design.
1agents-md
引導 AI Agent 閱讀並遵守專案的 AGENTS.md 規範。AGENTS.md 是給 AI 看的專案說明文件,定義了技術棧、資料夾架構、專案架構、開發流程等約束。Use when:任何任務開始前、需要了解技術棧、資料夾架構、專案架構、開發流程時。AI Agent 不可做出違抗 AGENTS.md 的行為。
1temp-folder
當 AI Agent 需要建立非專案所需的臨時檔案時(如測試輸出、生成的程式碼草稿、除錯檔案等),自動在專案根目錄建立 `.ai` 資料夾,並確保該資料夾已被加入 `.gitignore`。使用時機:(1) 當 AI 需要產生臨時/測試性質的檔案,(2) 當 AI 產生的檔案不是專案正式所需。
1