agentleFS
shalombshalomb/agent-skills/skills/adzic-bdd/SKILL.md

adzic-bdd

Skill3 starsChanged 3 months agoMITView on GitHub

Guide on applying Gojko Adzic's Specification by Example (BDD) principles. Use this skill to write new feature files, refine acceptance criteria, or evaluate existing Gherkin scenarios using the Adzic Index. Triggers on 'adzic', 'bdd', 'specification by example', 'gherkin', 'feature file'.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When authoring new .feature files or acceptance criteria, always adhere to these core principles:

    line 14
  2. Distinctive:

    Living Documentation: Ensure the scenario acts as the definitive source of truth.

    line 19
  3. Distinctive:

    Do not mix implementation design decisions into your scenario list.

    line 22
  4. Very specific:

    Read the full reference spec at docs/reference/adzic-index.md.

    line 46

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Adzic Specification by Example (BDD)

This skill provides comprehensive guidance on writing, refining, and evaluating Behavior-Driven Development (BDD) specifications based on Gojko Adzic's Specification by Example.

Writing BDD Scenarios

When authoring new .feature files or acceptance criteria, always adhere to these core principles:

  • Business-Readable: Speak the domain language, not developer jargon.
  • Intention-Revealing: Focus on what and why, not how.
  • Declarative: Describe state and business rules, avoid imperative UI clicks (e.g., no "click button A").
  • Focused: One scenario tests one specific business rule.
  • Living Documentation: Ensure the scenario acts as the definitive source of truth.

Crucial Pitfall (via Kent Beck's Canon TDD): Do not mix implementation design decisions into your scenario list. The Test List is behavioral analysis. There will be plenty of time to decide how the internals look later.

Note: For tactical guidance on keeping test abstractions clean and avoiding brittle dependencies, use the test-design-review skill.

The Adzic Index Evaluator

A quantitative diagnostic tool that scores BDD .feature files against these principles. The companion to the Farley Index — together they cover the complete quality picture.

It shifts the question from "Do our scenarios pass?" to "Do our scenarios communicate the right thing to the right people?"

When to Use This Skill

Trigger ScenarioPrimary DimensionReason
Writing a new Feature BriefBusiness-ReadableVerify non-technical stakeholders can read and confirm intent.
Planning an EpicLivingEnsure all scenarios have executable step definitions.
Reviewing before a refactorIntention-RevealingConfirm scenarios won't break on internal implementation change.
Debugging brittle acceptance testsDeclarativeExpose UI-scripted steps that couple specs to the interface.
Pre-release quality auditLivingNo @pending scenarios at ship time.
Auditing inherited feature filesAll sixFull health check of a legacy BDD suite.

Instructions

  1. Read the full reference spec at docs/reference/adzic-index.md.
  2. Collect inputs (feature file path; optionally step definition path and VCS flag).
  3. Execute the evaluation protocol defined in the reference spec.
  4. Output the adzic_index_score, per-dimension metrics, red_flags, and recommendations.
  5. Tailor depth of analysis to the requesting agent's role:
    • Marge → focus on Business-Readable + Intention-Revealing (she writes the scenarios).
    • Lisa → focus on Living + Focused (Epic readiness gate).
    • Ralph → focus on Declarative + Living (step definition quality self-audit).
    • Bart → full audit; use as adversarial evidence base for merge decisions.
    • Lovejoy → focus on Living as a release go/no-go signal.

Relationship to the Farley Index

LayerIndexQuestion
BDD SpecificationAdzic IndexClear, executable, stakeholder-readable specification?
TDD Unit TestFarley IndexFast, honest, implementation-independent test?

Target state: Both ≥ 7.0. This is "Clean Code that Works, clearly specified."

Triggers

  • "adzic"
  • "bdd"
  • "specification by example"
  • "write a feature file"
  • "adzic index"
  • "adzic-index"
  • "BDD quality"
  • "gherkin quality"
  • "scenario quality"
  • "feature file audit"
  • "specification theatre"
  • "living documentation"
  • "acceptance criteria quality"
  • "UI script theatre"
  • "imperative gherkin"
  • "are my scenarios any good"

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.