# Ticket — a Claude Code skill for lean, tracker-agnostic ticket creation
<!--
ref: @wildeagency-public/ticket-skill
type: protocol
tags: [skill, claude-code, ticket, grooming, pm, clickup, github, linear, jira]
triggers: [install ticket skill, ticket skill, claude ticket skill, pm ticket skill, generic ticket skill]
trigger_prompt: When a PM (or PM-acting dev) needs a Claude Code skill that files tickets in any tracker without invented detail — backlog-by-default, grooming-on-demand. Tracker-agnostic; works with ClickUp, GitHub Issues, Linear, Jira, and any other tracker with an API.
complements: [@integrations/clickup, @protocol/spec, @protocol/spec-tracker]
audience: [claude-code-user, pm]
version: 5
updated_at: 2026-06-25T16:59:47.375Z
-->

A skill that solves a real anti-pattern: when a PM (or PM-acting dev) asks Claude to file a ticket, Claude tends to invent acceptance criteria, edge cases, sub-tasks, and "test plans" that the developer downstream treats as law. The dev ends up implementing a hallucination.

This skill flips the defaults:

- **Backlog is free.** `/ticket <anything>` posts to the project's tracker immediately, zero questions.
- **Grooming earns investment.** `/ticket groom <task_id>` asks for WHY/WHAT/repro — and only what's missing, in one message.
- **The dev-ready shape has a ceiling, not a floor.** WHY + WHAT + (for bugs) repro/observed/expected. No "Test plan," no "Acceptance criteria" restating the WHAT, no "We should also consider…" padding.
- **Tracker-agnostic.** The skill discovers the tracker from whatever convention the project uses (`CLAUDE.md`, `workspace/spec.md`, Claude memory, or `README.md`), asks once if it can't find any, and records the answer. ClickUp / GitHub Issues / Linear / Jira recipes are baked in; other trackers are a small inline addition the first time you use them.
- **Three levels of done — done done done.** Every status workflow has some form of *dev done* (the dev finishes) → *verified done* (verification confirms) → *production done* (it's live). The skill maps the project's actual status names to these canonical milestones and to the upstream `Ready for development` handoff (grooming's output — *not* a "done" state). Optional Developer / Verification checklists in the ticket body give each "done" level a checkable surface that shows whether work actually happened, rather than someone just moving a status.

## Install

Save the SKILL.md content below to `~/.claude/skills/ticket/SKILL.md` on your machine.

If you have a way of fetching this protocol's body (`curl`, `curly`, the protocol.supply web UI, or someone handed you the markdown), use it. Otherwise just copy the `SKILL.md` block below into the file by hand. There are no fancy tooling prerequisites for installation — only the runtime (a Claude Code session + your tracker's API access).

Restart Claude Code (or open a fresh session). Invoke as `/ticket <anything>` or `/ticket groom <task_id>`.

## Runtime prerequisites (only what your tracker needs)

The skill itself has no global dependencies. What you need depends on which tracker:

- **ClickUp** → a personal token (`pk_…`) from `https://app.clickup.com/settings/apps`, exported as `$CLICKUP_TOKEN`. Auth is RAW header, NOT `Bearer`.
- **GitHub Issues** → the `gh` CLI authenticated (`gh auth status`).
- **Linear** → a personal API key, exported as `$LINEAR_API_KEY`.
- **Jira** → `$JIRA_EMAIL` + `$JIRA_TOKEN` (API token, NOT password), basic auth.
- **Other trackers** → whatever that tracker's API requires; the skill will ask you the first time.

`curl` is the only tool every recipe assumes. If you prefer a wrapper like `curly`, the recipes work with that too — just substitute the auth flag.

## SKILL.md

````markdown SKILL.md
---
name: ticket
description: Create or groom tickets in the project's tracker — backlog-by-default, grooming on demand. Never invents implementation, acceptance criteria, or test plans. Discovers the tracker from CLAUDE.md, workspace/spec.md, or Claude memory; asks once and records if none are present. Maps the project's status names to the three levels of done (dev done, verified done, production done), plus the upstream "ready for development" handoff.
triggers:
  - create ticket
  - file ticket
  - new ticket
  - groom ticket
  - file a bug
---

# Ticket

Help the user file or groom a tracker ticket without inventing detail.

**One sentence:** Backlog is cheap, grooming is where investment goes, ticket theater is forbidden.

## Step 0 — discover the tracker AND the status workflow

Before doing anything, find where this project's tracker is configured. Check, in order:

1. **`CLAUDE.md`** at the git root (or the working directory if not a git repo).
2. **`workspace/spec.md`** §Tracker (projects using a spec-driven convention).
3. **Claude memory** — files under `~/.claude/projects/<encoded-cwd>/memory/`.
4. **`README.md`** — last resort.

You're looking for:

- **Tracker name** (`clickup` / `github` / `linear` / `jira` / `asana` / `trello` / `monday` / `basecamp` / other)
- **Bug destination** (list id / repo+label / team / project key)
- **Feature destination**
- **Status workflow** — the project's status names, mapped to these canonical milestones. There's one upstream handoff (`Ready for development`, the output of grooming — *not* a "done" state), then **three progressively stronger levels of done**: *dev done* → *verified done* → *production done*.

  | Canonical milestone | What it means | Example status names |
  |---|---|---|
  | **Backlog** | Captured, may or may not pursue. | `to do` (+`backlog` tag), `icebox`, `triage` |
  | **Ready for development** | Grooming is finished; a dev can pick up. *Grooming "done" maps here — but we wouldn't call this done.* | `development-ready`, `ready`, `on deck` |
  | **In progress** | A dev is actively working. | `in progress`, `doing`, `wip` |
  | **Dev done** | The dev says it's done. Code complete; PR open or merged; awaiting verification. | `review`, `in review`, `code review`, `qa` |
  | **Verified done** | Verification confirms it works. Awaiting release if the project distinguishes that step. | `verified`, `staging`, `ready to ship` |
  | **Production done** | Live for users. The final "done done done." | `shipped`, `complete`, `released`, `closed` |

Many small teams collapse **Verified done** and **Production done** into one (deploy on merge = done). Some collapse **Dev done** and **Verified done** (the dev verifies their own work). Both are normal — record the collapse in the tracker config.

If none of the sources has the answers, ask ONCE in chat for the tracker + destinations + status mapping. Record the answer in the most appropriate existing convention:

- If `CLAUDE.md` exists → append a `## Tracker` section there.
- Else if `workspace/spec.md` exists → append §Tracker there.
- Else if a Claude memory directory exists for this project → write `tracker.md`.
- Else → create `CLAUDE.md` at the working root with a `## Tracker` section.

**Don't create a workspace/ or memory/ directory the user didn't already establish.** Match the project's convention.

Don't ask again on subsequent invocations.

If invoked outside any project, ask in chat and don't persist — session-scoped.

## Default flow — `/ticket <anything>`

**A title is enough.** Don't ask questions. Don't show a draft. Don't ask for confirmation. Just post.

- **Route:** bug language ("broken", "fails", "doesn't work", "error", "bug") → bug destination. Else → feature destination. 50/50 → features.
- **Status:** the tracker's `Backlog` status (from Step 0).
- **Body:** the user's text verbatim. Empty string if title-only.
- **Override destination:** `/ticket --to <name> <title>` for explicit routing.

Return the task id and URL.

That's it. Friction kills the backlog.

## Grooming flow — `/ticket groom <task_id>`

1. Fetch the existing task (use the tracker's read recipe below).
2. Identify what's missing for dev-ready (see Dev-ready shape).
3. **If the title is epic-shaped** (broad verbs — "build", "finish", "implement", "design", "rebuild" — paired with a system/area name, e.g. "Build the recommendations engine"), ask once: *"This sounds epic-sized. File as a parent and decompose into shippable chunks, or keep as one ticket?"*
4. Otherwise: ask in ONE message for the missing gaps only. Example: *"For grooming: what's the user value, and (since it's a bug) what are the repro steps?"*
5. Draft the dev-ready body, including the optional Developer / Verification checklists derived from the WHAT (see "Checklists" below). Show it. Ask once: *"Apply?"*
6. On yes:
   - PUT/PATCH the description.
   - Transition status to **Ready for development** (the project's name for it, per Step 0).
   - **Manage tags via the tracker's tag API — do NOT include tags in a body update.**

## Dev-ready shape — the goal AND the ceiling

```markdown
## WHY
<user value or problem — 1-3 sentences>

## WHAT
<desired behavior, observable from the user's perspective — NOT how it's built>

## Repro  (bugs only)
1. ...

## Observed / Expected  (bugs only)
- Observed: <what happens now>
- Expected: <what should happen>

## Developer checklist  (optional — delete if not useful)
- [ ] <feature/sub-behavior 1 from WHAT>
- [ ] <feature/sub-behavior 2>

## Verification  (optional — for the verifier; delete if not useful)
- [ ] <observable check 1>
- [ ] <observable check 2>

## Notes  (optional)
<screenshots, logs, inspiration — ONLY if the user supplied them>
```

**The WHAT is the acceptance criterion if it's observable.** No separate "Acceptance criteria" restating it. No "Test plan." No "Out of scope." No "Risks." No "Sub-tasks." Dev adds notes on pickup.

## Checklists — when to include, how to derive

Checklists map directly to the three levels of done:

- **Developer checklist** = the dev's sub-behaviors. All checked → **Dev done**.
- **Verification checklist** = the verifier's observable checks. All checked → **Verified done**.

Both are **optional**. They show up as Markdown task lists (`- [ ]`), which every modern tracker renders as checkable items — so a glance at the ticket says whether the work and verification actually happened, not just whether someone moved a status.

**Include checklists when:**
- The WHAT has 2+ distinct sub-behaviors. Example: "sort contacts by name (asc/desc) AND by last interaction" → two items each.
- A bug touches multiple symptoms that need independent verification.

**Skip checklists when:**
- The WHAT is a single behavior. Overhead exceeds value.
- The dev/verifier will obviously read the WHAT anyway.

**How to derive (no invention):**
- **Developer checklist** = one checkbox per sub-behavior in the WHAT. Use the user's words. If the WHAT is one line, skip the section.
- **Verification checklist** = one checkbox per observable check that confirms a sub-behavior works. Phrasing is "what the verifier does and sees" (e.g. *"Click the name header — list reorders A→Z"*), not "what the code does."

If the user added Repro/Observed/Expected (bugs), the Verification checklist mirrors those: each step in Repro becomes a verifier action, Observed/Expected become the pass/fail criteria.

**The checklists can be ignored.** A dev may mark a ticket Production done without checking any boxes. That's allowed — but the unchecked boxes are a *signal*: was verification actually done, or did the ticket just get moved? The skill produces the checklists; the team decides whether to use them.

## Hard guardrails — never invent

- Acceptance criteria the user didn't provide
- Edge cases the user didn't raise
- Implementation approach, architecture, schema, library choices
- Sub-tasks or decomposition (except via the grooming epic prompt above)
- Estimates, priorities, severities, assignees
- **Test plans** — the dev writes these. (Checklists ≠ test plans: checklists are derived from WHAT; test plans invent scenarios.)
- "We should also consider…" sections
- AC that just restate the WHAT
- Checklist items not derivable from the WHAT, Repro, or Observed/Expected

**Don't restate the user's words.** If they wrote "Sort contacts by name", the WHAT *is* "Sort contacts by name." Don't rewrite to "Users should be able to sort their contact list…"

**Don't over-tag.** One area tag if the title obviously names one. None otherwise. Two max if both areas are explicit. Never add tags to be "thorough."

If a section feels thin and you're tempted to pad: **stop.** Lean is the goal.

## Push-back rule

Only one case: if the title is genuinely unparseable (`/ticket fix it`, `/ticket the thing`), ask for one sentence of context. Otherwise post it.

## Confirm-or-don't

| Action | Confirmation? |
|---|---|
| Default backlog post | **No.** Post and return URL. |
| Grooming PUT | One ask for missing fields, one confirm before applying. |
| Direct dev-ready create (`/ticket dev-ready <thing>`) | One confirm before posting. |
| Status transition (Dev done, Verified done, Production done) | The dev/verifier moves these in the tracker UI; the skill doesn't auto-transition past **Ready for development**. |

Asking the user to "approve" text they just pasted is ceremony.

---

# Tracker recipes

Pick the one that matches the configured tracker. Values in `<…>` come from Step 0 — never hardcode them inside the recipe.

If the user's tracker isn't listed below, ask them how to call it (CLI, REST, GraphQL?) and add the recipe to their tracker config so you have it next time.

## ClickUp

Field map: `name` (title), `markdown_description` (body), `status` (string), `tags` (array). Auth: personal token (`pk_…`) goes RAW in the `Authorization` header — **NOT** `Bearer` (Bearer returns `OAUTH_019`).

```bash
# Create
cat > /tmp/ticket.json <<JSON
{
  "name": "<title>",
  "markdown_description": "<body>",
  "status": "<backlog status>",
  "tags": ["<area or 'backlog'>"]
}
JSON
curl -sS -H "Authorization: $CLICKUP_TOKEN" -H "Content-Type: application/json" \
  https://api.clickup.com/api/v2/list/<LIST_ID>/task -d @/tmp/ticket.json
# Read .id; URL = https://app.clickup.com/t/<id>

# Read for grooming
curl -sS -H "Authorization: $CLICKUP_TOKEN" \
  "https://api.clickup.com/api/v2/task/<id>?include_markdown_description=true"

# Update body + status (no tags here — they have a separate endpoint)
curl -sS -X PUT -H "Authorization: $CLICKUP_TOKEN" -H "Content-Type: application/json" \
  https://api.clickup.com/api/v2/task/<id> \
  -d '{"markdown_description":"<new body>","status":"<ready-for-development status>"}'

# Tag management
curl -sS -X POST   -H "Authorization: $CLICKUP_TOKEN" https://api.clickup.com/api/v2/task/<id>/tag/<tag>   # add
curl -sS -X DELETE -H "Authorization: $CLICKUP_TOKEN" https://api.clickup.com/api/v2/task/<id>/tag/<tag>   # remove
```

## GitHub Issues

Field map: title (`-t`), body (`-b`), labels (`-l a,b,c`). State labels are the project's convention.

```bash
# Create
gh issue create -R "<owner/repo>" \
  -t "<title>" \
  -b "<body>" \
  -l "<state:backlog>,<kind:bug or kind:chunk>"
# stdout is the URL

# Read for grooming
gh issue view <num> -R "<owner/repo>" --json title,body,labels

# Update body
gh issue edit <num> -R "<owner/repo>" --body "<new body>"

# State transition (label-driven)
gh issue edit <num> -R "<owner/repo>" \
  --remove-label "<state:icebox>" \
  --add-label "<state:on-deck>"
```

## Linear

GraphQL. Body field is `description` (markdown). Authentication via `Authorization: <api_key>` (no `Bearer`).

```bash
# Create
cat > /tmp/q.json <<JSON
{ "query": "mutation { issueCreate(input: { teamId: \"<TEAM_ID>\", title: \"<title>\", description: \"<body>\", stateId: \"<BACKLOG_STATE_ID>\" }) { issue { id identifier url } } }" }
JSON
curl -sS -H "Authorization: $LINEAR_API_KEY" -H "Content-Type: application/json" \
  https://api.linear.app/graphql -d @/tmp/q.json
# Read .data.issueCreate.issue.url

# Read — query { issue(id: "<id>") { title description state { name } labels { nodes { name } } } }
# Update — mutation { issueUpdate(id: "<id>", input: { description: "<new>", stateId: "<READY_FOR_DEV_STATE_ID>" }) { issue { id } } }
# Label add — mutation { issueAddLabel(id: "<id>", labelId: "<LABEL_ID>") { success } }
```

Linear's `stateId` values are workspace-specific; cache them in the tracker config after the first lookup.

## Jira

REST v3. Body uses ADF (Atlassian Document Format) for full fidelity; for most PM tickets, `description` as a plain string works against modern instances. Auth: basic `email:api_token`.

```bash
# Create
cat > /tmp/issue.json <<JSON
{
  "fields": {
    "project":   {"key": "<PROJECT_KEY>"},
    "summary":   "<title>",
    "description": "<body>",
    "issuetype": {"name": "<Bug | Story>"},
    "labels":    ["<area>"]
  }
}
JSON
curl -sS -u "$JIRA_EMAIL:$JIRA_TOKEN" -H "Content-Type: application/json" \
  https://<your-instance>.atlassian.net/rest/api/3/issue -d @/tmp/issue.json
# Read .key; URL = https://<instance>/browse/<KEY>

# Read for grooming
curl -sS -u "$JIRA_EMAIL:$JIRA_TOKEN" https://<your-instance>.atlassian.net/rest/api/3/issue/<KEY>

# Update body
curl -sS -X PUT -u "$JIRA_EMAIL:$JIRA_TOKEN" -H "Content-Type: application/json" \
  https://<your-instance>.atlassian.net/rest/api/3/issue/<KEY> \
  -d '{"fields":{"description":"<new body>"}}'

# Status transition (two-step: list transitions, then POST one)
curl -sS -u "$JIRA_EMAIL:$JIRA_TOKEN" https://<your-instance>.atlassian.net/rest/api/3/issue/<KEY>/transitions
curl -sS -X POST -u "$JIRA_EMAIL:$JIRA_TOKEN" -H "Content-Type: application/json" \
  https://<your-instance>.atlassian.net/rest/api/3/issue/<KEY>/transitions \
  -d '{"transition":{"id":"<TRANSITION_ID>"}}'
```

## Other trackers (Asana, Trello, Monday, Basecamp, etc.)

If the user's tracker doesn't have a recipe above:

1. Ask the user for the API basics (auth method, endpoint, field names for title/body/status).
2. Try the call. If it works, post.
3. Record the recipe in the tracker config so it's there next time.

---

## Failure mode

If a post fails, surface the tracker's error response verbatim and stop. Don't retry blindly. Common causes: missing/invalid token, wrong destination id, invalid status name (the project may have renamed states — update the config).

````

## Design notes

A few choices to flag for anyone forking:

1. **The skill discovers the tracker; it doesn't assume one.** Step 0 checks `CLAUDE.md`, `workspace/spec.md`, Claude memory, and `README.md` — whichever the project already uses. It records new answers into the existing convention; it doesn't impose a `workspace/` or memory directory that wasn't already there.
2. **Backlog is a status OR a tag, depending on the tracker.** ClickUp typically uses `status: "to do"` + `tags: ["backlog"]`. GitHub uses `state:icebox` as a label. Linear has a native "Backlog" workflow state. The skill defers to the recorded config.
3. **No "Test plan" section, ever.** The most common ticket-theater offender: an AI-generated test plan, longer than the WHAT, that the dev ignores. The skill bans it.
4. **The grooming prompt is one message, not a form.** PMs don't want to fill out fields. They want to type one paragraph and have the skill route it.
5. **Tag management is separate from body update.** Body PUT/PATCH ≠ tag changes. Always use the dedicated tag endpoint (add/remove individually) to avoid clobber-on-write.
6. **Epic detection lives in grooming, not in default flow.** Backlog stays cheap. Epic-shape ("build/finish/implement <system>") only triggers a decomposition prompt during grooming, never during the initial post.
7. **Only `curl` is universal.** Every recipe uses raw `curl` (or `gh` for GitHub) so a fresh Claude Code install can run the skill without first installing a wrapper. Wrappers like `curly` work too — substitute the auth flag.

---

*Related: `@content/web/xinyadu/2026-11-29-claude-code-task-framing-study` · `@content/web/github/2026-11-27-resume-command-osc-7577-issue-112408` · `@content/web/github/2026-11-26-opus-context-fills-faster-issue-112194` · `@content/web/github/2026-11-26-interactive-session-misclassified-background-issue-112133` · `@content/web/github/2026-11-26-autodream-silently-ignored-issue-112310`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*