Λογότυπο Atdd

Atdd

Κοινότητα
dan-the-dev
atdd

Pragmatic Acceptance Test-Driven Development — agree concrete examples with stakeholders (Discuss), capture them as executable acceptance checks (Distill), then implement with outside-in delivery (Develop). Works in two modes — API-only (HTTP/CLI/event/in-process seam, the default) or E2E (browser, full stack, Page Objects) — with Gherkin/Cucumber when it helps, code-first acceptance tests, and contract tests at service boundaries. Composes with the inner-loop TDD skill for programmer tests. Use when defining story done, writing acceptance or executable specifications, or aligning business examples with automation before feature code.

Επισκόπηση

Εκδότηςdan-the-dev
Αποθετήριοxp-developer-skills
Όνομα δεξιότηταςatdd
Αστέρια
33
Forks
1
Συνοδευτικά αρχεία
16
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • 16 συνοδευτικά αρχεία

    Σενάρια, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε από dan-the-dev στο GitHub. Διαβάστε το πηγαίο περιεχόμενο πριν εγκαταστήσετε τη δεξιότητα.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Atdd στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/dan-the-dev/xp-developer-skills/tree/master/skills/atdd
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Νέα δεξιότητα → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που διαβάζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dan-the-dev/xp-developer-skills.git /tmp/xp-developer-skills
mkdir -p .claude/skills
cp -r /tmp/xp-developer-skills/skills/atdd .claude/skills/atdd
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Atdd σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Atdd μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Atdd δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλα κατά τη συνομιλία

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

Pragmatic ATDD (outside-in)

Mission

Turn business intent into concrete, automated examples before (or as) the team builds the feature — so programmers and stakeholders mean the same thing when they say “done.”

First step of every capability slice: agree examples (scenarios, tables, or outcomes) and record them in a tracked artifact in the repo (path rules in references/example-catalog.md).

Distill step: turn the highest-value examples into at least one failing automated acceptance check at the right layer (see references/environments-and-test-pyramid.md) — unless the slice is explicitly example-only (UI mock) with a written deferral. For feasibility unknowns, use skills/spike on a spike/ branch first, then return here after promotion.

Develop step: make acceptance green using outside-in work; use strict TDD (skills/tdd) for inner-loop programmer tests.

Optimize for:

  • shared understanding (examples beat abstract requirements)
  • executable definition of done (automated where practical)
  • right layer (contract or narrow acceptance over slow full-stack when that still proves the business outcome)
  • living documentation readable by non-programmers when possible
  • composition with inner TDD — not duplication at every layer

This skill covers the outer acceptance loop. It does not replace unit TDD, bugfix workflows, CI pipeline design, or product discovery — compose with other skills for those.


Acceptance mode: API-only or E2E

Every slice runs in exactly one mode per example, chosen at the end of Discuss with checklists/pipeline-fit.md and recorded in the catalog header (Mode: api | e2e | mixed) and on each line when mixed.

ModeDrives the system throughChoose whenReference
api (default)Public boundary below the UI — HTTP/GraphQL/gRPC, CLI, message/event, in-process application service; plus contract tests at service boundariesBackend/service/CLI capabilities; any business rule observable without a browser; no UI in the slicereferences/api-acceptance.md
e2eReal browser against the running app (Cypress / Playwright / WebDriver)The UI is the capability, or no lower seam can prove the agreed outcomereferences/e2e-acceptance.md
mixedOne thin e2e journey + remaining examples in apiUI capability with many business rules, or any e2e slice that touches the backend — journey in browser, backend rules/edges below itboth

Rules:

  • Default to api. Escalate to e2e only for what a browser adds (the journey, UI wiring) — Fowler's SubcutaneousTest and Practical Test Pyramid.
  • e2e + backend ⇒ also api. When an e2e slice adds or changes backend behavior (endpoint, server-side rule, persistence, event), also write API acceptance for that backend behavior — the slice becomes mixed: the browser test covers the journey, the API tests cover the backend rules and their edge/failure cases. If it is unclear whether the backend is involved, or whether an API test would add signal beyond the E2E journey (e.g. the UI only reads an existing, already-covered endpoint), ask the user before Distill and record the answer in the pipeline-fit decision. Pure frontend slices (no backend change) stay e2e only.
  • Same four layers in both modes (Farley): test case (scenario in domain language) → DSL (step definitions / helpers) → protocol driver (API client in api, Page Objects in e2e) → system under test. The scenario text must not change if the driver is swapped.
  • e2e follows the reference stack and patterns in references/e2e-acceptance.md: Cypress + Gherkin (@badeball/cypress-cucumber-preprocessor) layout for JS/TS web apps, one Page Object per page, steps never touch selectors, data-testid selectors, English scenarios, credentials from a gitignored test env file via cy.task, baseUrl overridable by env. On another existing E2E stack, keep the structure and rules, swap the tool.
  • Inspect before choosing tooling — never introduce a second E2E runner or Gherkin where the repo has none without a reason recorded in the pipeline-fit decision.

Discuss → Distill → Develop (pragmatic)

1. Discuss — agree examples

Who: business representative, developer, and someone who thinks about quality (the “triad” / three amigos) — roles can be played by the same person on small teams.

Test strategy: Before Distill, evaluate layers and specialized techniques per test-strategy-selection.md and checklists/pipeline-fit.md — contract vs API vs E2E; property-based or mutation only when they add evidence unit/acceptance cannot.

Output: concrete examples with agreed data, terminology, and boundaries — not a long specification document.

Practices:

  • Start from a user story or capability and ask: “How would we manually check this is right?”
  • Capture happy path, important edges, and failure the business cares about now.
  • Use tables or Given / When / Then language when it helps clarity; plain bullet examples are fine.
  • Record outcomes in the example catalog file before coding (see reference).

See references/collaboration-and-examples.md.

2. Distill — automate the agreement

Transform agreed examples into executable checks:

ApproachWhen (pragmatic)
Gherkin + runner (Cucumber, SpecFlow, pytest-bdd, etc.)Stakeholders will read scenarios in PRs; team already uses BDD tooling
Code-first acceptance (API tests, Playwright/Cypress specs, RSpec feature specs)Faster for the team; examples stay in catalog + test names/assertions
Contract tests (Pact, schema/contract suites, consumer-driven contracts)Service boundary is the capability; business outcome is “honors agreed contract”
Narrow acceptance (HTTP against app, in-process acceptance module) — mode apiFull E2E is slow/flaky but business rule can be proven at a stable seam
Browser E2E (Cypress/Playwright + Page Objects, Gherkin optional) — mode e2eThe journey through the UI is the agreed example; see references/e2e-acceptance.md

Rules:

  • Prefer one failing acceptance check that proves the next agreed example — not a suite of ten scenarios upfront.
  • The check must fail for the right reason (missing behavior), not environment noise — see references/quality-and-flake-control.md.
  • Do not block Distill on perfect Gherkin if code-first is the repo norm — keep the catalog as the human-readable source of truth.
  • Apply the mode's review checklist before calling Distill done: api / e2e.

See references/discuss-distill-develop.md and references/gherkin-and-bdd-tooling.md.

3. Develop — outside-in, then inner TDD

  1. Acceptance RED: failing automated check for the current example.
  2. Inner loop: use skills/tdd — test list + R–G–R — to grow production code until acceptance can pass.
  3. Acceptance GREEN: run the acceptance check; widen scope only when touching shared setup.
  4. Repeat for the next open example in the catalog.

Refactor when acceptance and programmer tests are green; keep acceptance assertions at outcomes, not incidental UI structure.

See references/executable-specifications.md and references/acceptance-vs-programmer-tests.md.


Example catalog (mandatory)

The catalog is a Markdown file in the repo listing business-visible examples for the slice — the outer-loop counterpart to TDD’s test list.

Before Distill (automation) for a slice:

  1. Choose folder: project convention, else acceptance-examples/ at repo root (see references/example-catalog.md).
  2. Create <stem>.md from branch and/or feature name (kebab-case).
  3. List each example as [ ] with Given / When / Then or a short scenario + key data.
  4. During work: flip to [x] when an automated acceptance check exists, passes, and is referenced on the line.
  5. Slice done when agreed examples are [x] (or documented as deferred/removed) and relevant suites are green.

Refactor-only or internal tech tasks do not belong in the catalog — use a sibling -follow-ups.md or the closing reply (same pattern as TDD test list).


Relationship to TDD (inner loop)

ConcernATDD (this skill)TDD (skills/tdd)
Question“Did we build the right thing for the business?”“Is each unit well built?”
GranularityStory / capability / boundaryClass / module / function
ArtifactExample catalog + acceptance checksTest list + unit tests
AudienceBusiness-readable examplesProgrammers

Compose: one acceptance example → inner TDD until green → next example. Do not re-assert every business rule in unit tests if acceptance already proves it at a stable seam — unit tests should cover design pressure, edges the acceptance layer is too coarse to catch, and fast feedback on logic.

When not to use ATDD (use TDD only)

For skills/new-increment and similar inner work:

  • Domain logic, katas, libraries, single-package modules with no separate deployable boundary
  • When acceptance tests would call the same in-process API with the same assertions as unit tests

Use skills/tdd and test-lists/<feature>.md only. See skills/new-increment/references/scoped-atdd-tdd.md and artifact-policy.md.


Language-agnostic execution

Adapt to the repository:

  • detect existing acceptance, BDD, E2E, or contract tooling
  • follow project layout for features, specs, and tags
  • run the smallest acceptance command that covers the current example

Never assume Cucumber, Playwright, or a specific folder; inspect first. When e2e is chosen and the repo has no E2E stack yet on a JS/TS web app, the Cypress + Gherkin reference stack in references/e2e-acceptance.md is the default proposal.

Tooling orientation: references/gherkin-and-bdd-tooling.md.


Pragmatic commit flow

Match team conventions when they exist. Default story for a single acceptance example:

StepTypical contentSuggested prefix
Distill (RED)acceptance spec / scenario / contract onlytest:
Develop (GREEN)production + any glue to pass acceptancefeat:
Refactorstructure, step defs, helpers — behavior unchangedrefactor:

Squash per team policy (many teams squash per story; TDD skill squashes per unit cycle — do not mix the two rhythms in one commit message without intent).

Inner unit cycles still follow skills/tdd micro-commits when that skill is active.


Anti-patterns (summary)

  • Coding before any agreed example (surprise delivery).
  • UI click scripts masquerading as business scenarios (see Gherkin reference); HTTP scripts (When I POST "/api/…") are the same smell in api mode.
  • Selectors in step definitions — only Page Objects touch the DOM; e2e setup through UI clicks instead of API/seed/session.
  • E2E by default — browser tests for rules provable in api mode.
  • One giant E2E as the only acceptance test for a large story.
  • Duplicating every acceptance assertion in dozens of unit tests.
  • Flaky acceptance that the team ignores (definition of done erodes).
  • Catalog lines marked [x] without a test reference or passing automation.
  • Using acceptance tests for all regression (wrong layer — use unit/integration too).

Full list: references/anti-patterns.md.


Definition of done

One acceptance example

  • Example agreed in Discuss and recorded in the catalog.
  • Distill: failing automated check at chosen layer; failure is intentional.
  • Develop: acceptance green; inner TDD test list items for this example are [x] or explicitly deferred.
  • Catalog line [x] with automation reference (path, scenario name, or contract id).

Capability slice

  • Example catalog file exists and was maintained through the slice.
  • All in-scope examples [x] or documented under Deferred / Removed.
  • Acceptance suite (and unit suite, if composed) green.
  • All applicable project verify steps for this scope passed (docs/delivery-process.md §2; docs/project-verification.md) — lint, format, typecheck, SonarQube/static analysis when configured.
  • Test strategy table delivered (docs/test-strategy-selection.md §6).
  • No undeclared business behavior shipped.

Checklists: checklists/story-readiness.md, checklists/scenario-and-test-quality.md, checklists/pipeline-fit.md.


Output format

markdown
## Capability: <name>

### Example catalog
- Path: `<e.g. acceptance-examples/order-shipping-threshold.md>`
- Branch / slug: <optional>

### Examples (excerpt; source of truth is the file)
- `[x]` lines must show automation back-reference

### Discuss → Distill → Develop (latest example)

#### Discuss
- Agreed example: <one line>
- Data / terms: <bullets>

#### Distill (acceptance RED)
- Check: <file::scenario or test name>
- Mode: <api | e2e> — seam: <http | cli | event | in-process | contract | browser>
- Failure: <short message>

#### Develop
- Inner TDD: <test list path, cycles summary or "composed with tdd skill">
- Acceptance: <command scope> — green

### Commits (if applicable)
- test: … / feat: … / refactor: …

### Slice status
- Catalog: `<path>` — all `[x]` | N open
- Follow-ups: `<path or "in closing reply">`

Additional resources

References

Examples

Checklists

Resource usage

Open api-acceptance.md or e2e-acceptance.md as soon as the mode is chosen. Open other reference files when layer choice, catalog format, Gherkin quality, or acceptance vs unit boundaries are unclear.

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Atdd;

Pragmatic Acceptance Test-Driven Development — agree concrete examples with stakeholders (Discuss), capture them as executable acceptance checks (Distill), then implement with outside-in delivery (Develop). Works in two modes — API-only (HTTP/CLI/event/in-process seam, the default) or E2E (browser, full stack, Page Objects) — with Gherkin/Cucumber when it helps, code-first acceptance tests, and contract tests at service boundaries. Composes with the inner-loop TDD skill for programmer tests. Use when defining story done, writing acceptance or executable specifications, or aligning business...

Γιατί να χρησιμοποιήσετε τη δεξιότητα Atdd στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Atdd είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη Atdd στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε το https://github.com/dan-the-dev/xp-developer-skills/tree/master/skills/atdd. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Atdd;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη Atdd;

Με όσα θέλετε. Εφόσον ένα μοντέλο υποστηρίζει δεξιότητες, μπορείτε να χρησιμοποιήσετε τη Atdd με αυτό — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama και άλλα — όλα στο TypingMind με τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Atdd;

Δημοσιεύεται στο GitHub από τον χρήστη dan-the-dev. Ελέγξτε το αποθετήριο για τους όρους αδειοδότησης. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Στήστε δικό σας χώρο εργασίας AI τώρα

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇