agentleFS
CassioRoosCassioRoos/godfly-skills/skills/bdd/SKILL.md

bdd

Skill1 starsChanged 41 days agoMITView on GitHub

Behaviour-driven development, the method, not the tool. Use whenever the work involves acceptance criteria, examples, scenarios, Gherkin or .feature files, "given when then", example mapping, or deciding what "done" means for a story. Use it to discover rules and examples from a ticket, write scenarios, review scenarios someone else wrote, or decide what to do with a failing or stale scenario.

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use atdd, sdd and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • swingermanSkill

    atdd

    Use to drive feature work through the Acceptance Test Driven Development workflow — Given/When/Then specs before code, a project-specific test pipeline, and two parallel test streams (acceptance + unit). Triggers — "/atdd", "build a feature", "implement a feature", "add functionality", "start development", "write acceptance tests", "write specs", "use ATDD", "use TDD with acceptance tests".

    Also in 3 projects that use this

  • liatrio-labsSkill

    sdd

    Execute the Liatrio Spec-Driven Development (SDD) workflow when explicitly invoked by the user. NOTE: this skill is NOT intended to be dynamically loaded or automatically triggered; it should only ever be explicitly called by the user.

    Also in 3 projects that use this

  • anombyte93Skill

    discover

    Phase 1 of the prd-taskmaster pipeline: brainstorm-driven discovery. Delegates to superpowers:brainstorming in Interactive Mode (one adaptive question at a time), or self-brainstorms in Autonomous Mode when no user is present. Intercepts before the brainstorming chain hands off to writing-plans — this skill owns the exit. Extracts constraints, calibrates scale (Solo / Team / Enterprise), and advances the pipeline to GENERATE.

    Also in 3 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 3 projects that use this

  • MicrosoftSkill

    writing-for-agents

    Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

    Also in 3 projects that use this

  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 3 projects that use this

  • +1 more from microsoft

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Stop and ask when a rule has no example or an example has no agreed outcome.

    line 15
  2. Distinctive:

    Check the rules above, then ask of each scenario: is it a concrete domain example or a tautology?

    line 41

“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

BDD

Three practices, in this order: discover, write, automate. Conversation beats capture beats automation. Gherkin is the output of step two, never the method.

Discover first

  • Map the story before writing a single scenario: rules (the acceptance criteria), one or more concrete examples under each rule, and questions nobody can answer yet.
  • Stop and ask when a rule has no example or an example has no agreed outcome. Never invent the outcome.
  • More than six rules, or a wall of questions, means the story is too big. Split it along business lines, never technical ones.
  • Skip scenarios for work everyone already understands. For highly uncertain work, spike first, write scenarios once the uncertainty is gone.

Write

  • One Feature per file, one Rule: per acceptance criterion, one scenario per example. Titles differ enough to tell scenarios apart by title alone.
  • Given, When, Then, in that order, once each. One When: a single event. Givens are all of, and no more than, the context the outcome needs.
  • Then is an outcome a reader can check from the text. Never internal state, never "it works".
  • Declarative, in domain language. If the wording would change when the UI changes, it is wrong. No clicks, selectors, URLs, SQL, endpoints.
  • Real values: "7 days late", "paused at 08:57". No foo, bar, test, TBD.
  • Third person, present tense, one stable term per concept across the whole file.
  • Three to five steps. Background under four lines, only for setup every scenario shares. Scenario Outline only when the behaviour varies by input.
  • At least one failure path. When the repo has a convention for tracing scenarios to acceptance criteria or tagging failure paths, follow it.

Review

  • Check the rules above, then ask of each scenario: is it a concrete domain example or a tautology? Could a different outcome follow from the same givens? Would a product owner read it and object to a term?
  • Report each finding as one sentence naming the problem, one on why it matters if needed, and the smallest fix. Say nothing when unsure.

Evolve

  • A failing scenario means one of three things. A bug: fix the code. The behaviour moved: move the scenario. The behaviour is no longer wanted: delete the scenario and say so.
  • Refine wording as gaps surface. Automation changes under the scenario, never the scenario's words to suit the automation.
  • A renamed concept is renamed in every scenario, or not at all.
  • The spec is not the end of the conversation. When a scenario surprises someone, go back to discover.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.