/azure-devops:azure-devopsfrom azure-devops
Access Azure DevOps work items and pull requests via the az CLI — read, create, link, WIQL queries, PRs. Works on any project/organization (org/project derived from the git remote). Trigger: /devops, 'read work item', 'create a bug/task', 'create a PR', a work item URL or #number.
Ships in azure-devops. 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.
az CLIFor Azure DevOps, NEVER use curl/WebFetch against the REST API (it returns a
302 redirect to login and looks like you have no access) and never gh (that's
GitHub). Always use the az CLI with the azure-devops extension — it is
authenticated and works immediately.
Do NOT hardcode the org/project — derive them from the repository or the defaults:
git remote get-url origin
# https://<org>.visualstudio.com/<Collection?>/<Project>/_git/<Repo>
# https://dev.azure.com/<org>/<Project>/_git/<Repo>
az devops configure --list # check configured defaults (organization, project)
--org/--project.--organization https://... --project <P> to every command, or set
az devops configure --defaults organization=... project=... (after confirming
with the user, since it is a global setting).az extension add --name azure-devops, sign in with
az login (AAD) or az devops login (PAT).# read (URL .../_workitems/edit/<id> or #<id>)
az boards work-item show --id <id> -o json
az boards work-item show --id <id> --query "{title: fields.\"System.Title\", state: fields.\"System.State\", type: fields.\"System.WorkItemType\", area: fields.\"System.AreaPath\", iter: fields.\"System.IterationPath\"}" -o json
# create (take type/area/iteration from a related item or the parent US if the user doesn't say)
az boards work-item create --type Bug --title "..." --area "<AreaPath>" --iteration "<IterPath>" --assigned-to <email> --query "{id: id}" -o json
# update fields (Bug: the description belongs in Repro Steps, not in System.Description)
az boards work-item update --id <id> --fields 'Microsoft.VSTS.TCM.ReproSteps=<div>HTML content…</div>'
# links
az boards work-item relation add --id <child> --relation-type parent --target-id <parentId>
# search (WIQL) — CAUTION: only the fields in SELECT are returned; always read with -o json
az boards query --wiql "SELECT [System.Id],[System.WorkItemType],[System.State],[System.Title],[System.AreaPath],[System.IterationPath] FROM WorkItems WHERE [System.Title] CONTAINS 'xyz'" -o json
Pitfalls (learned the hard way):
-o table on az boards query drops fields — always use JSON and extract from fields.Microsoft.VSTS.TCM.ReproSteps comes back as HTML; images embedded in a work item
CANNOT be fetched through the API — ask the user for a screenshot.--assigned-to: if it returns "is not a known identity", the user's DevOps
identity uses a different email domain than their local git config — check on an
existing work item:
az boards work-item show --id <known id> --query "fields.\"System.AssignedTo\".uniqueName".# create — always link the work item(s)
az repos pr create --source-branch <branch> --target-branch <develop|main> \
--title "#<workitem> <type>: <description>" --work-items <id> \
--description "..." --query "{id: pullRequestId}" -o json
# status / list
az repos pr show --id <prId> --query "{status: status, merge: mergeStatus, closed: closedDate}" -o json
az repos pr list --status active -o table
Pitfalls (learned the hard way):
transitionWorkItems=false
(az repos pr update --id <id> --auto-complete true --transition-work-items false),
so linked work items don't jump to Resolved.#<number> <type>: <description>
derived from the branch name).work-item create with the same area/iteration, type Bug, assigned to the user.work-item update with Repro Steps (HTML: symptom, cause, fix).relation add parent.BUGFIX/<id>-short-description off the development branch; at the end
pr create --work-items <id>.az boards work-item delete) without explicit confirmation.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ulebule/claude-skills --plugin azure-devopsOther plugins' skills for the same job