CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

ado

Azure DevOps PRs and work items via the `ado` CLI. Trigger: PR review/vote/comment, list/create/update work items.

Invalid
This skill can't be scored yet
Validation errors are blocking scoring. Review and fix them to unlock Quality, Impact and Security scores. See what needs fixing →
SKILL.md
Quality
Evals
Security

Activation Contract

Load when the task touches Azure DevOps: pull requests (review, vote, comment, diff, create, chain), work items (list, get, update, create), or profiles. Use the ado CLI — do NOT load the OpenCode plugin tools for these operations.

Hard Rules

  • Run every operation through the ado CLI (ado <group> <sub>). One command per action.
  • Inspect before mutating: read PR/WI state before vote, comment, update, create, chain.
  • Never invent IDs, repos, or branch names — discover them with a read command first.
  • Resolve people before writing them: assignees and reviewers come from a lookup (--assigned accepts a name or email and the CLI resolves it to the identity; check the result with ado wi get), never from a guessed display name or hardcoded string. Cap format-retry guessing at two attempts, then surface the failure.
  • Work item creation defaults (unless the user says otherwise): always --type "User Story"; assignee resolved at runtime from ado wi list (@<name> column) — never hardcode; ALWAYS ask Social vs Infra Kanban first (Social → --profile ysocial --area "ySocial\Kanban"; Infra → --area "Infra\\Infra Kanban"); always ask Producto + Sponsors and pass --field Custom.USProducto=<v> and --field Custom.Sponsors=<v> (the template rejects the create without them); never --field System.AreaPath; --description is Azure DevOps HTML; work item comments are posted as Markdown (see references/templates.md).
  • [repo] is optional; omit it to auto-discover a PR by ID. A given repo selects the profile that lists it; --profile <name> overrides.
  • Only pass flags the command lists: unknown flags are an error (with a "did you mean"). Check with ado <group> <cmd> --help.
  • Long or multi-line bodies: write them to a file and pass --comment-file <path> (pr comment, pr reply, wi comment, wi update).
  • When writing any ADO text (PR comments, vote comments, work item comments/descriptions/titles): reference a pull request as PR-id:1234. Never #1234 — Azure DevOps treats #N as a work item mention.
  • After creating a PR or work item (pr create, pr chain, wi create, wi create-child): always give the user the Azure DevOps URL. Copy it from CLI output; if missing, fetch with ado pr get / ado wi get.
  • Evidence screenshots ride as work item attachments (ado wi attach). Never inline an image into a PR description or a diff.
  • Two hard invariants for any git operation this skill drives (branch, commit, push while preparing a PR): never force-push, never use --no-verify.

Decision Gates

NeedCommand group
Configure / not yet set up / "no profile" or auth errorado init, ado config, ado show → see references/setup.md
Enable/disable or restrict work item creationedit [work_item.create] in .adoconfig.toml → see references/setup.md
Which profile / switch itado profile · ado profile use <name>
Inspect a PRado pr get/context/threads/diff/file
Act on a PRado pr vote/comment/reply/create/chain
Inspect a work itemado wi get/list/related/types
Act on a work itemado wi update/comment/create/create-child

Execution

  1. Confirm context: ado profile (and ado profile use if the wrong one is active).
  2. Read the target: e.g. ado pr context <prId> or ado wi get <id>.
  3. Act with a single mutating command; pass --comment/--state/etc. as flags.
  4. Report the CLI output verbatim; surface any error line to the user.

References

  • references/commands.md — full command list, flags, examples, error handling.
  • references/workflows.md — task playbooks: code review a PR, create/update work items, create a PR or chain, find pending work.
  • references/templates.md — work item body templates per type, and the formatting rules: fields are HTML, comments are Markdown. Read before drafting one.
  • references/setup.md — install, ado init, profiles/PAT, and .adoconfig.toml rules (including whether ado wi create is enabled, allowed types, required fields).

Setup-related requests ("configure ado", "set up the CLI", "no profile / auth failing", "allow/disallow creating work items"): read references/setup.md first.

Repository

YoizenSA/dev-ai-workflow

Path

ywai/skills/ado/SKILL.md

Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.