/agentex:task-estimationfrom AgenTeX
Creates QA testing tasks with hour estimates for user stories in Azure DevOps or Jira sprints. Reads the sprint, analyzes each story, and generates Testing tasks behind a single approval.
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 sprint's stories into estimated QA [Testing] tasks on the configured tracker,
created as the tracker's child tasks of each story. Which tasks, how many, in what order and
within which hour ranges is the project's config/estimation.json — the user's file. Your one
estimation judgment is a 0–4 rating per factor; the script turns ratings into hours. You never
write to the board, or create that file, without the single consolidated approval below.
The mechanics live in ONE bundled script — never run a tracker CLI or compose REST calls for board operations; the script owns transport, auth, and every number:
${CLAUDE_PLUGIN_ROOT}/skills/task-estimation/scripts/create-tasks.js — the estimation
read (the file, or a first-run proposal built from the team's own history), sprint/story
reads, the fail-closed dry run that derives each story's tasks and hours from your ratings,
and the writes. The script resolves the configured tracker itself; dry run by default; one
JSON line; exit 0/1/2.${CLAUDE_PLUGIN_ROOT}/references/tracker/ado-boards.md (Azure DevOps) or
${CLAUDE_PLUGIN_ROOT}/references/tracker/jira-boards.md (Jira), section Estimation
flow. It holds the provider's configuration keys, what its child tasks, hours, placement
and first-run history read look like, and the provider rules on top of this workflow.Every setting resolves from config/project.json's tracker block — the reference's
Estimation flow section lists the keys and any fallbacks. Never bake an organization,
site, project, team, or email into anything. Anything missing joins the ONE bundled
question round (Phase B) — never a drip of questions.
.env. The script reads them itself and sends them only in the
Authorization header. Never read, print, or pass them.config/estimation.json belongs to the user and is committed with their project:
| Field | What it holds |
|---|---|
tasks[] | { "name", "enabled", "minHours", "maxHours" } — every story's [Testing] tasks: names, count, order, and each task's hour range. Only enabled tasks are created. |
factors | "<factor>": <weight> — what each story is rated on. Weight 0 = rated and shown, not counted. |
source | Where the numbers came from (sprints read, tasks counted/skipped, date). A record — editing it changes nothing. |
schemaVersion | 1 |
enabled, factors) applies on the next run with
no prompt. To rebuild the file from the board's history, the user deletes or moves it; the
next run proposes a new one.[Testing] <name> and never doubles the prefix.Rate every factor the file lists (on a first run, the proposal's content.factors) —
never one it does not list, never skip one — with a whole number 0–4, relative to this team's
typical story:
| Rating | Anchor |
|---|---|
| 0 | none of this in the story |
| 1 | light, well below a typical story |
| 2 | typical |
| 3 | heavy, clearly above typical |
| 4 | the most this team sees |
What to look at for the default factors (rate a user-added factor from its name):
| Factor | What to look at |
|---|---|
| Scenarios / ACs | Given/When/Then scenarios |
| UI elements | Fields, buttons, dropdowns, toggles |
| Validations | Inline errors, required fields, min/max rules |
| Conditions / logic | Branching behavior, default states, toggles |
| Error messages | Inline errors + toasts + API failures |
| API integrations | External service calls (identity verification, maps, etc.) |
| Translations | EN/AR string pairs |
| Edge cases | Explicitly listed failure modes |
Scratch files (the proposal, the spec) go only in .agentex/scratch/ under the project
root, never anywhere else in the project. Create the folder if it is missing; it is gitignored
agent scratch, and the file names below are overwritten on each run. Never use a shell
variable such as $TMP for it: it is unset on some systems.
node ${CLAUDE_PLUGIN_ROOT}/skills/task-estimation/scripts/create-tasks.js estimation --out ".agentex/scratch/estimation-proposal.json" [--sprints N]
--out is a scratch file in .agentex/scratch/ (like the spec), never any other path; the script
refuses a path that holds anything but a previous proposal. Pass
--sprints N only when the user's ask names how many past sprints to read (default 2).
Branch on source:
file → use its content: the enabled tasks and the factors.invalid (exit 2) → stop the run. Relay the file, every problem and its offending
entry, and that nothing was read or written. Read no stories, show no estimate, fall
back to nothing, and never fix the file yourself — the user edits it.proposal (no file yet) → a first run. Note its kind: history (from the team's last
closed sprints) or starter-defaults (with provenance.reason and reasonMessage).options (Jira) → that question
joins Phase B; re-run with --team "<name>" / --board "<id|name>".node …/create-tasks.js stories --current-sprint --full
(or stories --ids <ID,ID> --full when the ask names specific stories). The JSON carries
each story's title/state/SP, the provider's placement facts (see the reference), the
description + AC HTML, and any existingTestingTasks — note which stories already have
[Testing] children.
--ids for named stories — never guess a sprint.storyPoints is null and the row carries a note
about it, relay that note (it names the config override). The analysis stays
per-story; only the approval is consolidated.Ask one AskUserQuestion carrying every open question at once, before validation, when anything is genuinely unresolvable:
options;[Testing] tasks (skip, or add anyway?).A choice
that comes with options is asked with those real options. Nothing about a first-run
proposal is asked here: its abnormal values belong on the consolidated screen. When config +
the reads answer everything, skip Phase B: the happy path has exactly one interaction — the
approval.
Build the ratings spec (stories the user chose to skip are absent), write it to
.agentex/scratch/tasks.json, and dry-run it:
{ "assignee": "[email protected]",
"estimation": { "proposalFile": "<the --out file>" },
"stories": [ { "id": 2101, "ratings": { "Scenarios / ACs": 1, "UI elements": 2, "…": 0 } } ] }
node …/create-tasks.js --spec ".agentex/scratch/tasks.json" [--allow-existing]
estimation.proposalFile is for a first run only. Never send tasks or hours — the script
derives them (tasks-not-from-file otherwise). Add these only on the user's words:
estimation.outlierChoices — { "<past task ref>": "count" | "suggested" | <hours> }estimation.taskEdits (first run) — { "<task>": { "enabled" | "minHours" | "maxHours" } }adjust — { "<task>": <hours> | "skip" }, this run onlyExit 2 = blocked: rating findings (missing-rating, unknown-factor, bad-rating) are
yours — fix the spec and re-run. A value the user typed that the script rejects
(bad-outlier-choice, bad-task-edit, bad-adjustment) is asked again in the same round.
Validation findings carry allowedValues / existing-task IDs / stale-cache options with a
--refresh-fields offer; a blocked entry with options is a user choice — ask it with the
real options. An unresolvable or ambiguous assignee blocks — ask, never assign blind.
estimation-file-exists means a file appeared since Phase A: re-run Phase A.
Render the consolidated screen from the plan JSON's estimation block and plan:
provenance): the
sprints read (and that fewer exist, when fewer were read), stories read, tasks counted,
tasks skipped (no Original Estimate, or no task name after the [Testing] marker), names
found without any estimate, and a truncated read. Show each proposed task with the stories it was found on and its min/max
(groups), and the factors. Starter defaults instead say: "No usable history — . Proposed
starter defaults (not your team's history): …; deleting the file later re-proposes from
your board."outliers is non-empty. Show each with its task, value,
story (ID and title), the past task's ref, the usual range (normalRange), and the value
now in use (the suggested one, until the user chooses). Offer exactly three choices:
count it · use the suggested value · type a number. The outlier threshold is a tunable default, not a
guarantee. No section when nothing is flagged.scorePct), each task's
hours (an adjusted value labelled "adjusted", and "outside – h" when it is),
and the story total.[Testing] tasks" notes, how the hours will be
recorded and any notes the dry run reports (validation.hours with its message,
validation.notes).create config/estimation.json (new file) first on
a first run, then every task create and follow-up step with its route, parent link
inline — and the statement that nothing has been written yet.Any outlier choice, typed number, task edit, adjustment or rating correction updates the spec, re-runs the dry run and re-renders the screen — it still ends in exactly one approval.
One approval ("yes" / "تمام" / "approved") → re-run with
--execute --basis <estimation.basis>. Anything else → stop: neither the file nor any task
is written.
Render the ledger: the file line (on a first run) and every intended task — done (ID + URL) or not-done (reason). A partial failure is a failure — name exactly what now exists (the file, which tasks); no retry, no cleanup — remediation is the user's call. If the file line failed because a file appeared, say it was not replaced and no task was created.
config/estimation.json is the user's: never write, edit, repair or replace it with your
own tools. With the file present, history is never read (the script enforces it)..env* or handle a credential value — the script reads credentials itself,
header-only.options is a user choice — ask it with the real options
(in the one bundled round, or the failure-path round after a dry run); never pick
silently.User: estimate the sprint
Bot: [estimation → no file; stories read; each story rated silently, then ONE screen:]
Estimation file: none yet — proposed from your last 2 closed sprints (Sprint 41, Sprint 42):
12 stories · 47 [Testing] tasks counted · 3 skipped (no Original Estimate or no task name)
Task found on min max
Requirement Review 12 stories 0.5 2
Test Execution 12 stories 1 3 (1 abnormal value below)
… Factors: the default eight, weight 1 each
Abnormal values (only these need a choice; the suggested value is in use now):
1. Test Execution — 12 h on #4512 "Checkout address form" (task #4520); usual range 1–3 h
→ count it · use the suggested 3 h · type a number
#2101 Contact preferences (3 SP) — Scenarios 1 · UI 2 · Validations 0 · … → score 19%
Requirement Review 1 · Test Creation 1.5 · Test Execution 1.5 · Bug Review 1 · Automation 1.5 = 6.5 h
… Sprint total 24.5 h · Assignee [email protected]
Write plan: 1. create config/estimation.json (new file) · 2–16. 15 task creates (routes …)
Nothing has been written yet. Approve?
User: تمام
Bot: [--execute --basis …] ✅ config/estimation.json created · 15/15 tasks created — IDs + URLs listed.
scripts/create-tasks.estimation.test.js (opens in a new tab)scripts/create-tasks.golden.test.js (opens in a new tab)scripts/create-tasks.js (opens in a new tab)scripts/create-tasks.test.js (opens in a new tab)scripts/estimation/defaults.js (opens in a new tab)scripts/estimation/history.js (opens in a new tab)scripts/estimation/history.test.js (opens in a new tab)scripts/estimation/placement.js (opens in a new tab)scripts/estimation/placement.test.js (opens in a new tab)scripts/golden/ado/A01.json (opens in a new tab)scripts/golden/ado/A01b.json (opens in a new tab)scripts/golden/ado/A02.json (opens in a new tab)scripts/golden/ado/A03.json (opens in a new tab)scripts/golden/ado/A04.json (opens in a new tab)scripts/golden/ado/A05.json (opens in a new tab)scripts/golden/ado/A06.json (opens in a new tab)scripts/golden/ado/A07.json (opens in a new tab)scripts/golden/ado/A08.json (opens in a new tab)scripts/golden/ado/A09.json (opens in a new tab)scripts/golden/ado/A10.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agentex@elgazzar-plugins is listed by mhmdelgazzar/elgazzar-plugins — review the source before installing
npx claudepluginhub mhmdelgazzar/elgazzar-plugins --plugin agentex17 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-integrationInteract with Azure resources from a QA/test run via the Azure CLI (`az`) — login/auth, discovery, and reading App Service, Storage, Key Vault, and AKS resources. Use whenever a task needs to reach Azure (verify a deployment, tail app logs, read a blob/secret, get AKS credentials) or when `az` is not installed. Read the reference before the first `az` command./browser-driverThe browser driver for test-execution runs. It drives a real browser through playwright-cli for unprefixed (prose) spec steps and covers isolated sessions, screenshot and console evidence, login modes, and the failure signatures that decide retry versus defect. Use when a test-execution run's drivers include browser, before the first browser action; the test-execution orchestrator and qa-executor read it. Not a standalone entry point./bug-report-azureAfter a completed test/regression run where one or more defects were found, file them as tracker Bugs on the configured tracker — Azure DevOps or Jira Cloud ("file these as Jira bugs" works the same) — following a configurable bug template, through bundled Node scripts that talk to the tracker REST API directly (no Azure CLI, no acli needed). Product/team-agnostic: org/site, project, area path, template, assignees, and test plan resolve from config, never hardcoded. ONE gate per filing: all reads and validation run first with zero board writes, then a single consolidated screen (validated fields + the exact write plan) and one approval before anything is written. Severity/priority recommended from the run's findings, screenshots validated in two passes, writes fail closed with an exact per-write ledger — the board never silently differs from what the user confirmed./db-integrationExecute user-defined database queries during test runs, from the project's integration/ catalog (SQL Server via sqlcmd). Use whenever a test step needs a DB check: verify a row was created/updated by a UI action, check column values, or seed test data. Triggers on spec steps starting with "db:", or requests like "check the database", "verify the row", "query the table". The agent executes ONLY queries the user has defined in integration/*_db.json — it never composes its own SQL.
Other plugins' skills for the same job