/agentex:bug-report-azurefrom AgenTeX
Files defects from test/regression runs as tracker Bugs on Azure DevOps or Jira Cloud using a configurable template. Requires one approval before writing, with severity/priority recommendations and screenshot validation.
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 file defects found during a run as Bugs on the configured tracker (Azure DevOps or Jira Cloud), mirroring the team's configured template and linking them to the right User Story. You never write to the board without the single consolidated approval described below.
Turn defects found during a run into tracker Bugs that mirror a configurable team template and hang off the right User Story — behind exactly one approval, on the configured tracker (Azure DevOps or Jira Cloud). This is the closing gate of a test run, and its whole promise is: nothing lands on the board beyond what you confirmed, and nothing silently.
This skill is decoupled from any specific team or product. Everything team-specific is a
placeholder resolved at runtime from config/project.json — the azure block (or legacy
AZURE_* keys in .env) on ADO projects, the jira block on Jira projects — never
hardcoded in the skill:
| Placeholder | Meaning | Resolved from |
|---|---|---|
{{ORG_URL}} | Azure DevOps org (URL or bare org name) | azure.org (config/project.json) → AZURE_URL |
{{PROJECT_NAME}} | Project | azure.project (config/project.json) → AZURE_PROJECT |
{{TEAM_NAME}} | Team | azure.team (config/project.json) → AZURE_TEAM |
{{AREA_PATH}} | Area Path | azure.areaPath → AZURE_AREA_PATH or inherited from the parent story |
{{ITERATION_PATH}} | Iteration Path | azure.iterationPath → AZURE_ITERATION_PATH or inherited from the parent story |
{{TEMPLATE_BUG_ID}} | Reference bug the template mirrors | azure.bugTemplateId → AZURE_BUG_TEMPLATE_ID (optional) |
{{ASSIGNEE_EMAIL}} | Bug assignee options | azure.assignee → AZURE_ASSIGNEE · jira.assignee (comma-separated) |
{{TEST_PLAN_ID}} / {{TEST_SUITE_ID}} | Related test plan / suite (ADO only) | azure.testPlanId → AZURE_TEST_PLAN_ID |
{{ENVIRONMENT}} / {{BUG_CATEGORY}} | Custom picklist fields | azure.environment / azure.bugCategory or the run's environment |
{{JIRA_SITE}} / {{JIRA_PROJECT}} | Jira site (URL or bare name) / project KEY | jira.site / jira.project (config/project.json) |
{{LINK_TYPE}} | Bug→story issue link type (Jira) | jira.bugLinkType → the Phase-B bundle (live options, Relates recommended) |
Credentials are read from .env by the bundled scripts themselves — ADO: the PAT
(AZURE_PAT, legacy AZURE_DEVOPS_EXT_PAT / AZURE_DEVOPS_PAT); Jira: JIRA_EMAIL +
JIRA_API_TOKEN — and sent only in the Authorization header — never printed, logged, or
placed on a command line. No shell export, no az login, no CLI install is needed for bug
filing.
Every lookup, validation, and write goes through bundled Node scripts built on the
plugin's tracker layer (scripts/lib/tracker/ — direct REST over Node's built-in fetch;
ADO or Jira Cloud v3, picked from the project's config by the scripts themselves).
Never run az or acli for any part of bug filing, and never compose REST calls
yourself — the scripts own transport, auth, and validation; you own judgment and the
user conversation.
${CLAUDE_PLUGIN_ROOT}/skills/bug-report-azure/scripts/create-bug.js — validate a bug
spec (dry run) and, behind --execute, run the fail-closed write sequence with a ledger.${CLAUDE_PLUGIN_ROOT}/skills/bug-report-azure/scripts/read-workitem.js — read-only:
show --id <id> [--expand all] (template bug, story validation), find --type --title.${CLAUDE_PLUGIN_ROOT}/skills/test-design/scripts/testplan.js — test-plan mechanics
(cross-skill, owned by test-design): list-suites / list-cases / find-case /
create-case / fail. Same dry-run default and ledger discipline. ADO only — on a
Jira-configured project it refuses upfront (exit 2, testPlans:false).${CLAUDE_PLUGIN_ROOT}/skills/bug-report-azure/scripts/check-image.js — structural
screenshot validation (Pass 1 of the evidence gate; local, no tracker access).${CLAUDE_PLUGIN_ROOT}/skills/bug-report-azure/scripts/annotate-image.js — draws the
defect box, label and summary banner onto a copy of a screenshot (local, no tracker
access; renders through the project's playwright-cli).${CLAUDE_PLUGIN_ROOT}/references/tracker/jira-boards.md — the shared Jira knowledge
(field ids, ADF, link semantics, known limitations); ado-boards.md is the ADO twin.Each script prints one JSON line and exits 0/1/2. Dry run is the default; nothing is
written without --execute. You render the plan and the ledger for the user — the scripts
never talk to them.
Valid picklist values (severity, priority, Custom.* fields) vary per project. The
scripts build a per-project metadata cache on first use —
.agentex/cache/tracker-fields-ado.json on ADO, tracker-fields-jira.json on Jira
(gitignored; committing it is an explicit opt-in: add a !.agentex/cache/ line to
.gitignore) — and validate every supplied value against the project's real values
before the gate. When the user asks to refresh (or the server rejects a value the cache
accepted), re-run the validating script with --refresh-fields; a stale-cache rejection
comes back with the real current options and cacheStale: true — surface those options,
never substitute a value silently.
The workflow, gate, ledger, and evidence discipline are identical; these are the Jira
deltas, all owned by create-bug.js:
--execute runs create Bug → attach ×N → link story (ADO uploads first,
then relates). The inversion is visible in the plan the user approves, and a partial
failure still names the created key and exactly which attachments landed.High, validated
against the project's real names) still carries the impact recommendation. Never invent
a severity field.jira.bugLinkType pins the type; when unset, the choice joins the ONE
Phase-B bundle with the site's real options read live (Relates recommended). The chosen
link always appears on the consolidated screen — never invented, never silent.testPlans/testRuns: false). Inform the user of that gap upfront
and offer only what exists: skip (default), or — if the project created test
artifacts via /design-test — link the bug to that artifact with the same
issue-link mechanism, explicitly chosen on the screen; never a silent substitute. Do not
invoke testplan.js against a Jira config (it refuses with exit 2).validateOnly exists on Jira — the createmeta cache + required-field
checks carry pre-gate validation; the dry-run JSON says
validateOnly: 'unsupported-on-jira' so the screen is honest about what was proven.parentStoryId takes the issue KEY (e.g. PROJ-9), and an optional
linkType carries the bundle's choice when jira.bugLinkType is unset. Area/iteration
and test-plan keys have no Jira meaning and are ignored.System.LinkTypes.Hierarchy-Reverse); on Jira, exactly the ONE configured/chosen issue
link type to the story. No related / duplicate / any other extra link. Never edit the
User Story itself.--allow-duplicate).At the end of any run/task that surfaced one or more issues. Offer it proactively: "N issues were found — want to file any as Azure Bugs?" If the user declines, stop. Nothing touches the board.
{{TEMPLATE_BUG_ID}} →
node read-workitem.js show --id {{TEMPLATE_BUG_ID}} --expand all to mirror its shape.node read-workitem.js show --id <storyId> — it must exist and be a User Story.azure.assignee), environment/category (azure.* or the run's
environment), test-plan intent (azure.testPlanId).node check-image.js --dir <screenshots-folder> drops
corrupt / 0×0 / too-small / likely-blank images.{"image", "banner", "boxes": [{"x", "y", "width", "height", "label", "ok"?}]} beside
the bug spec (e.g. bug-1-<shot>.json; box values in % of the image). banner is the
bug's summary; one red box goes on the defect, labelled from expected/actual
(Expected "X" — actual "Y"); optionally one "ok": true green box on something
correct. Use only the summary/expected/actual and on-screen text — invent nothing. Run
node annotate-image.js --spec <file>.json, Read the image it names, and fix a
misplaced box at most twice. Attach its annotated path followed by the raw file
(attachments: [annotated, raw]) — the overlay can hide what is under it, so the raw
capture always travels with it; the ATTACH list shows both and the text the copy burns
in. On a non-zero exit, or a box still off after two fixes, attach the raw screenshot
alone with a one-line reason on the consolidated screen: never install, never ask,
never seek a separate OK.| Observed impact in the run | Recommended Severity | Recommended Priority |
|---|---|---|
| Blocks the flow, no workaround (can't advance / pay / issue) | 1 - Critical | 1 |
| Wrong/missing data in an issued artifact, or broken core path w/ workaround | 2 - High | 1 or 2 |
| Localized functional error, visible but non-blocking | 3 - Medium | 2 or 3 |
| Minor cosmetic / edge polish | 4 - Low | 3 or 4 |
Everything still unresolved after Phase A is asked in one AskUserQuestion carrying
all open questions at once — never a series of separate questions:
When config + run context answer everything, skip Phase B entirely — the happy path has exactly one interaction: the approval.
node ${CLAUDE_PLUGIN_ROOT}/skills/bug-report-azure/scripts/create-bug.js --spec <spec>.json
This runs the whole gate: parent is a User Story, duplicate check (fails closed),
cache-based picklist validation, attachment structural re-check, and a server-side
validateOnly create. Exit 2 = blocked: surface the reasons (they include the valid
options), get the correction — a failure-path round, not part of the happy path — and
re-run the dry run. If a test-case action was chosen, dry-run it too
(testplan.js create-case … / testplan.js fail … without --execute).node ${CLAUDE_PLUGIN_ROOT}/skills/bug-report-azure/scripts/create-bug.js --spec <spec>.json --execute
node ${CLAUDE_PLUGIN_ROOT}/skills/test-design/scripts/testplan.js create-case --plan <plan> --suite <suite> --title "<t>" --execute # only if chosen
node ${CLAUDE_PLUGIN_ROOT}/skills/test-design/scripts/testplan.js fail --plan <plan> --testcase <tc> --bug <bugId> --execute # only if chosen
On anything else: stop — zero writes. The write order inside --execute is fixed and
fail-closed — on ADO: re-validate → upload attachments → create Bug → link parent →
one json-patch setting ReproSteps + evidence relations; on Jira: re-validate → create
Bug → attach ×N → link story (the On Jira section). First failure stops the sequence.cacheStale: true, show the real options it contains and offer --refresh-fields.{
"title": "Concise defect statement",
"severity": "2 - High",
"priority": 1,
"parentStoryId": 0,
"assignedTo": "{{ASSIGNEE_EMAIL}}",
"summary": "One-line summary shown in the Repro header",
"steps": ["Step 1", "Step 2", "Step 3"],
"expected": "What should happen",
"actual": "What actually happened",
"environment": "{{ENVIRONMENT}}",
"bugCategory": "{{BUG_CATEGORY}}",
"areaPath": "{{AREA_PATH}}",
"iterationPath": "{{ITERATION_PATH}}",
"testConfig": "Windows 11 / Chrome",
"timestamp": "1/1/2026 3:00 PM",
"attachments": ["executions/.../screenshots/ERROR.png"]
}
severity / priority come from the gate (recommendation approved or user's pick) and
are validated against the project's picklists — the script never invents them.areaPath / iterationPath default to the parent story's when omitted.--allow-duplicate (after the user's explicit go-ahead), --no-screenshots
(deliberate, user-confirmed evidence waiver), --force (attachment structural-check
override), --refresh-fields (rebuild the field cache).annotate-image.js also uses the project's playwright-cli
when it is there. Details of the REST routes and the field schema live in
${CLAUDE_PLUGIN_ROOT}/skills/bug-report-azure/references/azure-devops.md./estimate-story, /design-test) share the tracker scripts
and the .env credentials (AZURE_PAT, or JIRA_EMAIL + JIRA_API_TOKEN) — one setup
covers them all.references/azure-devops.md (opens in a new tab)scripts/annotate-image.js (opens in a new tab)scripts/annotate-image.test.js (opens in a new tab)scripts/check-image.js (opens in a new tab)scripts/check-image.test.js (opens in a new tab)scripts/create-bug.js (opens in a new tab)scripts/create-bug.test.js (opens in a new tab)scripts/read-workitem.js (opens in a new tab)scripts/read-workitem.test.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
bug-reporting, test-automation, azure-devops, jira, defect-tracking
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