/agentheim:whats-nextfrom agentheim
Reads the project vision, task boards, protocol, and open questions to recommend the single next sensible step. Read-only advisory skill for Agentheim projects.
Ships in agentheim. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The whats-next skill answers one question: given everything that's been modeled, decided, and done so far, what is the single most sensible thing to do next — and why?
It is the companion to the dashboard's "What's next" button. The builder presses it when a work batch just finished, when the board looks empty, or when they simply can't decide where to put their attention. The answer should read like a sharp colleague who knows the project glancing at the board and telling you, in a sentence or two, where to point yourself next — not a status report, not a backlog dump.
This skill is read-only over lifecycle. It reads .agentheim/ and recommends. It never moves a task, never promotes, never commits, never edits the protocol. The recommendation is the entire output; acting on it is a separate, human-triggered step (work, modeling, brainstorm). Keeping it advisory is what makes it safe to press at any moment. It performs one write — and only one — the advisory write of its recommendation to .agentheim/state/whats-next.md (Step 4 below): an opinion about the state, not a change to it, distinct from a lifecycle write and explicitly carved out by ADR-0027. It performs no git action of any kind.
You are not running a checklist — you are reading a situation. The artifacts below tell you where the project is; your job is to figure out where it most wants to go next and say so plainly. The priority ladder further down is the usual shape of that reasoning, but it is a guide to judgment, not a lookup table. When the situation doesn't fit the ladder, trust the situation.
Two failure modes to avoid above all:
If .agentheim/contexts/ exists the tree has not been migrated; run any writing skill first (ADR-0078 §4) — whats-next never runs migrate itself (it is read-only).
Read these, cheapest and most informative first. Skip anything that doesn't exist and note its absence rather than guessing.
.agentheim/knowledge/vision.md — the whole thing, but pay special attention to:
lib/vacuum-guard.mjs's extractOpenQuestions — the same helper work's vacuum guard (Phase 2 step 8) and modeling's Opening flow (step 2) already route through, ADR-0064 — rather than reading the raw markdown yourself: it filters out already-resolved (~~struck-through~~ *Resolved YYYY-MM-DD.*) items and surfaces each remaining item's age from its (open since YYYY-MM-DD) annotation, so you never recommend a question the builder already answered. Resolve and run it via the shared vacuum-guard invocation in references/lib-bootstrap.md §3 — the exact node -e one-liner work and modeling use; do not restate the bootstrap here. It prints the raw open-questions array, a --- separator, then the filtered, aged open-question line (formatVacuumGuardLine) — feed that line into rung 5 of Step 2 and the empty-board case below, never a raw re-scan of the section.vision.md is missing, that is the answer: recommend brainstorm first..agentheim/knowledge/context-map.md (if it exists) — how the bounded contexts relate; useful for spotting a context that's been named but never built into..agentheim/knowledge/index.md (if it exists) — top-level catalog: current BCs, recent ADRs, global state.INDEX.md (board/<bc>/INDEX.md) — the per-BC task counts and lists by status. This is your fastest read of the board: how many tasks sit in backlog / todo / doing / done per context, and their titles. Prefer these lists over walking the directories.knowledge/contexts/<bc>/README.md) — a cheap, judgment-free check (wc -l or your file-read tool's reported line count; no tokenizer, no content read needed). A README at or over the ~600-line consolidation threshold (ADR-0041) has grown past the point where it can reliably be read in one pass — flag it as a candidate modeling CONSOLIDATE recommendation (see Step 3 below). This is a background-maintenance signal, not new work the project asked for, so it rarely outranks anything live in doing/ or a primed todo/ — but note it so it can surface when nothing more urgent is happening, or as a brief aside..agentheim/board/protocol.md — the first ~80–120 lines only (newest entries are on top). This tells you the recent thread: what just shipped, what was just dismissed, whether a work session ended cleanly or was interrupted, what the builder has been focused on. The live file is capped (ADR-0039) — older months roll out verbatim to .agentheim/board/protocol/YYYY-MM.md — so this read-window stays recent-activity-only; there is no need to consult the archive here.doing/, todo/, and backlog/ under board/ — read these (not just the INDEX line) when you need their frontmatter to judge readiness:
depends_on — a todo task whose dependencies aren't all in done/ is not actually ready; don't recommend running it.blocks — finishing this one may unblock several others (a high-leverage pick).tags: [captured] and acceptance criteria that say "To be defined during refinement" — this task is a raw capture and needs a modeling refine pass before it can be worked.created date — to spot the stalest item, which is often the one most worth surfacing.You don't need to read every done/ file — the counts and recent protocol are enough to understand momentum.
This is the usual order of priority. Read it as "what's the most valuable lever right now", and let the actual situation override it when it clearly should.
Work was interrupted — any BC's doing/ under board/ has a task in it. Half-done work rots and blocks the board; finishing it almost always beats starting something new. Recommend resuming it (work picks up doing/ first). If two or more sit in doing/, note that a parallel session was interrupted.
The pipeline is primed — todo/ has tasks whose dependencies are all satisfied. The thinking is already done; the highest-value move is to execute. Recommend running work. If several are ready, mention the highest-leverage one (most blocks, or the one continuing the current thread) but the move is the same: run work.
type: spike on the same thread — never name the spike as the highest-leverage pick when a same-thread remediation is also ready; name the remediation. Same thread means any of: the two tasks share a tags entry naming the defect family, one is named in the other's depends_on/blocks, or one is named in the other's prior_art. This mirrors work's own dispatch-ordering preference exactly (Phase 3 step 4) — it's a tiebreak among already-ready tasks, never a reason to withhold the spike from being run at all if the builder asks for it directly.Refined work is waiting one step back — todo/ is empty but backlog/ holds an item that's already concrete (clear acceptance criteria, dependencies satisfied, not tagged [captured]). Recommend promoting it (modeling → promote) and working it. Favor one that continues the thread visible in the recent protocol — momentum is real and context is already loaded.
The backlog is raw — backlog/ holds captures that aren't worked-ready ([captured], "to be defined during refinement", thin acceptance criteria). Recommend a modeling refine pass on the most valuable / stalest one, naming it.
The board is empty but the vision isn't done — nothing in doing/todo/backlog worth acting on. Two sub-cases, in order:
extractOpenQuestions read returned at least one item (this is ADR-0064's vacuum-guard trigger, isVacuum: ready count zero AND open questions exist). Recommend exactly that, and nothing else: surface the open item(s) with their age via formatVacuumGuardLine (e.g. "Brainstorm on existing code (next iteration). (open 46 days)"), framed as the single highest-leverage thing the builder can do right now — the same framing work's and modeling's vacuum guard already use for this exact situation. Never invent filler work here — no self-generated chore, no "maintain the test suite" busywork, no manufactured task to fill the silence. An empty board plus an open decision is the answer; naming that decision is more valuable than anything this recommendation could invent on its own.modeling session to capture the missing piece, quoting the unmet success criterion.The vision itself is thin or missing — recommend brainstorm to establish (or deepen) the vision before anything else.
A task in doing/ outranks a primed todo/, which outranks backlog work, which outranks new modeling — because finishing beats starting, and executing decided work beats deciding more. But a tiny stale chore in doing/ shouldn't outrank an urgent, just-surfaced bug in todo/; if the situation argues against the ladder, follow the situation and say why.
A README over the consolidation threshold (Step 1.5) sits outside this ladder — it's upkeep, not new value, so it normally rides along as a brief second mention rather than displacing the top recommendation. It's worth promoting to the primary recommendation only when the ladder itself is quiet (nothing in doing/, nothing primed in todo/) — i.e. around rung 4–6 — since there's genuinely nothing more valuable to point at.
Write the recommendation the way you'd say it out loud to the builder. Short, concrete, reasoned. Structure it loosely like this — adapt freely, these are not rigid headings:
work.", or "Say refine agentic-workflow-063 and I'll deepen it.", or "Let's brainstorm the existing-code path." Make it a thing the builder can do in their next breath.Keep the whole thing tight — a few short paragraphs, plain language. No tables, no status dumps, no exhaustive backlog listings, no ticket-by-ticket walkthrough. If the builder wants the full board they have the dashboard; what they want from you is a clear pointer and the reasoning behind it.
When a BC's README is over the consolidation threshold (flagged in Step 1.5), fold in a line using this exact phrasing so it stays a recognizable, greppable signal: README <bc> is over the consolidation threshold — consolidate. Say it as a plain aside when the main recommendation outranks it ("...and separately, README <bc> is over the consolidation threshold — consolidate whenever you get a spare moment"), or lead with it as the recommendation itself when the board is otherwise quiet. Never invent this line for a README you haven't actually measured.
Talk like a colleague who knows the codebase, not a report generator. It's fine to have a point of view ("I'd finish aw-060 first — it's unblocked and you're already in the workflow-guide headspace"). Explain the why in terms the builder cares about (momentum, leverage, unblocking, closing a known gap), not in terms of the mechanics of the ladder. The builder should finish reading and immediately know what to do and feel good about why.
Example — primed pipeline (the easy case):
You've got four tasks ready in
todo/and nothing half-finished, so the next move is simply to build. I'd runwork—design-system-012(the token refactor) is the one to watch since three other tasks depend on it, and finishing it unblocks the most.Next: run
work.
Example — a genuine fork (two options):
Your board is clear: nothing in flight, todo's empty, and the backlog has three items. There are two sensible directions here.
Continue the thread. You just shipped the Workflow guide page, and
agentic-workflow-060(the hand-authored diagrams) is now unblocked and sitting in the backlog — it finishes what you started while the context is still warm. Promote and work it.Address the pain you flagged.
agentic-workflow-063("optimize the committing pattern") is a raw capture about commits being too noisy and files getting left out — a real friction in the daily loop, but it's unrefined, so it needs a modeling pass before it can be worked.I'd lean toward the diagrams: it's already unblocked, it's a quick win, and momentum matters. Save the committing-pattern work for when you've got the appetite to think it through properly.
Next: say
promote agentic-workflow-060to queue the diagrams, orrefine agentic-workflow-063to start unpacking the commit problem.
Example — empty board, open vision question (vacuum guard):
Everything's shipped — board's clear, no backlog, and nothing left ready in
todo/. Butvision.mdstill carries one open question you haven't touched: Brainstorm on existing code (next iteration). (open 46 days) — reverse-engineering a vision from a repo that already has code, before continuing the Socratic dialogue. Resolving that is the single highest-leverage thing you can do right now — more valuable than anything I'd invent from an empty board.Next: let's
brainstormthat existing-code path and turn it into a modeled backlog.
After you've printed the prose answer, persist it once so it survives the terminal it ran in and the dashboard can surface it. This is the skill's single advisory write (ADR-0027) — an opinion about the state, not a change to it. It is not a lifecycle write: you still move no task, promote nothing, edit no INDEX.md or protocol.md, reconcile no ADR backlink, and run no git command.
Write the recommendation to exactly one file — .agentheim/state/whats-next.md — and nowhere else. Create the .agentheim/state/ directory if it does not yet exist (it is a sibling of knowledge/ and contexts/, the home for advisory machine-written signals, and is git-ignored).
The file is single-latest: overwrite it in full each run, never append. It is not a log — history lives in git, not in a growing file.
Its shape is the frozen interface the dashboard reads (ADR-0027), so keep it exactly:
generated key set to the current ISO-8601 timestamp (e.g. generated: 2026-06-17T21:43:00Z). This is a descriptive staleness cue for the dashboard's rendering only; nothing keys behavior off it.Shape template:
---
generated: 2026-06-17T21:43:00Z
---
## Where things stand
<one-line orientation>
## Recommended move
<the recommendation + the why>
## Next
<the one concrete action>
Always write a coherent artifact, even in the empty cases. When you have little to recommend — vision.md is missing so the answer is brainstorm, or the board is empty — still write all three sections reflecting that answer (where things stand: "no vision yet" / "board is clear"; recommended move + next: brainstorm / capture the missing piece). The file is always valid markdown with the generated frontmatter and the three sections, so the dashboard never has to special-case an empty or malformed recommendation.
Write the file and stop. Do not commit it, do not stage it, do not touch any other file.
What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/brainstormUse whenever the user wants to start a new project, create a vision, do a Socratic modeling or discovery session, explore a problem space from scratch, or set up an initial context map and bounded contexts. Triggers on phrases like "let's brainstorm", "start a new project", "create a vision", "I want to build X", "model this out from scratch", "help me think through", "what should the shape of this be". Produces .agentheim/knowledge/vision.md (and context-map.md if the domain is complex enough to warrant bounded contexts), and closes with an architecture foundation pass that unconditionally creates an `infrastructure/` BC (the standing home for globally-true tech concerns), emits decision tasks (globally-true → infrastructure BC, BC-local → originating BC), a walking-skeleton spike, and (when the vision implies frontend) a styleguide task. Deliberately produces no code — every output is markdown the user can review before `work` runs. Supports six switchable conversational modes (Interrogator [default], Suggestor, Challenger, Storyteller, Facilitator, Synthesizer) — see references/modes.md./inquireAnswer a question about the codebase of an Agentheim-managed project — how a feature works, where something lives, what was decided and why, or whether something is built yet — by reading the project's own structure (the index, the bounded-context READMEs, the ADRs, the task boards) and verifying against the actual source. Read-only. Invoke it directly when you want a thorough, code-grounded answer that separates what's decided from what's actually implemented.npx claudepluginhub heimeshoff/agentheim --plugin agentheimOther plugins' skills for the same job