/next
/next kanban board
Show the next work-session task from a repo's GitHub kanban board. Use when starting a work session or asking what to work on next.
- invocation model + user
- prereqs gh, authenticated, origin on GitHub (otherwise…
- tested used daily
- suggested model · effort haiku · low
Install
Install just this, from a clone of the repo. Anything it needs comes with it.
./scripts/install-skills.sh --skill next # bash, Git Bash, macOS, Linux
.\scripts\install-skills.ps1 -Skill next # Windows PowerShell
Works on its own.
What it does
Shows the next 1–3 tasks to work on, pulled from the repo's GitHub kanban board, with a size and a suggested model for each.
- Read-only (Edit/Write disallowed).
When to use
- Starting a work session: "what should I work on next?"
- End of
update-progressandverifierruns, to surface the following task.
How to invoke
/next, or just ask what's next. Claude can also run it itself.
How it works
- Find the board (the same lookup the other kanban skills use):
gh project list --owner <owner>, filtered to the title<repo> Boardor boards linking this repo's issues.- One match → use it; several → asks you.
- None →
status:todo/status:in-progress/status:in-review/status:donelabels. Whichever skill applies one first creates it (gh label create status:<name> --color <hex> --force); each label has a fixed color, so repeat calls change nothing. - None → a roadmap doc (
ROADMAP.md,docs/roadmap.md) whose execution order links issues. - Nothing → tells you to run
/kanban-setup.
- Failing CI comes first: workflow names come from
gh workflow list --json name -q '.[].name'.- It checks the most recent completed run on the default branch, which counts as red only if its conclusion is
failure. - An old, since-fixed failure doesn't count.
cancelled/timed_outaren't treated as red.- Checked per workflow when there are several.
- It checks the most recent completed run on the default branch, which counts as red only if its conclusion is
- Candidates:
- In Review items first, tagged "awaiting verification" (Projects: the In Review column; labels:
status:in-review). - Then Projects Todo/Ready items (it double-checks with
gh issue listifgh project item-list, which can lag, returns empty),status:todoissues, or open issues in roadmap order. - Issues labelled
wayfinder:*are skipped (they belong to/wayfinder). - Within each group (In Review, then Todo), sorted by
priority:*label (p0beforep1,highbeforelow), else roadmap order, else oldest first. - A repo's
CLAUDE.md/AGENTS.mdrules override all of this.
- In Review items first, tagged "awaiting verification" (Projects: the In Review column; labels:
- Present: top 1–3 with title, number, size (
size:*label or "unestimated"), suggested model (a fast one for well-specified work, a strong one for ambiguous orneeds-designwork).- "go" picks the top one.
- Picking doesn't claim the card;
pairormeta-orchestratormoves it to In Progress when it creates the branch, so a Todo card may have been picked but never started.
Flow
Card status flow: todo → in-progress → in-review → done.
- todo: set explicitly by
gh project item-editwhen an issue is added —item-addalone leaves Status empty. - in-progress: set by
pairormeta-orchestratorwhen they create the branch (their guarded agents can only read withgh). - in-review: set by
session-handoff. - done: set by
update-progress, once verified and merged; unmerged stays in-review. - Label-mode
status:*labels are created on first use (gh label create --color <hex> --force, colors innext/BOARD.md), not assumed to exist.
Design principles
- Read-only. Edit and Write are disallowed; it only looks. Picking a task doesn't claim the card: whoever creates the branch moves it.
- A red default branch comes first. A failing latest run on the default branch outranks every card.
- One board lookup for every skill. How to find the board and move a card lives in
BOARD.md, which the other kanban skills and agents point at.
Shared context for these principles: Matt Pocock's video.
Use cases
- Opening a work session and choosing what to do.
- After
update-progressor averifierrun, to surface the following task. - Inside the
planneragent, as the first step of briefing an orchestrated run. - A repo with no Projects board: it falls back to
status:*labels, then a roadmap doc.
Tips
- Say "go" to take the top suggestion.
- A Todo card may have been picked before but never started; only a created branch moves it to In Progress.
- Add
size:*and priority labels to issues if you want sizes and ordering rather than "unestimated" and oldest first. - Your repo's
CLAUDE.mdorAGENTS.mdcan override the ordering rules. - "Board is empty" is double-checked against
gh issue list, sincegh project item-listcan lag.
Example
The board myrepo Board is found by title. The latest completed CI run on main passed, so nothing jumps the queue. Two Todo items come back, ordered by priority label:
1. #31 Add CSV export (size:M, fast model: narrow, well-specified)
2. #28 Rework auth flow (unestimated, strong model: needs-design)
Say "go" for #31, or pick one.
Had the latest main run failed, the failing workflow would be listed first as priority #1. You say "go"; the card stays in Todo until a branch is created for #31.
Related
kanban-setupcreates the board it reads.- Called by
update-progress; preloaded by theplannerandverifieragents. - Board lookup reused by
session-handoff,update-progress,kanban-setup.
Prereqs
gh, authenticated,originon GitHub (otherwise it stops and says so).- Projects v2 boards need the
projectOAuth scope: rungh auth refresh -s project -s read:projectonce (seekanban/README.md).
Sample workflows
- Close one session, start the next
session-handoff → you → update-progress → next → you
Install just this one:./scripts/install-skills.sh --workflow close-the-loopor.\scripts\install-skills.ps1 -Workflow close-the-loop - Bootstrap a board from the docs
you → kanban-setup → you → divide → you → next → find-me-a-skill → you
Install just this one:./scripts/install-skills.sh --workflow new-boardor.\scripts\install-skills.ps1 -Workflow new-board
Use cases & tips from the community