Skip to content
Back to skills

Tickets

ASecurity

Split milestones into small tickets with files and done criteria.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 20, 2026
ai-agentspythongoawsgitapisecurity

Works with

  • cursor
  • cli
  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add kish21/product-playbook --skill tickets --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tickets?

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

Security grade badge for Tickets
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kish21-tickets/badge)](https://www.skillsdirectory.com/skills/kish21-tickets)

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: tickets
description: Split milestones into small tickets with files and done criteria.
---

# `/tickets` — Phase 2 · Development ④b · run as a **tech lead / project engineer**

> Part of **product-playbook**. Reads the project spine (`PRODUCT.md`, `STRUCTURE.md`, `#Contracts` — resolve per MECHANISMS.md §Spine resolution).
> **Rule files — open by path, never search:** `${CLAUDE_PLUGIN_ROOT}/PRINCIPLES.md` · MECHANISMS.md = `${CLAUDE_PLUGIN_ROOT}/references/mechanisms.md` · MECHANISMS-ON-DEMAND.md = `${CLAUDE_PLUGIN_ROOT}/references/mechanisms-on-demand.md` · STATE-MODEL.md = `${CLAUDE_PLUGIN_ROOT}/docs/state-model.md` (a path still starting with `$`: the variable is the folder two levels above this SKILL.md, holding `commands/` and `PRINCIPLES.md` - never another tool's install). If `python` will not start (not found, or a sandbox refuses it): the project's `.venv` Python, else `python3`, else `py -3` - never a hunt; later commands use the start's `Run this copy as` line.
> **This skill's OWN reference files are a DIFFERENT folder:** `references/` beside this SKILL.md (`commands/tickets/references/`: `adhoc-capture.md` · `publishing.md` · `slicing.md` · `tickets-md.md` · `verification.md`), never the plugin-root `references/`.
> **`status.py rules tickets` prints this phase's sections of `PRINCIPLES.md` and `MECHANISMS.md`** — apply them; never open the whole files (a situational companion only when a rule points into it). Load-bearing:
> **modular / single-responsibility** (one ticket = one concern), **layered & decoupled** (a ticket respects
> the layer boundaries even when it crosses them), **typed contracts** at every seam a ticket exposes,
> **security in the definition-of-done**, and **no hardcoding** (a ticket never asks for a baked-in
> endpoint, key or model name).
> **The start prints what a step needs from them**, the slicing rules inline; one more `§` a step names: `status.py section <path> "<§>"`.

## Contract
- **Purpose:** turn milestones into granular, independently assignable and independently mergeable tickets — grouped by module lane so the backlog **never assumes one builder** — and capture ad-hoc issues without derailing the backlog.
- **Reads:** `PRODUCT.md#Plan`, `#Contracts`, `#Architecture`, `STRUCTURE.md`, `DESIGN.md` (UI products
  only) — **and the files `#Contracts` names** (schemas, route table, db schema): `#Contracts` records only
  *where* the types are, so the start prints the names those files define.
- **Writes:**
  - `docs/issues/*.md` — one file per ticket; root **`TICKETS.md`** — the plan, never status. Both **rendered by `set` from one fields file**.
  - `.github/ISSUE_TEMPLATE/feature_ticket.md` and `.github/PULL_REQUEST_TEMPLATE.md` (copied from bundled `templates/` by `set` if missing).
  - One rule file per module for your tool (`<module>/CLAUDE.md`, a nested `AGENTS.md`, `.cursor/rules/`; Antigravity: none), **written by `set`** from the records.
  - GitHub issues (epics as parents) + milestones + labels + the **Delivery Board** — **ONLY IF** a remote origin is verified and `gh` is authenticated.
- **Checked by `status.py set tickets filled`, not by reading** (the start prints the list; `--dry-run` shows the gaps): exact files, feature doc and tests · a `STRUCTURE.md` lane, an Owner · a security line · `Depends On` exists, no cycle · consumed names in the code or a `(new)` · no two tickets of a milestone writing one file unordered · every milestone ticketed or explained · every exit criterion of a ticketed milestone served or explained · `TICKETS.md`'s lane boxes, no status, day 1 waits for nothing.
- **Gate type:** `derivation` — computable from `#Plan` + `#Contracts`. Batchable - a `derivation` run may chain with its neighbours and end in ONE review. (`STATE-MODEL.md` §2d)
- **State model** (`STATE-MODEL.md` §2c): writes no spine section · `declined` ✓ · `override` ✓ · `superseded` n/a — writes `TICKETS.md` + `docs/issues/*`; a re-run skips tickets that already exist, so there is nothing in the spine to erase
- **Exit criteria:**
  - [ ] **Mode A:** every milestone is decomposed **milestone → epic → ticket** (`references/slicing.md` §Epics), into **as many tickets as it has visible behaviours — no count cap** — under a **stated slice strategy** (vertical or horizontal), recommended with a reason and answered in the one question round; the close **shows the written backlog in full** (every epic and ticket: ID · title · lane · owner; a title with "and" flagged); a change is rewritten and shown again. **Every milestone, now** (the full lane and seat plan for the whole product is the point).
  - [ ] **Every ticket names the `#Plan` exit criterion it serves** (`M1.2`, numbered by the start); every criterion of a ticketed milestone is served by a ticket or `TICKETS.md` says why not.
  - [ ] **Lanes are modules** (`references/slicing.md`): every ticket carries `Lane` = a `STRUCTURE.md` module and an `Owner`; ordered inside a lane, parallel across; root `TICKETS.md` (`references/tickets-md.md`) carries the plan — epics, the parallel table, coordination points, hub files, a Mermaid lane flow graph (one box per lane; solid arrow = wait for the merge, dotted = build against the contract) and the day-1 table — and **never a status**; no `docs/issues/README.md` remains.
  - [ ] **Epics are parent issues** (`references/publishing.md` §Epics are parent issues): each epic is published as a GitHub parent issue with its tickets as sub-issues, **read back**; a re-run creates **no duplicate epic or link**.
  - [ ] **Filed on the Delivery Board** (`references/publishing.md`): every ticket issue is a card with **Status, Owner, Lane, Seat** set and **read back**; labels `lane: <name>` + `owner: <role>`; no `project` scope → said in the close with the command that grants it, never half-stamped.
  - [ ] **Every `Depends On` is a GitHub *blocked by* link, read back** (`references/publishing.md` §Mirror the plan structure, *Dependencies*): prose in a body is not a dependency; a re-run adds the links an earlier publish left out; a `Builds against` is never linked.
  - [ ] Every ticket names **exact target file paths** (`src/services/quoteEngine.ts`), never a bare folder.
  - [ ] Every ticket states its **typed inputs and outputs** — the seam it owns — and **every type, route,
    field and event name it uses RESOLVES to a real symbol** in the files `#Contracts` names, checked by
    `set`: a name that does not resolve is a typo or an invention, and both stop the run.
  - [ ] **Every milestone produces tickets or a recorded reason why not** — a milestone whose deliverable is
    *evidence* (a measurement, a session, a decision) gets the ticket that captures it, or one line in
    `TICKETS.md` saying why it was skipped.
  - [ ] Every ticket is **self-contained**: assignable to one developer and mergeable as an isolated PR.
  - [ ] **Vertical only:** every slice states what a reviewer **can see working** after it merges.
  - [ ] **Horizontal only:** no ticket lists files from two layers, and layers absent from `STRUCTURE.md` produce no ticket.
  - [ ] Every ticket carries a **DoD including security** (input validation, no swallowed errors, no secrets in source).
  - [ ] Ticket IDs are **globally unique and epic-scoped** — `[M1-DISC-03]` is milestone · epic · number, its epic `[M1-DISC]` — so dedup is reliable on re-run.
  - [ ] **Mode B:** an ad-hoc issue is filed against the owning file with a reproduction, and **no backlog ticket is created, renumbered or modified**.
  - [ ] **Pre-flight remote verification executed** — no remote repository is ever created.

## Step 0 — Context + prior-gate check
- **First turn, ONE command: `python ${CLAUDE_PLUGIN_ROOT}/tools/status.py next --phase tickets`.** It prints `#Plan`, `#Scope`'s lines, **the real types, routes and tables the `#Contracts` files define** (`references/verification.md` §Resolve every symbol first), the lanes, the remote, the rounds, the ticket shape and what `set` refuses: open none of those files. Show its first line. `#Contracts` empty: warn (tickets would invent their own types), the user may override; naming files that do not exist: **stop** — drift.
- **An override is RECORDED, never a verbal "yes"** (`MECHANISMS.md` §Declined runs): name the gate being bypassed, ask for the **reason in the user's own words** (the start prints the question), say it will be written down — then record it — `status.py bypass --from tickets --gate <gate> --reason "<the user's own words>"` (`MECHANISMS.md` §Status) — before continuing.
- Brownfield: the start lists `TICKETS.md` and `docs/issues/` — extend the numbering, keep every epic code, migrate an old plan file (`references/publishing.md` §An earlier backlog).
- **Dispatch on the argument — this is the whole mode decision:** no argument or a planning phrase
  (`"break down plan"`, `"sprint backlog"`) → **Mode A** (3A); `"vertical"` / `"horizontal"` → Mode A with the
  strategy chosen; any other free text describing a defect, gap or debt item → **Mode B** (3B). Ambiguous?
  Ask — never regenerate a backlog when the user meant to log one bug.
- **If the gate is unmet and the run stops here, record that it stopped (`MECHANISMS.md` §Declined runs):** `status.py set tickets declined --reason "<what was missing>" --gate <the phase(s) that fill it>` (`MECHANISMS.md` §Status) — and no ticket files are written; the next attempt **replaces** the note.

## Step 1 — Apply principles (this phase)
- **One ticket = one concern; size by behaviour, never by count** (`references/slicing.md` §Size by behaviour).
  Vertically: one behaviour a user can see · one build session · one PR readable in about fifteen minutes —
  a milestone gets as many as it has. A title with "and" is usually two tickets; a layer half is never a
  ticket; never smaller than one visible behaviour. Horizontally: one layer of one milestone.
- **Never assume one builder: milestone → epic → ticket — group by module, slice by visible behaviour, assign
  by role** (§Lanes are modules, §Epics). **The strategy is chosen per milestone** (§Choose the strategy).
- **Every ticket declares the contract it exposes**, so dependent work can start against a stub rather than
  waiting for a merge — a `Builds against`, never a `Depends On` (§Waiting or building against).
- **Security is not a ticket** — a DoD line on *every* ticket; never emit an "add security" ticket.

## Step 2 — Provision templates + pre-flight remote guard (both modes)
**The four guards, one line each — procedure in `references/publishing.md` §Provision and pre-flight:**
1. **Templates — one master per file, never overwritten.** Missing: `set tickets filled` copies them.
2. **Remote guard — NEVER blindly create a remote repository.** No remote, or `gh` not authenticated → write the local files only and say so. **Do not run `gh repo create`.**
3. **Capability pre-flight — a half-published backlog is worse than none.** Issues, milestones, labels and the board (`project` scope) are separate permissions: the engine checks all four **before publishing anything** (exit 2, nothing written); the user chooses degrade-with-a-warning or publish nothing.
4. **Dedup index + numbering.** The engine fetches the existing issues once, never truncated; matches epics and tickets by **exact ID tag** first, exact title second; skips a match; never closes it, edit only by its exceptions. Next number = `docs/issues/` **and** that list together, so a partial publish cannot reuse an ID.

## Step 3A — Mode A: batch milestone decomposition

### 3A.1 — ONE question round, then write, save and SHOW
**The start's questions in ONE message or form** (who builds: alone or 2-10 seats, and owners · the strategy per milestone,
§Choose the strategy · publishing, when a remote exists · each decision a ticket needs that no section
records), each as options with your recommendation marked *(Recommended)* and *Other* 
(`CAPABILITIES.md` §Ask the user a question with options); a decision never asked is never taken.
**After the answers** derive the lanes from `STRUCTURE.md` (§Lanes are modules) and the epics inside them
(§Epics), write the tickets and save - no proposal turn and no save question. **The close prints the whole
result** — milestone → epic → ticket, every ticket as `ID · title · lane · owner · depends on · builds against`,
one behaviour per ticket, **any title containing "and" flagged** (a warning to split or justify, not a block),
with the parallel table and the day-1 rows — and asks *"Change anything?"*: a change rewrites the files and runs
the `set` again. (case file: Confirmed as proposed, never shown)
If the invocation named a strategy, skip the strategy question, not the list.

Record the strategy on every ticket of that milestone.

### 3A.2 — Slice every milestone into one fields file; the script writes the files
After the answers, two calls: ONE fields file in the start's shape (**§Vertical slicing** / **§Horizontal
slicing** / **§Per-ticket content** of `references/slicing.md` by `§` when a field is unclear), then
**`status.py set tickets filled --from-fields <file> --commit "<one line>"`**: it renders the ticket files and
the root `TICKETS.md` in `references/tickets-md.md`'s shape, copies the templates, draws `docs/issues/` in
`STRUCTURE.md`, runs Step 3b's §Before publishing half in code, every problem in one refusal (`--dry-run` lists
them first), and saves only when all pass. Never type a ticket file, `TICKETS.md` or a plan file by hand.

**Local files are the reversible draft; `gh issue create` is the irreversible step** — nothing is
published before that save. (case file: Eleven issues against an invented API)

Then publish the non-duplicates **in the order `references/publishing.md` §Mirror the plan structure onto
GitHub gives** — milestones → labels → **epic parent issues** → tickets → **parent and *blocked by* links** →
**board cards with all four fields** — each read back; a second run adds no duplicate.

**Publish with the engine, never by hand.** From the project folder run ONE command:
`python "${CLAUDE_PLUGIN_ROOT}/commands/tickets/publish.py"` (`--no-board` only when the
user chose no board) - its plan is read from the committed files; a re-run is the same command. It publishes in that order and reads every part back. **Its printed `OK`/`FAIL` lines are
§After publishing's evidence — quote them in the close, and every `note:` line word for word under "What YOU do next".** Exit 1 → name the failed line and stop, never
publish again to make it pass (`no issue found` alone: re-run once); exit 2 → it refused before writing anything, say why.

## Step 3B — Mode B: ad-hoc issue capture
**Fast path — open `references/adhoc-capture.md` and follow it (classify, owning file and lane, parent `#N`,
board card); touch nothing else.** One invocation, one issue. **Never** read `#Plan`, regenerate, renumber,
touch a milestone ticket or epic, or edit `TICKETS.md`.

## Step 3b — Principle-gate: verify the tickets hold (evidence)
**`references/verification.md`, in its two halves.** §Before publishing runs over the LOCAL files: `set
tickets filled` runs its countable checks in code, the symbol check first; the judged ones stay yours, over
the files you wrote — strategy confirmed against the list shown, every ticket independently mergeable,
slice 1 runs end to end, a horizontal ticket one layer. §After publishing holds the read-backs, which the
engine runs once the issues exist (a local-only run skips them and says so).

**Keep the context lean** (`MECHANISMS-ON-DEMAND.md` §Context hygiene): read the scripts' verdicts as printed - no scratch file.

**Close the loop (`MECHANISMS.md` §Step 3b):** `set tickets filled --commit` records the state (`MECHANISMS.md` §Status) and saves unasked — no git call of your own (`MECHANISMS.md` §Commit the work; no save question; `--no-commit` only when the user said not to save) — then prints the rest of the close in order; follow it as printed: reconcile its numbers with `#Plan` (surface a contradiction, never write over it), Step 3c, **the transition guard** (`MECHANISMS.md` §Step 3b, item 4: a verdict for every exit criterion — `UNVERIFIED` is a normal outcome, silence is not). **Close in plain language** (`MECHANISMS.md` §Plain-language close): four blocks in order, each under its bolded name: **What just happened** · **What I skipped or couldn't do** · **Test this yourself** · **What YOU do next** (ends with the handoff `set` printed).

## Step 3c — Contradiction check (BEFORE the save call in Step 3b: what it fixes or records goes in that save)
Per `MECHANISMS.md` §Step 3c, against decisions **already recorded** — `#Plan` milestones, `#Scope` non-goals, `#Contracts` types (`set` names them). On a conflict, **name both sides, ask which wins, and update the loser** (fix the artefact, or a dated `superseded by` line in the earlier section) — never both standing. Added detail is not a contradiction.

## Step 4 — Handoff
"Backlog in epics and lanes, planned in `TICKETS.md` and on the board. Alone? Every seat is yours — run **`/build`** on the
first ticket, one ticket per session. With help, each seat starts its day-1 row, then the next startable
card (*Blocked by #n* waits for #n)."

Files in this skill

  • SKILL.md15.8 KB
  • references/adhoc-capture.md2 KB
  • references/publishing.md19.3 KB
  • references/slicing.md14.1 KB
  • references/tickets-md.md5.9 KB
  • references/verification.md8.8 KB

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.