From a plan doc to an epic with tickets
A plan doc becomes an epic and its stories in one step, without AI: the doc is the epic, each H2 is a story, the - [ ] lines are the acceptance criteria, and every story points at its own section.
Before writing, the plan gate checks every ticket's bundle.
Create a store in the
.tickets/subfolder and pin it to the folder:--pinwrites.aitodo.yaml, so everytktcommand run here uses this store.$ tkt init shop --workspace-dir .tickets --pin Workspace 'shop' initialized
Create a group with the
PAYprefix. Without the group's repo anchor (--repo,--branch,--base-ref) no ticket can start.$ tkt group new Payments --kind project --prefix PAY --repo https://example.com/shop.git --branch main --base-ref main --description 'Card payments and refunds' Created group payments
Write the plan doc and store it. The title is the epic, the two H2s are two stories.
# Refunds Customers get money back for a returned order. ## Partial refund Refund a part of an order's amount; the rest stays charged. - [ ] The refund is at most the charged amount - [ ] The order shows the refunded part ## Refund export Export the day's refunds as CSV for accounting. - [ ] One CSV row per refund
$ tkt doc new refunds --file refunds.md --description 'How refunds work' Doc saved doc://refunds
Look at the plan without writing it:
--outonly writes an import file. The gate passes all three tickets.$ tkt plan from-docs refunds -g payments --no-llm --out plan.json Gate (report): 0 of 3 fail Wrote the plan to plan.json
Write it to the store.
--yesskips the confirmation prompt.$ tkt plan from-docs refunds -g payments --no-llm --yes Created 3, updated 0 ticket(s)
The epic and the two stories in the tree, with their counts of acceptance criteria.
$ tkt tree Partial refund 0/2 AC
Each story points at its own section; in the bundle the agent gets that section.
$ tkt ticket ref list PAY-002 doc://refunds Partial refund
The context guard finds only info hints, so the exit code is 1: the story can start.
$ tkt lint PAY-002 NO_VERIFICATION_STEPS exit code: 1
Details1 items
When the doc's sections describe the work in prose, there are no acceptance criteria without AI. Then your coding agent splits the doc: AI decomposition. A re-run writes a diff: a new section becomes a new ticket, a changed one an update (Tickets in bulk).