Bdd Scenario Builder
Testing & Qualitybdd-scenario-builderBdd Scenario Builder is an Agent Skill for testing & quality published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Behavior-Driven Development (BDD) で振る舞いを定義・シナリオ化するためのガイド。Given-When-Then と Gherkin で受け入れ条件やエッジケースを整理し、失敗パターンや小さく始める導入ステップを含めて、業務言語で明確なシナリオを書くときに使う。
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/bdd-scenario-builder/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/bdd-scenario-builder, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
BDD Scenario Builder
使い方(最短手順)
- 成功条件を会話で揃える(業務用語で具体例を話す)
- シナリオを 3–5 本書く:ハッピーパス先行、1 本は 3–7 ステップ、宣言的に(UI操作や実装詳細は避ける)
- 自動化レイヤを決める:まず速い層(サービスやロジック)で回し、必要なものだけ E2E/UI に
シナリオの質チェック
- 特定の振る舞いのみをテストしているか(スコープ過大にしない)
- 業務言語で「何を」書いているか(手順書・UI操作を書かない)
- 他シナリオへの依存がないか
- ステップは 3–7 で収まっているか
タグと整理
- 例:
@smoke基本確認,@securityセキュリティ,@wip作業中,@critical重要フロー - Feature/Rule/Scenario のまとまりごとにタグでフィルタを想定して付ける
失敗パターンと対策(要約)
- 細かすぎて手順書化 → 成功条件を先に書き、UI詳細は後回し
- シナリオ過多で陳腐化 → 重要フローに絞り、常に直す少数に維持
- 自動テストが遅すぎる → 速い層でも検証し、E2E は代表ケースのみ
小さく始める
- 重要機能を 1 つ選ぶ
- シナリオを 5 本以内に絞る(ハッピーパス+主要エッジ)
- 自動化できるものだけ実装し、継続運用を優先
TDD との違い(簡潔に)
- TDD: 設計と実装品質をテストで前進させる
- BDD: 認識合わせを例と会話で前進させる(両立可)
追加リソース
- 詳細例: references/examples.md
- 失敗パターン詳細: references/pitfalls.md
- 定義と出典: references/intro.md
- コピペ用テンプレ: assets/gherkin-template.feature