/ado-toolkit:ado-workitem <workitem [create|show|query|update|comment] | WORKITEM_ID>from ado-toolkit
Azure DevOps work items (tickets) via the Azure CLI (az + azure-devops extension) — create, show, query (WIQL), update, and comment on work items, with each type's content in its own field (acceptance criteria, repro steps, resolution) and the team's Area/Iteration. Type, state, field and relation names depend on the server and project (a German server says Aufgabe, not Task, and "Übergeordnetes Element", not parent); they come from a discovery cache and are fetched only when missing or rejected. Use when the user mentions an ADO work item / ticket / Arbeitselement / Aufgabe / Fehler / User Story, or asks to create, find, update, or comment on one. Newest Azure DevOps Server; assumes you are already signed in (PAT).
Ships in ado-toolkit. 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.
None: SKILL.md is the whole skill.
Work-item workflows for Azure DevOps via the Azure CLI (az + azure-devops extension):
create, show, query, update, and comment on work items. Use this skill when
the user asks to create, find, update, or comment on an Azure DevOps work item or ticket
(Arbeitselement — e.g. Aufgabe, Fehler, User Story).
Shared setup first. Before the first
azcommand, run Step 0 (connection detection) in ../ado-shared/REFERENCE.md; when anazcommand fails, its Setup Check diagnoses the error first. That file also holds the Command Map, Title schema, German text (umlauts verbatim), Written as the user, Quirks, and Error handling rules.{org}=organization,{project}come from Step 0.
Never assume a name. Types, states, fields and relation types depend on the server's language and the project's process — on a German server
Taskis Aufgabe,Activeis Aktiv, the parent relation is "Übergeordnetes Element"; another server or a new project may differ again. Take them from the Discovery cache (Step 1). The examples in this skill come from one German server; treat them as examples. All German text you send keeps its real characters —Prüfung, neverPruefung(see German text in the shared reference).
Trigger: User asks to create, show, query, update, or comment on an Azure DevOps work
item or ticket (German: Arbeitselement), or $ARGUMENTS starts with workitem (e.g.
workitem create, workitem show 1234, workitem update 1234, workitem comment 1234).
The Discovery cache (shared reference) for this collection is the file
${CLAUDE_PLUGIN_DATA}/discovery/{host}-{collection}.json — {host} without port, every
character other than a letter, digit, ., _ or - replaced by -. If that path still starts
with a literal ${, the plugin's data directory is unavailable: skip the cache and look the
names up directly. Read the file and take from it what the task needs; fetch with the cache's
lookups only what is missing, then write the file back:
name is what --type and WIQL [System.WorkItemType] values
expect. Map a type the user names in another language by its referenceName (Task →
Microsoft.VSTS.WorkItemTypes.Task → e.g. Aufgabe); if nothing matches, show the types and
ask — do not invent one.[System.State].referenceName
System.LinkTypes.Hierarchy-Reverse, the child relation …Hierarchy-Forward; pass their
display name to --relation-type. The English parent / child only work on an English
server.When the server rejects a cached name, refresh that entry and retry once (shared reference).
Every multi-line field — description, acceptance criteria, repro steps, resolution — and every
comment is HTML, not Markdown: <p> for paragraphs, <ul><li> for lists, <h3> for an
occasional heading, umlauts literal, no hard line breaks (a newline in HTML is just a space).
Escape a literal < or & in the text as < / &.
Each kind of content has its own field when the type has one. Putting everything into the description hides it from the field the team reads it in. Look the fields up in the type's field list from step 1; the reference names below are those of the standard processes:
| Content | Field, if the type has it |
|---|---|
| Story sentence, problem, context, task description | System.Description (--description) |
| Acceptance criteria, as a list | Microsoft.VSTS.Common.AcceptanceCriteria |
| Bug: what happens, steps to reproduce, expected vs. actual | Microsoft.VSTS.TCM.ReproSteps — a bug type that has it shows this field on its form, not the description |
| Bug: the solution after the fix — cause, change, measured values where they matter, why the existing tests did not catch it | Microsoft.VSTS.Common.Resolution |
Set fields other than title, description, state, assignee, area and iteration with --fields,
one quoted referenceName=value pair each. Build longer HTML in a variable so the shell
quoting stays simple:
ac=$(cat <<'HTML'
<ul><li>Der Dialog zeigt …</li><li>Nach dem Speichern …</li></ul>
HTML
)
az boards work-item update --id {id} --fields "Microsoft.VSTS.Common.AcceptanceCriteria=$ac" --org {org} -o json
If the type lacks the field the table names, show the user the type's fields from step 1 and ask where the content goes.
Writing the Resolution of a bug does not change its state: tell the user the state can move on, and leave the change to them unless they ask for it.
A ticket is read by people who did not see the conversation — the PO, another team, IT. Before showing a draft, ask of each paragraph whether the reader needs it to act or decide, and cut the rest:
Show the draft — title, fields, Area/Iteration, parent — and create or change the work item only after the user approved it.
The team is asked, or known from the context — the user named it in this conversation, or
the repository's CLAUDE.md / .claude/rules/ name it. Never infer it from the parent, the
siblings, or other tickets: those sometimes sit on the project root or on another team, and the
wrong team then never sees the ticket.
Its paths come from the server's team settings, not from a pattern — how areas and iterations are cut differs between servers and projects:
# the team's default area: "defaultValue"
az boards area team list --team "{team}" --org {org} --project {project} -o json
# the team's current iteration: a sprint team's current sprint, or the team's one fixed node
az boards iteration team list --team "{team}" --timeframe current --org {org} --project {project} \
--query "[].path" -o json
If the context or the user names a specific iteration, that one wins. If the team has no
current iteration, or several, show the team's iterations (the same command without
--timeframe) and ask. On some servers both paths are simply the team's node,
{project}\{team} — as an example, never as an assumption.
The project root is just {project} (no team). When showing a work item, a ticket that sits on
the root is not a defect to report — some are put there on purpose.
# put a work item on a team
az boards work-item update --id {id} --area "{teamArea}" --iteration "{teamIteration}" --org {org} -o json
# clear the team (back to the project root)
az boards work-item update --id {id} --area "{project}" --iteration "{project}" --org {org} -o json
--assigned-to takes the display name ("Erika Mustermann"),
not the e-mail or the DOMAIN\account — look an unknown one up in
System.AssignedTo.displayName of an existing work item.<Beschreibung>) — see the
shared Title schema. Do not prefix the parent type, a #<ID>, or the component;
work item titles are the description alone (that prefix made them long and unreadable).
The parent is still linked in step 6 — it is just not shown in the title. Example:
Wartungsdialog überarbeiten — with the real ü, never ueberarbeiten (shared
German text rule; the same goes for every field).az boards work-item create --title "{title}" --type "{typeName}" \
[--description "{descriptionHtml}"] [--fields "{referenceName}={html}" …] \
[--assigned-to "{displayName}"] --area "{teamArea}" --iteration "{teamIteration}" \
--org {org} --project {project} -o json
#<ParentID> reference), with the parent relation's name from step 1:
az boards work-item relation add --id {newId} --relation-type "{parentRelationName}" \
--target-id {parentId} --org {org} -o json
az boards work-item show --id {id} --org {org} -o json. Read the content from
the fields of its type (a bug's description is often empty — its content is in
Microsoft.VSTS.TCM.ReproSteps); add its comments when they matter (see Comment). Its
attached files and the images embedded in its fields are downloaded, not fetched by URL, when
their content matters — a screenshot, a mockup (shared reference, Attachments need
authentication).az boards query --org {org} --project {project} -o json \
--wiql "SELECT [System.Id], [System.Title], [System.State] FROM WorkItems WHERE [System.WorkItemType] = 'Aufgabe' AND [System.State] <> 'Geschlossen' ORDER BY [System.ChangedDate] DESC"
Field reference names ([System.WorkItemType], [System.State]) are invariant English;
the values ('Aufgabe', 'Geschlossen') are the display names from step 1.<Beschreibung>) per the shared Title schema — no parent type, #<ID>, or component
prefix. Show the change (old vs. new) and wait for approval before sending it.
az boards work-item update --id {id} [--title "{title}"] [--state "{stateName}"] \
[--area "{areaPath}"] [--iteration "{iterationPath}"] [--assigned-to "{displayName}"] \
[--description "{descriptionHtml}"] [--fields "{referenceName}={html}" …] --org {org} -o json
Work item comments form one flat discussion — no threads, no replies, nothing to resolve (unlike PR comments). To answer someone, write a new comment that says what it answers.
az devops invoke --area wit --resource comments \
--route-parameters project={project} workItemId={id} \
--org {org} --api-version 7.1-preview -o json
The API version is exactly 7.1-preview: the CLI fails to parse 7.1-preview.4 ("could not
convert string to float"), and the server rejects a plain 7.1 for this preview resource.az boards work-item update --id {id} --discussion "{commentHtml}" --org {org} -o json
HTML like every other field (<p>, <ul>), at most three sentences or a few bullets,
ending in a concrete proposal or a real question when one is due. Show it to the user before
posting — it appears under their name (Written as the user).Editing or deleting an existing comment is not covered here; point the user to the web UI.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
3 skills in this plugin
/ado-pipelineAzure DevOps pipelines and changelogs via the Azure CLI (az + azure-devops extension) — analyse a build/pipeline failure (timeline, failed-task logs, root cause, suggested fix) and generate a changelog of what changed since a build or commit. Use when the user pastes a pipeline/build URL or a build ID, asks about a build failure, or asks what changed since a build or commit. Newest Azure DevOps Server; assumes you are already signed in (PAT)./ado-prAzure DevOps pull requests via the Azure CLI (az + azure-devops extension) — review a PR, create or update a PR (German title schema, ADO work items linked and referenced as #id), and create/answer/resolve PR comment threads. Use when the user mentions an ADO pull request / PR, pastes a PR URL or ID, or asks to review, open, update, or comment on a PR. Targets the newest Azure DevOps Server version; assumes you are already signed in (PAT).npx claudepluginhub mediainterface/claude-marketplace --plugin ado-toolkit