Skip to content
Development
Skill

/fetch-ticket

Fetch one or more tickets/issues from their tracker (Azure DevOps, Jira, GitHub, …) and save each as a self-contained markdown ticket file. Fetch only — no analysis or planning.

From plugin
agent-toolkit
8030 skills

Claude Code

$ npx -y skills add eai-org/agent-toolkit --skill fetch-ticket --agent claude-code

SKILL.md

fetch-ticket.SKILL.md
name: fetch-ticket
description: Fetch one or more tickets/issues from their tracker (Azure DevOps, Jira, GitHub, …) and save each as a self-contained markdown ticket file. Fetch only — no analysis or planning.
license: MIT
metadata:
  version: "1.18"

Ticket Fetcher

**Fetch only** — no analysis, requirements, or planning. Output is a self-contained `.TICKET.md`.

Source & access

Identify the tracker from the input (URL host, or id shape) and fetch through the matching MCP server — e.g. **Azure DevOps MCP** for ADO work items, **Atlassian MCP** for Jira issues, **GitHub MCP / `gh`** for GitHub issues. Use whichever equivalent tools are connected; tool name prefixes vary by config. Resolve once any handle the MCP needs (e.g. Atlassian `cloudId`, ADO project) and reuse it. A bare id that fits several trackers: the one the project's governing docs name, else the `Source` host all ticket files in the planning directory share, else the only connected tracker MCP; still open → ask, naming your pick. If no matching MCP is connected: a public ticket may be scraped from its URL as a fallback (you may still suggest installing the matching MCP when it would do the job better); a private one can't — the URL returns a login page, not the ticket — so stop and tell the user to install and authenticate the matching MCP server, then re-run.

Your task

1. **Resolve the input.** Accept a full ticket URL or a bare id/key; extract the identifier. If the tracker uses a key prefix (e.g. `XX-1234`), keep it; otherwise use the bare number. If the input is unrecognizable, ask. 2. **Fetch the ticket.** Get the work item/issue with its full field set, comments inline, and related links/relations expanded. Capture **everything** the ticket carries — don't pre-filter to a fixed set of fields. Convert whatever rich-text form you get (HTML, ADF, …) to clean Markdown. 3. **Pick a slug.** Short kebab-case slug, 3–5 words, from the title/summary — greppable, don't overthink it. 4. **Decide the output directory.** First resolve the project's **planning directory**: the one its governing docs name or already in use, default `.agents/plans/`. Inside it, first match wins: 1. **Re-fetch** — the ticket already has a plan directory or flat `.TICKET.md`: write to the next `<id>-<slug>-v2`, `-v3`, … name beside it, the file named like its directory (`<id>-<slug>-vN/<id>-<slug>-vN.TICKET.md`, or flat `<id>-<slug>-vN.TICKET.md`), and say so in the result — **never overwrite**; history per re-fetch is kept on purpose. 2. **Existing family** — an ancestor (parent/epic, nearest first) has a plan directory (`<ancestor-id>-*`, hyphen included; confirm via its `.TICKET.md` that it's really that ancestor's; latest `-vN` when several), or a group directory's `## Ticket set` lists this ticket or a sibling: write flat into it (`<dir>/<id>-<slug>.TICKET.md`) and update the `## Ticket set` sections per [multiple-tickets.md](multiple-tickets.md). 3. **Otherwise** — a new `<id>-<slug>/` subdirectory.

In doubt at any point (unsure a directory is really the family's, …): ask the user, proposing the answer you would pick. **Never guess** — better one extra question than a potential mistake. 5. **Write the ticket file** at `<output-dir>/<id>-<slug>.TICKET.md`, `<id>-<slug>-vN.TICKET.md` on a re-fetch. 6. **Download attachments** — if the ticket carries attachments, inline images, external linked assets, or design-tool links, read [attachments.md](attachments.md) first, then download into the output directory; warn on any that fail. 7. **Print the result** — project-relative paths and the next-step line (see Next step).

Multiple tickets

The input may list several tickets — before picking slugs and directories, read [multiple-tickets.md](multiple-tickets.md): it governs grouping into shared directories, the `## Ticket set` section, and per-ticket launch commands.

Ticket file structure

Must stand on its own: a complete, readable version of the ticket with enough metadata that a fresh session can identify the source without re-fetching.

Header

Plain markdown header with source metadata; omit any line whose value is absent. Include whatever the tracker provides. Example:

# <title / summary>

> **Source** [<id>](<url>)
> **Type** {type}
> **Status** {status}
> **Assignee** {display name or "—"}
> **Reporter / Created by** {display name}
> **Labels / Tags** {joined or "—"}
> **Fetched** {today YYYY-MM-DD}

Body sections

A grouped ticket's `## Ticket set` comes first, directly after the header — see [multiple-tickets.md](multiple-tickets.md). Then, in this order, **only if present and non-empty**:

1. `## Description` 2. `## Acceptance criteria` — if the tracker has a dedicated AC field populated 3. `## <Other fields>` — one section per other populated field carrying real content (technical notes, custom fields, …), headed by the field's display name. Capture everything the ticket holds. 4. `## Comments` — oldest first, each `### <author> — <date>` then the body. Best-effort: if comments aren't returned, note it briefly or omit the section. 5. `## Related tickets` — see below 6. `## Attachments` — see [attachments.md](attachments.md) 7. `## Design references` — see [attachments.md](attachments.md)

Preserve heading hierarchy, bullet structure, emphasis, and code blocks; map in-field subheadings to `####`. Omit empty sections. Quote user-facing strings, code identifiers, file paths, i18n keys, and URLs **verbatim** — never alter or translate them.

Related tickets

From the response's links/relations (and any remote-link tool), for each unique linked ticket (excluding this one) fetch **only** title + status + type via a cheap call — **not** the full body. The main goal is that there is a trace of all related tickets, so they can be fetched later if needed. One bullet each, with the relationship if availab

Read more
@eai-org
Ships withagent-toolkit

A collection of generic agentic tools for common engineering tasks, designed to work with any AI agent on any kind of software project.

Stars on GitHub

Momentum

stars in total
80
Star history of eai-org/agent-toolkit on GitHub, a chart by star-history.com

Other skills on agent-toolkit.

agentify-project

agentify-project

Make a project agent-ready by converging it toward a canonical agent-neutral structure. Re-runnable, and doubles as an audit.

attach-to-ticket

attach-to-ticket

Attach pasted images, files or URLs to a fetched ticket, saved beside its ticket file and referenced from it, or fill an…

compact-docs-writer

compact-docs-writer

Draft, rewrite, or refine a doc for maximum token economy without losing any rule or intent. Use for docs kept in version control…

context-checkup

context-checkup

Audit what auto-loads into an agent session's context window and suggest lean, reversible fixes to cut startup tokens.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about fetch-ticket.

Which coding agents can use fetch-ticket?
fetch-ticket installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.