/agentex:test-designfrom AgenTeX
Analyzes user story acceptance criteria into test conditions, creates and links test cases in Azure DevOps or Jira Cloud behind a single approval gate.
Ships in AgenTeX. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
You turn a User Story's acceptance criteria into structured test artifacts on the configured tracker (Azure DevOps test cases, or the Jira issue type the user chooses), linked back to the story. You never write to the board without the single consolidated approval described below.
End-to-end methodology for designing, creating, and linking test cases to User Stories on
the configured tracker. This file is the workflow (how to analyze ACs, what test
cases to derive, the one approval gate). The mechanics live in the bundled scripts — never
run az or acli, and never compose REST calls for board operations:
${CLAUDE_PLUGIN_ROOT}/skills/test-design/scripts/create-cases.js — the story read and
the test-case creation/linking (dry run by default, --execute behind the one approval;
the script builds the Steps XML from structured steps on ADO, or ADF step lists on Jira,
and picks the configured provider itself). Read
${CLAUDE_PLUGIN_ROOT}/skills/test-design/references/test-case-mechanics.md for the
spec shape, XML doctrine, and failure paths before the first spec of a session.${CLAUDE_PLUGIN_ROOT}/references/tracker/ado-boards.md — shared ADO boards knowledge:
field reference names, relation directions, the Test-Case no-delete constraint.${CLAUDE_PLUGIN_ROOT}/references/tracker/jira-boards.md — the Jira twin: field ids,
ADF, link semantics, known limitations (no test plans/runs, no Tested-By).${CLAUDE_PLUGIN_ROOT}/skills/test-design/scripts/testplan.js — test-plan mechanics
(list-suites / list-cases / find-case / create-case / fail), a separate concern with the
same conventions; the bug-report-azure skill invokes it cross-skill. ADO only: on a
Jira-configured project it refuses upfront (exit 2, testPlans:false — Jira has no
test-plan/run APIs).Org/site, project, and assignee resolve from config/project.json — the azure block on
ADO (legacy AZURE_* keys in .env as fallback) or the jira block on Jira — the scripts
read them themselves, and the credentials (AZURE_PAT, or JIRA_EMAIL + JIRA_API_TOKEN,
in .env) never leave them: Authorization header only, never printed or on a command line.
Never bake an organization, site, project, team, or email into anything. Anything genuinely
missing joins the ONE bundled question round below.
Everything that varies per project lives in the consumer project, not in this skill: persona, feature map, standard setup steps, project-specific condition categories, and the languages text checks must cover.
./.agentex/test-template.md in the current project and read it before
designing anything../.agentex/ folder if needed and
copy ${CLAUDE_PLUGIN_ROOT}/skills/test-design/templates/test-template.md there, then ask
the user to fill in (or dictate) the values before proceeding. (A consumer-file write with
its own consent — it happens before any board work and is outside the board-write gate.)Jira has no native Test Case type and no Tested-By link. On a Jira-configured project,
before any spec is built: inform the user of exactly that, and ask what to create —
in the ONE bundled round, never silently substituted. The options are the project's real
issue types (the dry run surfaces them: a spec without artifactType blocks with
missing-artifact-type carrying the live list, sub-task types marked), plus "document
only / skip creation" (deliver the conditions table and titled cases as text, zero board
writes). The chosen type goes into the spec as artifactType — the script never defaults
it, and validates it against the real types.
The choice can be pinned in ./.agentex/test-template.md under a ## Jira section
(e.g. artifactType: Task, linkType: Relates) — a consumer-owned convention, so later
runs skip the ask. A pinned value still shows on the consolidated screen.
Mechanical deltas the script owns (details in
${CLAUDE_PLUGIN_ROOT}/references/tracker/jira-boards.md):
{type, text, expected} spec steps, no XML.jira.bugLinkType, spec linkType, or
the bundled ask — Relates recommended). The plan shows create + link as two intents per
case; a sub-task artifact type instead rides fields.parent inside the create (no link
intent).validateOnly exists on Jira — the createmeta field cache carries
pre-gate validation, and the plan says validateOnly: 'unsupported-on-jira' so the
consolidated screen is honest about what was proven.node ${CLAUDE_PLUGIN_ROOT}/skills/test-design/scripts/create-cases.js story --id <STORY_ID>
Read the description + acceptance criteria from the JSON (HTML — extract any design link, e.g. Figma, and translation tables from the tags yourself).
Group the ACs into test conditions. Each test condition maps to ONE test case.
| AC Content | Test Condition → Test Case Title |
|---|---|
| UI structure, layout, icons, design reference | user checks the page UI |
| All text labels, titles, subtitles (every supported language) | user checks the page text |
| Button click with action/navigation result | user checks the [button name] functionality |
| Valid input values accepted | user checks valid input |
| Invalid input (empty, special chars, wrong type, spaces) | user checks invalid input |
| Dropdown / selection logic | user checks [dropdown name] selection |
| Error / validation messages | user checks the [feature] error message |
| Counter/summary values | typically included in the UI check |
The conventions file may add project-specific categories (e.g. a helper panel, a read-only info section) — treat each as its own test case whenever the story includes that element.
The mapped conditions table (with a "covers" column) is presented on the consolidated screen (Step 6) — not as its own confirmation round.
Each title includes the feature the story belongs to. A feature can be a step in a flow
(e.g. Step5) but not always — it can also be any feature name (e.g. Login). Read the
feature map from the conventions file; if the story isn't in the map, infer from the
story's context — or add the question to the one bundled round.
<Persona> || <Feature> || [test condition]
SME User).Step5, or a feature name — not the story ID).Examples (with persona "SME User"): SME User || Step5 || user checks the page UI,
SME User || Login || user checks the page UI
Every test case = the standard setup ActionSteps (from the conventions file, adjusted to the prerequisites of the story's step) followed by ValidateSteps for the condition:
You write step content as structured JSON ({type, text, expected} — see the mechanics
reference); the script owns the XML, IDs, and escaping.
Bundled input round (only if needed): anything genuinely unresolvable — a feature not in the map, a persona missing because the conventions file is incomplete, no assignee anywhere — is asked in ONE AskUserQuestion before validation, never as a series of asks. When the conventions file + config answer everything, the approval is the only interaction.
storyId, assignee, cases with structured steps), write it to
.agentex/scratch/cases.json — intermediate files go only in .agentex/scratch/
(create the folder if it is missing; it is gitignored agent scratch), never anywhere else
in the project — and dry-run:
node …/create-cases.js --spec ".agentex/scratch/cases.json" [--allow-duplicate]
Exit 2 = blocked: surface the reasons (duplicate Test Case IDs, bad steps, stale-cache
options with a --refresh-fields offer), correct for the run, re-run — a failure-path
round, not a second gate.--execute. Anything else → stop, zero writes.Every intended case done (ID + URL) or not-done (reason), straight from the script's ledger.
On ADO, linking happened inside each create (TestedBy-Reverse → story), so there is no
separate link step to verify or forget; on Jira the story link is its own ledgered write —
report its state per case. A partial failure is a failure — name exactly which cases
now exist; no retry, no cleanup (ADO Test Cases can't be deleted via the API, and Jira's
only delete is permanent and never offered — portal cleanup is the user's call).
Map every AC scenario to a created test case from the ledger, re-read the story
(story --id <id> — a free read) to show the Tested By links landed, and show the table.
Flag anything uncovered and ask whether to add a test case for it (a new spec → a new gate).
az or composing REST calls for board operations — the scripts own transport
and auth (and the old XML/quoting/link-direction mistakes died with them)What SKILL.md sets; muted values are Claude Code's defaults
17 skills in this plugin
/api-integrationExecute user-defined API calls during test runs, from the project's integration/ catalog. Use whenever a test step needs an HTTP call: verify via API that a UI action persisted, check an endpoint's response, or seed test data through a service. Triggers on spec steps starting with "api:", or requests like "verify via API", "call the endpoint", "check the response". The agent executes ONLY requests the user has defined in a *_api.json catalog (searched recursively under integration/) — it never composes its own HTTP requests.
/ask-kbAsk a project's knowledge base a natural-language question during a test run, via the KB Ask API, and read the answer as advisory context. Triggers on spec steps starting with "kb:", or requests like "ask the KB", "what does the knowledge base say", "how does <flow> work". Explicit only — the agent never calls the KB on its own initiative. Answers inform testing/navigation but are NEVER used as PASS/FAIL evidence.
/azure-integrationagentex@elgazzar-plugins is listed by mhmdelgazzar/elgazzar-plugins — review the source before installing
npx claudepluginhub mhmdelgazzar/elgazzar-plugins --plugin agentexOther plugins' skills for the same job