behavior-driven-development

behavior-driven-development is a skill for Claude Code from FradSer/dotclaude. It costs 48 tokens per session (1,261 once invoked), scanned A, original, MIT.

A development method that describes expected software behaviour with concrete examples before implementation, often using Given, When, and Then scenarios. It includes TDD, or test-driven development, where tests guide the code through small red, green, and refactor steps.

In plain words
What is it for?
Use it to clarify requirements, write executable behaviour scenarios, and implement features or bug fixes with tests written before production code.
Why use it?
It reduces misunderstandings about what a feature or fix should do and creates tests for the agreed behaviour. Examples can also give developers and non-developers a shared description.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the superpowers plugin — 8 skills, 1 agent shipped together

Good fit Use it to clarify requirements, write executable behaviour scenarios, and implement features or bug fixes with tests written before production code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fradser/dotclaude/behavior-driven-development
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add FradSer/dotclaude --skill behavior-driven-development
Clone the repo
git clone --depth 1 https://github.com/FradSer/dotclaude

Made for: Claude Code.

Or install superpowers, the plugin that ships this one along with the rest of its 8 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for behavior-driven-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/fradser/dotclaude/behavior-driven-development/github.svg)](https://agentmods.dev/skills/fradser/dotclaude/behavior-driven-development)
Your own site
<a href="https://agentmods.dev/skills/fradser/dotclaude/behavior-driven-development"><img src="https://agentmods.dev/badge/skills/fradser/dotclaude/behavior-driven-development/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for behavior-driven-development

Your own site · 80×15
<a href="https://agentmods.dev/skills/fradser/dotclaude/behavior-driven-development"><img src="https://agentmods.dev/badge/skills/fradser/dotclaude/behavior-driven-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,261 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.01261
Opus 5.5 $0.00019 $0.00504
Sonnet 5.5 $0.00010 $0.00252
Haiku 4.5 $0.00005 $0.00126

Measured 22d ago against content hash 88ed51d96a9e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

behavior-driven-development scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 22d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

superpowers/skills/behavior-driven-development/SKILL.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Behavior-Driven Development (BDD) Skill

This skill provides a comprehensive guide to applying Behavior-Driven Development principles to your coding tasks. BDD is not just about tools; it's a methodology for shared understanding and high-quality implementation.

How to Use This Skill

When the user asks for a feature, bug fix, or refactor, apply the following mindset:

  1. Understand Behavior First: Do not start coding until you know what the system should do.
  2. Define Scenarios: Create or ask for concrete examples (Gherkin) of the expected behavior.
  3. Drive Implementation with Tests: Use the Red-Green-Refactor cycle.

Core Concepts

1. The BDD Cycle

The process flows from requirements to code:

  • Discovery: Clarify requirements through examples (The "Three Amigos").
  • Formulation: Write these examples as specific scenarios (Given/When/Then).
  • Automation: Implement using TDD.

See ./references/bdd-best-practices.md for a detailed guide.

2. Writing Scenarios (Gherkin)

Scenarios are your "Executable Specifications".

  • Keep them declarative (business focus).
  • Avoid technical jargon and UI details.
  • One behavior per scenario.
  • Use bdd-specs.md as the planning-stage scenario inventory in the superpowers workflow. During brainstorming and plan writing, keep the reviewed Given/When/Then scenarios in docs/plans/.../bdd-specs.md so design review, task decomposition, and sprint contracts all read from the same source.
  • Store executable scenarios in .feature files, NOT as code comments - once implementation begins, translate the scenarios that will be automated into .feature files or the framework-native executable test format. bdd-specs.md is for design and planning; .feature files are for automation and living documentation.

See ./references/gherkin-guide.md for syntax and storage structure.

3. Red-Green-Refactor (TDD)

The engine of implementation:

  1. RED: Write a failing test for the scenario (or a unit thereof).
  2. GREEN: Write the minimal code to pass the test.
  3. REFACTOR: Clean up the code while keeping tests passing.

Read the full file on GitHub · 80 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 22d ago First seen · 80 lines · 48 tokens per session scan A 88ed51d96a9e

Subscribe to this mod's changes

behavior-driven-development is a skill published in the GitHub repository FradSer/dotclaude (593 stars, last pushed 7d ago), licensed MIT. It adds 48 tokens to every session and 1,261 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-24.