!flow next 2>&1 || true
A ticket is attached, an @ mention of its ticket.md in /flow:start @.flow/tickets/47/ticket.md → route it by ## When a ticket is attached. Never recommend from the board printed beside it.
A refusal, and no ticket → say why and stop.
The board says no tickets yet → say so, and point to /flow:groundwork for the first piece of work.
The board is above: recommend one ticket and say what decides it: work already in flight beats work cut out of it, and both beat anything new. Then wait. The user picks.
When a ticket is attached
Read the attached ticket and its header before opening a file: ## Questions and ## Tasks say where the work stopped and what is still open. An older ticket says it in ## State.
branch: in the frontmatter names another branch than the one checked out → tell the user which branch the work is on before routing, and wait.
Pick the skill, say in one line what decided it, then invoke it here with no argument. The ticket is already attached.
Take the first line that matches:
- An open
## Questionsline (the header'squestions:row) →/flow:groundwork - An open
## Tasksline →/flow:execute - A
buglabel, or a failure with no known cause →/flow:debug - Neither list written → read the body: a decision still to make →
/flow:groundwork; the change already clear →/flow:execute
status: done or dropped → say the ticket is closed, and stop. Reopening is the user's call.
Route, and stop. Whether the ticket splits, and whether it is worth building, are /flow:groundwork's to answer.


