Claude Skill

to-tickets

Use at full-spec rung and above when an approved plan needs splitting into tickets with explicit blocked-by edges, published as Kanban cards. Fires on conditions; quiz before publish.

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Download bmtrnavsky-disciplined-vibe-coding-skills_to-tickets-0571870.zip · 5 KB

Install

skills CLI npx skills add https://github.com/bmtrnavsky/disciplined-vibe-coding/tree/main/skills/to-tickets
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install bmtrnavsky-disciplined-vibe-coding@llmmart
Git git clone https://github.com/bmtrnavsky/disciplined-vibe-coding.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole bmtrnavsky/disciplined-vibe-coding collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

To tickets — one approved plan, many grabbable tickets

Prime directive

A plan is a map. A ticket is one promise a single builder can keep in one sitting. Hand out promises, not maps.

When this fires

It fires on its conditions, with no asking. There are two gates, because drafting is free and publishing dispatches workers (spend):

May draft when all hold:

  1. The rung is full-spec or above.
  2. A milestone plan exists and is approved.
  3. The work is big enough to need the split: 8 or more plan steps, or 2 or more workers, or work that will not finish in this session.

May publish when all hold:

  1. The draft exists and the quiz (§5) is approved by the user.
  2. Teardown has passed on the plan that carries the ticket groups.
  3. scripts/dvc_tickets.py --tickets T1,T2,... check exits 0. That command reads the approval record, bound to the plan digest, and the stage log: the latest Teardown pass must carry this plan's digest. Log teardown with dvc_stage.py log --stage Teardown --gate G4 --result PASS --plan <plan file>. No record, no publish — and a headless run cannot make one, because approve refuses without the explicit --interactive flag.

Do not fire when: the rung is below full-spec; the plan is already ticketed (its ticket groups exist); or the next move would be publishing from a headless run — headless runs draft under .pipeline/tickets/ and stop.

What is enforced, and what is guidance

No claim below is quietly demoted: each one either fails a command or is stated as judgment.

Claim Status Where
interactive session before publishing ENFORCED — approve exits 2 without --interactive §5
quiz approved before any kanban_create ENFORCED at the publish step — check exits 1 without a matching record; publishing without running it is an unlogged approval, a pipeline defect §6
approval binds the plan it approved ENFORCED — the record holds the plan digest (Status line and card ids excluded) §6
teardown passed on this plan ENFORCED as a record — check exits 1 unless the latest Teardown PASS/BYPASS in the current loop carries this plan's digest; it proves teardown was logged on this plan, not that the review was good §6
every plan step in exactly one ticket guidance — plan prose has no machine-readable step→ticket map; the cut is checked by re-reading it against Steps §2
assignee on every card guidance — no API refuses an unassigned card, so the publish step lists the cards it created and confirms it §6
stop on a partial publish, no retry guidance — it depends on a tool failing mid-loop, which cannot be pre-checked §6
size trigger: 8+ steps, 2+ workers, multi-session guidance — the 8-step count is done while reading the plan; workers and sessions are judgment When this fires

Steps, in order

1. Read the plan you were given

Read the whole plan file, its to-spec, and the files-touched list. The plan is the only source of truth for scope: if the plan does not say it, it is not a ticket.

Refuse and say why if: no plan exists, or the plan is still DRAFT. Tickets cut from an unapproved plan multiply an unexamined idea. Teardown gates publishing, not drafting: cut into the plan before teardown so the reviewer sees the cut, and publish only once teardown has passed.

You may read code to understand the plan. You may not change code. Your one write is this skill's cut into the plan file — ticket groups, their blocked by: lines, and nothing else — because the plan file is the one artifact. The orchestrator owns that file. When you edit an approved plan, re-stamp its status DRAFT; the quiz re-approves it, and right after approve you stamp Status: APPROVED. The Status line and the card ids written in §6 are bookkeeping: the plan digest leaves them out, so neither breaks the approval or the teardown binding. Any other edit does.

2. Cut the plan into tickets

Each ticket is a vertical slice: a narrow path that runs all the way through the work and leaves something a person can see working. A ticket that only changes a layer is a horizontal slice — that is a step, not a ticket.

Rules for the cut:

  • A ticket sweeps 2–6 plan steps. Fewer is a step wearing a costume; more will not fit one sitting.
  • A finished ticket is demoable or checkable on its own, with its own verify command from the plan.
  • A ticket fits one fresh context window. That is the real size limit.
  • Every plan step lands in exactly one ticket. A step in no ticket is a hole; a step in two is a merge waiting to happen.
  • Keep the plan's exact paths in the plan. The ticket carries behavior and its verify command; its first instruction is "read plan section T

Number tickets T1…Tn so blockers come first. A reader should be able to go top to bottom.

3. Declare the edges

Every ticket gets exactly one line: blocked by: <ticket ids> or blocked by: none.

An edge is real only if the blocker's output is needed as input. "It feels later" is not an edge; neither is "same area of the code". Over-declaring edges serializes work that could run in parallel, which is the exact cost tickets are meant to remove.

Two tickets that touch the same file are not blocked — they are serialized by execute's shared-file rule. Do not express file contention as a dependency.

A cyclic set of edges means the cut is wrong. Re-cut; do not publish.

4. Wide refactor? Sequence it, do not slice it

A wide refactor is one mechanical change whose blast radius covers the codebase, so no slice can land green. Do not force it into a vertical ticket. Use three ticket kinds, in this order:

  • expand — add the new form beside the old. Nothing breaks.
  • migrate — move call sites over in batches sized by blast radius (per package, per directory). One batch, one ticket, each blocked by: expand. The old form still exists, so each batch can stay green.
  • contract — delete the old form. blocked by: every migrate ticket.

If even the batches cannot stay green alone, they share an integration branch and one final integrate-and-verify ticket that all of them block. Green is promised only there. Say that out loud in the quiz so nobody is surprised.

5. Quiz before publishing

Present the ticket set as a numbered list. Per ticket show only:

  • Title
  • blocked by (or none)
  • What it delivers — the behaviour that becomes true, from the user's side
  • Its verify command

Then ask exactly three questions:

  1. Is the size right — any ticket too coarse or too fine?
  2. Are the edges right — does each ticket depend only on what truly gates it?
  3. Merge or split anything?

Iterate until approved. On the third pass with no agreement, stop and report what is unresolved: size questions are usually a scope question in disguise.

When the user approves, record it — this is the only interactivity signal in the pack, never inferred:

python scripts/dvc_tickets.py --interactive --by <name> --tickets T1,T2 approve

No flag, no record, no publish. Editing the plan body after the record breaks the binding, so re-run teardown and re-approve after any body edit. Stamping Status: APPROVED after the record does not break it.

6. Publish to the board

Publish only after the quiz is approved AND teardown has passed. Run the gate first — it checks both: the approval record, and the latest Teardown pass carrying this plan's digest. Stop on a non-zero exit; that command is the only thing that tells you both were recorded:

python scripts/dvc_tickets.py --tickets T1,T2 check

Then, only as cards:

  • One card per ticket. Never one card holding a list.
  • parents=[...] carries the blocking edges. The board already promotes a child to ready only when every parent is done — that is the frontier, and nothing needs to store it.
  • Publish in dependency order so every parent id exists before it is referenced.
  • Assign the right profile. A card without an assignee is never dispatched, so an unassigned card is an unfinished publish.
  • Record the returned card id next to its ticket heading in the plan: ### T2 <title> — card: t_ab12. The plan is the one artifact; the id beside the ticket is what lets a later session match board to plan without guessing (bookkeeping: the digest excludes it, so the plan stays APPROVED).
  • Link the milestone card as the parent of the fan-out, or note it in the body when the milestone has no card.
  • The card body is the ticket: what to build, acceptance checks, verify command, rollback line, and the plan section to read first.

After creating the cards, list them and confirm every one has an assignee and the drawn edges. Cards that fail that read-back are an unfinished publish: report them, do not quietly move on.

If publishing fails partway, report the cards created so far and stop. Do not retry into a half-published graph — duplicates in a dependency graph are worse than a pause.

7. Hand off

State which tickets are on the frontier right now, and which are waiting. From here execute owns the build and the books: the orchestrator alone touches git, statuses, and gates, and owns the plan file beyond this skill's single cut. This skill does not track the work it published.

The card body

## What to build
<the behaviour that becomes true, from the user's side. No layer-by-layer list.>

## Plan section
Read plan section <T<n>> before starting: it holds the exact paths.

## Acceptance checks
- [ ] <check 1>
- [ ] <check 2>

## Verify
<the exact re-runnable command from the plan>

## Rollback
Revert this ticket's commit. `version` writes its sha into this line at
commit time.

No absolute file paths in the card body. The plan holds them, the card points at the plan section. A card that survives a file move is worth more than one that saves a hop.

The rollback sha is version's to write, not this skill's: to-tickets never touches git, so the line ships as an instruction and the commit step fills it (version, Invocation points).

Vocabulary (the whole change)

Word Meaning
ticket a named group of 2–6 plan steps, demoable alone, one context window
blocked by the tickets whose output this ticket needs as input
frontier derived, never stored: tickets whose blockers are done
expand / contract the three-part sequence used only for a wide refactor

At ticket rung the commit unit is one ticket, one build, one commit, which makes rollback a revert and makes cross-session resume a named thing.

What this skill never does

  • Never writes code or tests. Its one write is the ticket cut into the plan file: ticket groups, blocked by: lines, and the DRAFT re-stamp they require.
  • Never publishes without approval, never publishes after a failed teardown, and never publishes from a headless run — it writes a DRAFT under .pipeline/tickets/ and stops.
  • Never writes card status, closes a parent, or touches git.
  • Never puts ticket FILES in .pipeline/plans/ — a stray file there can satisfy the plan-shape check. Ticket groups live inside the plan file, never as a new file in that directory.
  • Never invents scope the plan does not contain. Structural discoveries go back to the plan.

Done when

  • Every plan step sits in exactly one ticket; every ticket has an edge line, a verify command, and a rollback line.
  • The user approved size and edges, and the approval is recorded: dvc_tickets.py --tickets <ids> check exits 0.
  • Cards exist, each with a parent set and an assignee, and the frontier was named.
  • Every card id is written next to its ticket heading in the plan.
  • Nothing outside the plan file, the board and .pipeline/tickets/ was written.

Cognitive traps

  • "More tickets looks thorough" — a ticket nobody can demo is a step.
  • "This depends on that area of code" — edges are about needed output, not proximity.
  • "I'll publish now and fix the graph later" — a broken graph dispatches wrong work at once; the quiz is cheaper than the cleanup.
  • "The skill should also track progress" — the board tracks progress. One hand writes the books.

Guardrails

  • No plan, no tickets. No approval, no publish. No human, no publish.
  • Cyclic edges stop the run.
  • One card per ticket, one assignee per card.
Files (disciplined-vibe-coding)
  • SKILL.md 12.4 KB
    ---
    name: to-tickets
    description: Use at full-spec rung and above when an approved plan needs splitting into tickets with explicit blocked-by edges, published as Kanban cards. Fires on conditions; quiz before publish.
    phase: Plan
    ---
    
    # To tickets — one approved plan, many grabbable tickets
    
    ## Prime directive
    
    A plan is a map. A ticket is one promise a single builder can keep in one
    sitting. Hand out promises, not maps.
    
    ## When this fires
    
    It fires on its conditions, with no asking. There are two gates, because
    drafting is free and publishing dispatches workers (spend):
    
    **May draft when all hold:**
    1. The rung is full-spec or above.
    2. A milestone plan exists and is **approved**.
    3. The work is big enough to need the split: 8 or more plan steps, or 2 or more
       workers, or work that will not finish in this session.
    
    **May publish when all hold:**
    1. The draft exists and the quiz (§5) is approved by the user.
    2. Teardown has passed on the plan that carries the ticket groups.
    3. `scripts/dvc_tickets.py --tickets T1,T2,... check` exits 0. That command
       reads the approval record, bound to the plan digest, **and** the stage log:
       the latest Teardown pass must carry this plan's digest. Log teardown with
       `dvc_stage.py log --stage Teardown --gate G4 --result PASS --plan <plan
       file>`. No record, no publish — and a headless run cannot make one,
       because `approve` refuses without the explicit `--interactive` flag.
    
    Do not fire when: the rung is below full-spec; the plan is already ticketed
    (its ticket groups exist); or the next move would be publishing from a headless
    run — headless runs draft under `.pipeline/tickets/` and stop.
    
    ## What is enforced, and what is guidance
    
    No claim below is quietly demoted: each one either fails a command or is
    stated as judgment.
    
    | Claim | Status | Where |
    |---|---|---|
    | interactive session before publishing | **ENFORCED** — `approve` exits 2 without `--interactive` | §5 |
    | quiz approved before any `kanban_create` | **ENFORCED at the publish step** — `check` exits 1 without a matching record; publishing without running it is an unlogged approval, a pipeline defect | §6 |
    | approval binds the plan it approved | **ENFORCED** — the record holds the plan digest (Status line and card ids excluded) | §6 |
    | teardown passed on this plan | **ENFORCED as a record** — `check` exits 1 unless the latest Teardown PASS/BYPASS in the current loop carries this plan's digest; it proves teardown was logged on this plan, not that the review was good | §6 |
    | every plan step in exactly one ticket | guidance — plan prose has no machine-readable step→ticket map; the cut is checked by re-reading it against Steps | §2 |
    | assignee on every card | guidance — no API refuses an unassigned card, so the publish step lists the cards it created and confirms it | §6 |
    | stop on a partial publish, no retry | guidance — it depends on a tool failing mid-loop, which cannot be pre-checked | §6 |
    | size trigger: 8+ steps, 2+ workers, multi-session | guidance — the 8-step count is done while reading the plan; workers and sessions are judgment | When this fires |
    
    ## Steps, in order
    
    ### 1. Read the plan you were given
    
    Read the whole plan file, its to-spec, and the files-touched list. The plan is
    the only source of truth for scope: if the plan does not say it, it is not a
    ticket.
    
    Refuse and say why if: no plan exists, or the plan is still DRAFT. Tickets cut
    from an unapproved plan multiply an unexamined idea. Teardown gates publishing,
    not drafting: cut into the plan before teardown so the reviewer sees the cut,
    and publish only once teardown has passed.
    
    You may read code to understand the plan. You may not change code. Your one
    write is this skill's cut into the plan file — ticket groups, their `blocked by:`
    lines, and nothing else — because the plan file is the one artifact. The
    orchestrator owns that file. When you edit an approved plan, re-stamp its
    status `DRAFT`; the quiz re-approves it, and right after `approve` you stamp
    `Status: APPROVED`. The Status line and the card ids written in §6 are
    bookkeeping: the plan digest leaves them out, so neither breaks the approval
    or the teardown binding. Any other edit does.
    
    ### 2. Cut the plan into tickets
    
    Each ticket is a **vertical slice**: a narrow path that runs all the way through
    the work and leaves something a person can see working. A ticket that only
    changes a layer is a horizontal slice — that is a step, not a ticket.
    
    Rules for the cut:
    
    - A ticket sweeps 2–6 plan steps. Fewer is a step wearing a costume; more will
      not fit one sitting.
    - A finished ticket is demoable or checkable on its own, with its own verify
      command from the plan.
    - A ticket fits one fresh context window. That is the real size limit.
    - Every plan step lands in exactly one ticket. A step in no ticket is a hole; a
      step in two is a merge waiting to happen.
    - Keep the plan's exact paths in the plan. The ticket carries behavior and its
      verify command; its first instruction is "read plan section T<n>".
    
    Number tickets `T1…Tn` so blockers come first. A reader should be able to go
    top to bottom.
    
    ### 3. Declare the edges
    
    Every ticket gets exactly one line: `blocked by: <ticket ids>` or
    `blocked by: none`.
    
    An edge is real only if the blocker's *output* is needed as input. "It feels
    later" is not an edge; neither is "same area of the code". Over-declaring edges
    serializes work that could run in parallel, which is the exact cost tickets are
    meant to remove.
    
    Two tickets that touch the same file are **not** blocked — they are serialized
    by execute's shared-file rule. Do not express file contention as a dependency.
    
    A cyclic set of edges means the cut is wrong. Re-cut; do not publish.
    
    ### 4. Wide refactor? Sequence it, do not slice it
    
    A wide refactor is one mechanical change whose blast radius covers the codebase,
    so no slice can land green. Do not force it into a vertical ticket. Use three
    ticket kinds, in this order:
    
    - **expand** — add the new form beside the old. Nothing breaks.
    - **migrate** — move call sites over in batches sized by blast radius (per
      package, per directory). One batch, one ticket, each `blocked by: expand`.
      The old form still exists, so each batch can stay green.
    - **contract** — delete the old form. `blocked by:` every migrate ticket.
    
    If even the batches cannot stay green alone, they share an integration branch
    and one final integrate-and-verify ticket that all of them block. Green is
    promised only there. Say that out loud in the quiz so nobody is surprised.
    
    ### 5. Quiz before publishing
    
    Present the ticket set as a numbered list. Per ticket show only:
    
    - **Title**
    - **blocked by** (or `none`)
    - **What it delivers** — the behaviour that becomes true, from the user's side
    - **Its verify command**
    
    Then ask exactly three questions:
    
    1. Is the size right — any ticket too coarse or too fine?
    2. Are the edges right — does each ticket depend only on what truly gates it?
    3. Merge or split anything?
    
    Iterate until approved. On the third pass with no agreement, stop and report
    what is unresolved: size questions are usually a scope question in disguise.
    
    When the user approves, record it — this is the only interactivity signal in
    the pack, never inferred:
    
    ```sh
    python scripts/dvc_tickets.py --interactive --by <name> --tickets T1,T2 approve
    ```
    
    No flag, no record, no publish. Editing the plan body after the record breaks
    the binding, so re-run teardown and re-approve after any body edit. Stamping
    `Status: APPROVED` after the record does not break it.
    
    ### 6. Publish to the board
    
    Publish only after the quiz is approved AND teardown has passed. Run the gate
    first — it checks both: the approval record, and the latest Teardown pass
    carrying this plan's digest. Stop on a non-zero exit; that command is the only
    thing that tells you both were recorded:
    
    ```sh
    python scripts/dvc_tickets.py --tickets T1,T2 check
    ```
    
    Then, only as cards:
    
    - One card per ticket. Never one card holding a list.
    - `parents=[...]` carries the blocking edges. The board already promotes a child
      to ready only when every parent is done — that is the frontier, and nothing
      needs to store it.
    - Publish in dependency order so every parent id exists before it is referenced.
    - Assign the right profile. A card without an assignee is never dispatched, so an
      unassigned card is an unfinished publish.
    - Record the returned card id next to its ticket heading in the plan:
      `### T2 <title> — card: t_ab12`. The plan is the one artifact; the id beside
      the ticket is what lets a later session match board to plan without guessing
      (bookkeeping: the digest excludes it, so the plan stays APPROVED).
    - Link the milestone card as the parent of the fan-out, or note it in the body
      when the milestone has no card.
    - The card body is the ticket: what to build, acceptance checks, verify command,
      rollback line, and the plan section to read first.
    
    After creating the cards, list them and confirm every one has an assignee and
    the drawn edges. Cards that fail that read-back are an unfinished publish:
    report them, do not quietly move on.
    
    If publishing fails partway, report the cards created so far and stop. Do not
    retry into a half-published graph — duplicates in a dependency graph are worse
    than a pause.
    
    ### 7. Hand off
    
    State which tickets are on the frontier right now, and which are waiting. From
    here `execute` owns the build and the books: the orchestrator alone touches git,
    statuses, and gates, and owns the plan file beyond this skill's single cut. This
    skill does not track the work it published.
    
    ## The card body
    
    ```
    ## What to build
    <the behaviour that becomes true, from the user's side. No layer-by-layer list.>
    
    ## Plan section
    Read plan section <T<n>> before starting: it holds the exact paths.
    
    ## Acceptance checks
    - [ ] <check 1>
    - [ ] <check 2>
    
    ## Verify
    <the exact re-runnable command from the plan>
    
    ## Rollback
    Revert this ticket's commit. `version` writes its sha into this line at
    commit time.
    ```
    
    No absolute file paths in the card body. The plan holds them, the card points at
    the plan section. A card that survives a file move is worth more than one that
    saves a hop.
    
    The rollback sha is `version`'s to write, not this skill's: to-tickets never
    touches git, so the line ships as an instruction and the commit step fills it
    (`version`, Invocation points).
    
    ## Vocabulary (the whole change)
    
    | Word | Meaning |
    |---|---|
    | ticket | a named group of 2–6 plan steps, demoable alone, one context window |
    | blocked by | the tickets whose output this ticket needs as input |
    | frontier | derived, never stored: tickets whose blockers are done |
    | expand / contract | the three-part sequence used only for a wide refactor |
    
    At ticket rung the commit unit is **one ticket, one build, one commit**, which
    makes rollback a revert and makes cross-session resume a named thing.
    
    ## What this skill never does
    
    - Never writes code or tests. Its one write is the ticket cut into the plan
      file: ticket groups, `blocked by:` lines, and the DRAFT re-stamp they require.
    - Never publishes without approval, never publishes after a failed teardown, and
      never publishes from a headless run — it writes a DRAFT under
      `.pipeline/tickets/` and stops.
    - Never writes card status, closes a parent, or touches git.
    - Never puts ticket FILES in `.pipeline/plans/` — a stray file there can satisfy
      the plan-shape check. Ticket groups live inside the plan file, never as a new
      file in that directory.
    - Never invents scope the plan does not contain. Structural discoveries go back to the plan.
    
    ## Done when
    
    - Every plan step sits in exactly one ticket; every ticket has an edge line, a
      verify command, and a rollback line.
    - The user approved size and edges, and the approval is recorded:
      `dvc_tickets.py --tickets <ids> check` exits 0.
    - Cards exist, each with a parent set and an assignee, and the frontier was named.
    - Every card id is written next to its ticket heading in the plan.
    - Nothing outside the plan file, the board and `.pipeline/tickets/` was written.
    
    ## Cognitive traps
    
    - "More tickets looks thorough" — a ticket nobody can demo is a step.
    - "This depends on that area of code" — edges are about needed output, not
      proximity.
    - "I'll publish now and fix the graph later" — a broken graph dispatches wrong
      work at once; the quiz is cheaper than the cleanup.
    - "The skill should also track progress" — the board tracks progress. One hand
      writes the books.
    
    ## Guardrails
    
    - No plan, no tickets. No approval, no publish. No human, no publish.
    - Cyclic edges stop the run.
    - One card per ticket, one assignee per card.
    

Comments

Sign in to join the conversation.

No comments yet. Start the conversation.

Reviews (0)

No reviews yet.