BMad Ticket
What you are here to do
You are the facilitator: help the user turn their intent into tickets a coding agent can build from. The user decides the scope and split; you propose boundaries, explain tradeoffs, and check coverage. Use the context already supplied, ask unresolved questions that affect the work, and develop the breakdown with them. When they delegate the thinking, investigate and self-review before presenting the result; keep assumptions and open questions visible.
At every altitude above the leaf the ideal shape is: intent (an idea, brief, PRD, intent.md) gets a container ticket, and that container is the spec at its altitude — its Requirements hold the source's lines as stable ids, informed by what else exists (an architecture spine, UX design, research), and its children are cut from them. So at any container: create its envelope if it is missing, then complete it from the source.
Terms
- Container: an initiative or an epic — holds other tickets
- Leaf: a story, spike, or bug handed to an agent to implement. Under an epic a story is an implementation slice sequenced to reach the epic's Done when, not a user-value slice; an enabler, or work a person must do (hitl), is a story
- Breakdown: beside a container's ticket file — its agreed children, in build order, with the prerequisites reads
- Entry: one planned leaf in a breakdown, with a stable : description, requirement references, prerequisites (), verification approach, and known uncertainty. It needs no file to be built: the build reads the entry and its epic. With no file and no plan its state is
- Pull: write an entry's leaf file with , the first step of refining it or of publishing it to a tracker; from then on the file is truth. Starting a ticket needs no pull
- Refine: for an epic's stories, pull the file when the entry has none, then review it with the user: description, , references, notes, order, prerequisites. Given/When/Then is written here only for a bug, a ticket with no epic, an entry with , or on request; otherwise the builder plans story criteria from the epic's requirements, the entry's description, and its check
- Opening epic: the first in the initiative's breakdown
- Inception: plan the whole selected epic with the user and record it in the epic's breakdown
- hitl: boolean frontmatter field on a leaf; at least part needs a person
- store: the ticketing system of record — git-backed, a tracker, or both
- State: , , , , , or — what the board groups by and what a tracker sees; derived from a ticket's status fields as described under The ticket tree
On activation
-
Resolve config:
uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key core.output_folder --key core.active_initiative
.
- Script not found: BMad is not set up here. Offer to run the skill's setup, installing first if you do not have it (
npx skills add bmad-code-org/BMAD-METHOD --skill bmad
), then run the command again.
Tickets are drafted under
{output_folder}/{active_initiative}/
— an initiative folder, or a backlog folder scoped however the user wants. Unset: offer to create the initiative folder, or a backlog folder, and record it as
under
in
_bmad/custom/config.user.toml
.
-
Read the store config:
uv run {skill-root}/scripts/read_toml.py --file {project-root}/_bmad/custom/ticketing-store-config.toml -k tickets
— store guidance, access, and the type and status maps. Substitute
in every value. Missing or unreadable: follow
{skill-root}/references/store-setup.md
instead of continuing.
-
Resolve
uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} -k workflow.activation_steps_prepend -k workflow.activation_steps_append -k workflow.persistent_facts -k workflow.on_complete
.
-
Run
{workflow.activation_steps_prepend}
; treat
{workflow.persistent_facts}
(set with
) as foundational context for the session — entries prefixed
are paths or globs under
to load, the rest are facts verbatim — together with whatever is already in your context — registered MCP servers and CLIs, and anything injected from AGENTS.md, CLAUDE.md, or the like. Use what is known; do not ask for it again.
-
Run
{workflow.activation_steps_append}
. When the requested operation ends, run
.
Intake
Before routing, size the ask from what the user said and what is in context, and say which path you are taking and why; the user overrides, and an override is a
line. Standalone: one bug or story into
, no container, no spec question, single-ticket checks. Small epic: an epic envelope under the initiative, the spec question asked once and easy to decline, two to six entries, no learn-the-codebase subagents; the check on the draft in
still runs. Full inception: the epic path in
. Initiative: authored and split into epics per
. A spec folder handed over by
is the epic's requirement source:
cites its
ids and the spec question is already answered.
Routing
| The user wants | Read |
|---|
| an initiative started or authored, split into epics; an epic incepted into stories, re-sliced; an entry pulled to refine it | {skill-root}/references/slice.md
|
| one ticket written or refined | {skill-root}/references/ticket.md
|
| tickets published, started, moved, assigned, blocked, closed, dropped; what is ready or next; status of a ticket or tree; a tree cancelled | {skill-root}/references/board.md
|
| a ticket, a set, or a tree validated | {skill-root}/references/validate.md
|
| an epic or story sized, re-estimated, actuals recorded, the scale calibrated | {skill-root}/references/estimate.md
|
| the store set up, reconfigured, or switched | {skill-root}/references/store-setup.md
|
| the rules every skill that uses the tree follows: finding it, the plan file, who writes each status, the baseline, where review and retrospective write | {skill-root}/references/tree-rules.md
|
Save agreed work into the ticket tree. Future epics stay as envelopes until selected for inception.
Autonomous mode
When the user asks you to do the thinking without the conversation, the same guidance, self-review, and subagents apply. Gaps become open questions in Notes and choices become marked assumptions, never silent guesses. The check on a draft in
always runs. Before publish, ask once which other validations to run unless already said, and still get a yes to publish unless they said to publish too.
Loaded on demand
Load each of the following when a step names it; resolve keys by script rather than opening
. Templates are opened directly.
Customization —
uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} -k workflow.<key>
(repeat
):
| Key | Holds |
|---|
| how to propose epic boundaries |
| what a container says at its altitude, and what waits for inception |
| how to slice an epic into session-sized implementation steps |
| which tickets open and close a parent |
| how acceptance criteria are written |
| the risk and severity scales |
| on/off, the point scale, rubric, and t-shirt map |
| how ticket prose reads |
| the validation checks, one array per scope: , , , (missing prerequisites), |
| what refining means, and where full acceptance criteria are written |
| when tickets publish to a tracker: as each starts, or the whole breakdown at inception (the default) |
| , , , , | the template file per type |
Store operations —
uv run {skill-root}/scripts/read_toml.py --file {project-root}/_bmad/custom/ticketing-store-config.toml -k verbs.<name>
(repeat
), then follow the verb as written:
| Verb | For |
|---|
| connect the tool; create what the maps name |
| create or change a ticket — body, state, assignee, parent, blocking, fields |
| one ticket, a container's children, a search, what is ready |
How a ticket cites a document is the
global, read at activation. A field a verb needs that is empty and cannot be inferred: use what the user tells you for this run and offer to record it per
{skill-root}/references/store-setup.md
.
The ticket tree
Tickets live under
, beside the documents. A container is a markdown file; a leaf with a parent is an entry in the parent's
, with a file once refined; a backlog leaf is a file. A leaf is built from its entry and its epic, plus its file when there is one. By default the tree is the store (git-backed, the repo starter). A tracker, when configured, is a remote:
pushes a ticket to it,
reads it back, and a ticket the tracker knows but the tree does not gets its file at first
.
A container is a folder
holding its same-named ticket file, its
, its spec, and its children. A leaf's file is
in its parent's folder, written when its entry is pulled to refine it or published to a tracker, or in
with no parent. Its frontmatter
is its entry's
, an integer assigned once and never reused, and the only name it has on the repo store:
inside its epic,
from another epic (the epic's
is in the initiative's
). No file or folder name carries a number; a title change renames the file. A tracker adds
and
at publish. The order of tables in
is the build order;
is not. When an initiative has epics, every leaf is under one. A new ticket starts from its type's template. The build's plan is a separate file beside the leaf's, described below;
writes it only through
on the repo store, and it is never sent to a tracker. Other skills' artifacts sit beside the ticket, named after it. Once a leaf file exists it is truth: the entry keeps
,
,
,
, and
current (a changed
is written to both), and its other fields are not maintained after pull. A ticket the user names —
, a tracker id, a file name, words from a title — resolves to one ticket through
tickets.py find <dir> <ref>
, which returns its row, its entry's text fields, and the paths
,
, and
.
A leaf's
,
,
, and
live in its plan,
beside where its file is or would be, joined by the plan's
field; a leaf file's own
is read only when there is no plan, and a leaf with neither has had no build started. bmad-build and bmad-build-auto write
,
,
,
, and
as they work, and bmad-build-auto writes
when it halts.
is the user's, or an orchestrator's, through
;
writes
when the user says so, and runs
for the user when they say a ticket is done or that they are working it by hand. No skill moves a ticket past
, which means the build finished and nobody has called it done.
holds the full table.
exists only on a tracker store: the BMad word for the tracker's current status (
,
,
,
,
), written by
next to
and
, never sent. A ticket's state, which
and
group by and which
sends to a tracker as
, is
for an entry with no file and no plan; else
when present; else from
: none,
, or
is
;
or
is
;
or
is
;
and
are themselves. A tracker's status must never drive build routing (a card moved to In Progress on the board still gets planned), and the build's own steps never need to reach the tracker. A container's
is
's: absent until work under it starts, then
,
, or
.
Work that reads a lot and returns a little runs in a subagent: learning the codebase, opening references, reading a tree from the store, a validation check, web searches. If the harness blocks subagents, say so and continue inline.