CommunityProgramación y desarrollogithub.com

ba-test-design

Design functional test cases, a test plan / test book (cahier de recette, UAT scenarios) or a regression (TNR) selection from whatever the user has — a user story, acceptance criteria, an SFD/functional spec, business rules, a data model, a backlog export, or an existing test suite plus a change. Use it whenever someone asks to write test cases, test scenarios, a recette or UAT campaign, to check test coverage of requirements, or to decide which tests to rerun after a change, even if they just say "how do I test this" or paste a spec. Not for writing acceptance criteria themselves (ba-acceptance-criteria), reviewing spec quality (ba-review) or mapping a change's impact on documents (ba-impact).

¿Qué es ba-test-design?

ba-test-design is a Claude Code agent skill that design functional test cases, a test plan / test book (cahier de recette, UAT scenarios) or a regression (TNR) selection from whatever the user has — a user story, acceptance criteria, an SFD/functional spec, business rules, a data model, a backlog export, or an existing test suite plus a change. Use it whenever someone asks to write test cases, test scenarios, a recette or UAT campaign, to check test coverage of requirements, or to decide which tests to rerun after a change, even if they just say "how do I test this" or paste a spec. Not for writing acceptance criteria themselves (ba-acceptance-criteria), reviewing spec quality (ba-review) or mapping a change's impact on documents (ba-impact).

Compatible con~Claude Code~Codex CLI~Cursor
Part ofMobile
npx skills add https://github.com/alexisraitano-myffu/ba-skill-graph/tree/HEAD/skills/ba-test-design

Installed? Explore more Programación y desarrollo skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

BA Test Design

You turn requirements, in whatever state they really are, into a test suite a tester can run and a manager can trust. The hard part is rarely writing steps. It is finding everything worth testing, not inventing rules the source never stated, and making gaps visible instead of papering over them.

This skill belongs to a suite (the BA skill graph) but works alone. When upstream artifacts from the suite are present (SFD, rules, data model, acceptance criteria with IDs), use them: they make the suite far better. When they are not, work from what you have and say what is missing.

Read references/contract.md once at the start: it defines the artifact header, IDs, project profile, provenance tags and open questions that this skill's output must follow.

Workflow

1. Take stock of the inputs

List what you actually have, in one short paragraph to the user: which documents, their level (story, SFD, rules, data model, tests), their IDs if any, and what is obviously missing for testing (e.g. "no data constraints, so boundary values will be partly unknown").

Set the project profile (contract §3). If not given, infer it and say so in one line. The profile decides the shape of the output (step 6), not whether you start.

2. Build the test basis

Extract every testable item from the inputs into an inventory. One line each, with its provenance:

  • Fields and constraints — mandatory flags, formats, lengths, ranges, allowed values, file types and sizes
  • Business rules — conditions and their outcomes, calculations, thresholds
  • States and transitions — lifecycle of the main objects, who or what triggers each transition, transitions that must be impossible
  • Roles and permissions — who may do what, and who may not
  • Messages and notifications — exact wording when the source gives it, recipients, content
  • Side effects — anything the action changes outside the screen (another record created, a status changed elsewhere, an email sent)
  • Non-functional items — only those stated (performance, security, accessibility), each with its NFR ID

Tag each item stated (with the source reference), derived (name what it derives from) or assumed. Side effects and cross-section rules are the items most often missed: read the whole source for them, not only the section about the screen.

While building the inventory, collect every gap, contradiction and ambiguity as an open question (contract §5). Look specifically for: limits that differ between sections, values "to be supplied by the client", missing negative paths (refusal, cancellation, expiry), undefined state values, missing date/order rules, and duplicate or conflicting statements.

3. Apply test design techniques

Choose the technique by item type, as a professional tester would. references/techniques.md explains each with examples; read it the first time you apply one.

ItemTechniqueMinimum expected
Range, length, size, thresholdBoundary value analysisOn the limit, and one step each side
Set of allowed values or formatsEquivalence partitioningOne valid case per class, one invalid class
Several conditions combinedDecision tableAll feasible combinations; impossible ones listed, not tested
LifecycleState transitionEvery valid transition, and the key invalid ones
RolesPermission matrixAllowed and forbidden actions per role
Dates and time-based rulesBoundary on timeBefore, on and after each date threshold; both sides of an effective date
Change to existing behaviourRegression selectionSee step 5

Negative tests are not optional: for each rule, test what happens when it is broken.

4. Write the test cases

Each test case has: ID (TC-nnnn), title, traces_to, technique, priority (high/medium/low by business risk), preconditions, test data, steps, expected result, provenance of the expected result.

The expected result is where invention hides. If the source does not say what should happen, the test still exists, and its expected result reads TO CONFIRM (Q-xxx). Never choose a plausible behaviour and present it as expected: a wrong expected result is worse than an open one, because it gets the defect accepted.

Group cases by feature or by requirement, in the order a tester would run them.

5. Regression (TNR) mode

When the input includes a change (a change request, a new rule version, an impact list), produce a regression plan instead of, or in addition to, new cases:

  1. Identify the items the change touches, directly and through calculations or states that depend on them.
  2. Classify existing tests: must rerun (traces to a touched item, or its expected result depends on one), update (expected result changes), obsolete, no need to rerun (with the reason, e.g. "period before the change's effective date").
  3. List new tests the change requires, especially around its pivot: the effective date, the cutover population, data created before and after.
  4. Flag side effects of the change that nobody asked about. A good regression plan finds consequences the change request did not mention.

Use the traceability links to justify every classification. If there are no links, say that the selection is based on reading, not on traceability, and is therefore less reliable.

6. Adapt the output to the profile

  • High formality / signed validation / strong regulatory: full test book. Numbered campaign, detailed steps, data, expected results, coverage matrix, open questions with owners. This is what gets signed.
  • Low formality / demo validation / adaptive: lean scenarios, one line of steps where enough, grouped by story; still a coverage list and open questions, because those matter in every profile.
  • Gherkin: if the user or the upstream acceptance criteria use Gherkin, write scenarios in Gherkin and keep IDs in tags (@TC-0042 @AC-034-2).

Use the template in references/output-template.md.

7. Coverage and closing

End with:

  • the coverage matrix: every testable item from step 2 → its test cases; items with no test listed explicitly, with the reason;
  • the open questions, most blocking first, with the tests each one blocks;
  • one line on what would most improve the suite (usually: the missing upstream artifact, e.g. "with the data model, about 12 boundary tests could get definite expected results").

Exports

If the user works in a test management tool, offer an export after the suite is done: references/exports.md gives the field mapping for Squash TM (Excel import) and Jira/Xray. Do not push anything to a tool without being asked.

Skills relacionados