Skip to content
Back to skills

Ticket Spec

ASecurity

Turn a raw Triage ticket (Linear or GitHub Issues) into a fully specified ai:agent-ready one by exploring the codebase. Use when specifying, refining, or promoting tickets, or when asked why a ticket isn't dispatchable.

  • 25 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added September 2, 2026
ai-agentsrustgodockergitapidatabasesecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add watt-mind/factory --skill ticket-spec --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ticket Spec?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ticket Spec
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/watt-mind-ticket-spec/badge)](https://www.skillsdirectory.com/skills/watt-mind-ticket-spec)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ticket-spec
description: "Turn a raw Triage ticket (Linear or GitHub Issues) into a fully specified ai:agent-ready one by exploring the codebase. Use when specifying, refining, or promoting tickets, or when asked why a ticket isn't dispatchable."
---

# Specifying a ticket

A ticket is dispatchable only when it carries all five sections (`docs/protocol.md` §5). Most of that is **derivable from the codebase, not from the human**: `Source File Pointers`, `Owned Paths`, and `Verification Command` are search-and-read problems. `Acceptance Criteria` is usually the problem restated observably. Only genuine product intent needs a person.

So the job is not "spec everything" — it's **sorting tickets into three piles** and handling the first two yourself.

## The three outcomes

**Auto-specifiable** — the problem is unambiguous and the answer is in the code. Assume the operator is AFK by default: resolve derivable technical/architectural choices (module shape, file layout, test strategy) and set evidence-based priority (from severity, frequency, and blast radius) directly from `origin/<base>` conventions rather than holding for confirmation. Explore read-only, write all five sections, and promote to `Todo` + `ai:agent-ready` **plus a `tier:*` label**.

### Sizing the `tier:*` label

Closed vocabulary, at most one per ticket: `tier:light`, `tier:standard`, `tier:strong`.

- `tier:light` — one or two files in `Owned Paths`, no path under `escalate_paths` (`config/repos.yaml`), `type:docs` / copy / config-value changes, or a `type:bug` with a repro and a one-line expected fix.
- `tier:strong` — any path under `escalate_paths` (auth, payments, migrations, prod infra), `type:security`, cross-package or architecture work (`area:architecture`), anything whose acceptance criteria say "design"/"decide" or list open questions, or a ticket that previously failed verification.
- `tier:standard` — everything else (the default).

If the ticket already carries a `tier:*` label, leave it — don't recompute or overwrite an existing tier decision. State the tier and why in the promotion comment. `tier:light`, `tier:standard`, and `tier:strong` drive `/factory-work`'s Difficulty tier × harness routing table (and `factory-merge-reviewer` review depth).

**Answerable from written decisions or codebase precedent** — intent looks unclear at first glance, but is already answered by the repo's `docs/product-decisions.md`, `docs/`, the tracker project Overview, prior tickets in the same area, or `origin/<base>` sibling conventions. Resolve it, **cite where you found it** in the ticket so the next agent doesn't re-litigate, then promote.

**Genuinely needs a human** — an unrecorded user-visible product-intent fork, missing credentials/external access, or irreconcilable product scope (never derivable engineering choices or priority — priority is always set from severity/frequency/blast-radius evidence). Move to `Blocked` + `ai:blocked`, strip `ai:agent-ready` if present (never leave an evaluated hold in `Triage`, where subsequent triage ticks will re-derive and re-comment it indefinitely), comment the specific question phrased so one reply unblocks it, and batch every such question into a single notification at the end of the run. Never a ping per ticket.

## Rules that keep this honest

**A promoted ticket must be falsifiable.** Before promoting, confirm every file in `Source File Pointers` exists and **run the `Verification Command`**. A spec that looks complete but whose command doesn't run is worse than leaving the ticket in `Triage` — it burns a full agent run to discover, and the agent that discovers it has already created a worktree and a database.

It is fine for the verification command to _fail_ — that's the bug. It must not _error_: a wrong path, a missing script, a task name that doesn't exist.

**Scope `Verification Command` to targeted tests, never the full suite.** Name the exact unit, integration, or E2E test file(s) or filter exercising the ticket's change rather than bare `bun test`, `npm test`, `uv run pytest`, `cargo test --workspace`, or full Playwright runs when CI covers the suite. Put the command under `## Verification Command` (not embedded inside Acceptance Criteria or prose), and reject generic substitutes (e.g. bare `git diff --check`) or vague "verify manually" lines. Attribute deferred full-suite runs and whole-project coverage thresholds to CI, and require the implementing PR's `## Handoff` (`Risks`) to list any deferred full-suite or coverage check explicitly as residual risk.

**Structured `## Manual Verification` when no meaningful command exists (or alongside automated checks).** When no meaningful automated command can verify the change (or when explicit manual QA is needed alongside an automated command), include a `## Manual Verification` section with all four required fields:

- **Setup:** environment, browser or device, and test data.
- **Steps:** reproducible steps to open, act, or observe.
- **Pass criteria:** observable result that confirms the fix.
- **Evidence:** what to attach or record (screenshot, trace, or reviewer sign-off).

Accept manual-only verification at promotion only when the assigned lane or named reviewer can perform it; if it requires an unavailable device, environment, or human-only decision, record that specific dependency (`Unavailable dependency: ...`) and hold the ticket instead of promoting.

**Specify a post-deploy check when runtime boundaries move.** When a ticket changes HTTP/API contracts, user-facing flows, SSR/routing, auth/middleware, DB migrations, Dockerfiles/workflows, or external integrations, include a `- [ ] Post-deploy: <observable live check on staging/prod; read-only on prod>` bullet inside `Acceptance Criteria` (keeping the five-section template intact).

**`Owned Paths` is the concurrency key, so tight globs beat convenient ones.** It is the set the ticket may modify, and the dispatcher refuses to run two tickets whose sets intersect. `app/**` blocks every other ticket in the repo; `app/services/api.ts` + `app/services/__tests__/*` blocks almost nothing. Over-broad paths don't just risk scope creep — they serialize the factory.

When a well-specified ticket genuinely requires a broad glob, directory, or repository-wide sweep that cannot be narrowed to concrete files, do not let width alone block it: keep the broad path(s) in `## Owned Paths` and add an explicit broad-scope declaration line:

- `- **Broad scope:** exclusive — <concrete rationale>` (holds exclusive ownership over the declared scope; overlapping tickets wait, disjoint narrow tickets still run in parallel), or
- `- **Broad scope:** repo-exclusive — <concrete rationale>` (holds exclusive ownership over the entire repository; waits until no other ticket is in flight and blocks all other tickets while running).

Include the test files and the docs the change will touch. A path the agent needs but doesn't own means it stops and blocks. Author `Owned Paths` as parser-safe bullets — one repo-relative path or glob per bullet; never use comma-separated lists, which are silently dropped.

**Generated outputs must be owned with their source.** When a source path has generated copies, every ticket that may edit that source must include those generated outputs in `Owned Paths`; otherwise verification can require changes the implementing agent is forbidden to make. In this repo, owning any path under `shared/` therefore also requires owning `dist/**`, `plugins/core/**`, and `event-runtime/pins.json`, because `bun build/emit.mjs --check` and the runtime pin check verify both generated trees and the harness pins; similarly, `agents/X.md` pairs with `X.json`, and `agents/*.json|*.view.json` pairs with `event-runtime/lib/registry.test.mjs`. Apply the same rule to any other source-to-generated-output relationship you discover while specifying a ticket.

WM-289 is the worked failure: its spec owned `shared/` but omitted `dist/AGENTS.floor.md`. The agent correctly edited the source, then had to block because regenerating the stale emitted copy would have exceeded its Owned Paths. The correct spec would have included the relevant `shared/**` source plus `dist/**`, `plugins/core/**`, and `event-runtime/pins.json`, allowing `bun build/emit.mjs`, `bun event-runtime/cli.mjs update-pins`, and the declared verification to complete in scope.

**Owned Paths orders nothing — `blocked by` relations do.** Disjoint paths only mean two tickets can run _simultaneously_; if one consumes the other's output (a helper it adds, a migration it lands), they must not, and the dispatcher can't see that from globs. Set the Linear `blocked by` relation when you spec a ticket that builds on an open one — dispatch holds it until the blocker is `Done`/`Canceled` and releases it automatically. A spec whose hidden prerequisite is only mentioned in prose will dispatch anyway and burn the run.

**Never promote what you couldn't verify against the actual codebase.** If exploration didn't find the code, that's a hold, not a guess.

**Don't spec the whole backlog.** Queue depth is the throttle: keep roughly 20 tickets dispatchable and spend the remaining effort on the highest-priority `Triage` items. Most of a deep backlog will be closed, deduped, or overtaken before anyone works it. Measure **queue-hours remaining**, not ticket count — that's the number that says whether the factory is about to idle.

## Before writing anything

Follow the floor's **Checkout freshness** check against `origin/<base>` (`git fetch --quiet`, then verify against `origin/<base>` rather than trusting a potentially stale working tree) to check the ticket isn't already solved: a duplicate of an open issue, already shipped on `origin/<base>`, or provably obsolete. When hard evidence on `origin/<base>` or the tracker proves it, retire it directly (`Duplicate` linking the surviving issue, or `Canceled` with a commit/PR citation — never delete) without pausing for confirmation. When non-obvious, leave it open rather than stalling on a question. Cheaper than a perfect spec for work nobody needs.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.