Playbook: Next (where are we, what now?)
This page is written for the agent. For a plain explanation, see the manual: The cycle on one page.
Command: /nodfirst-next (in Codex: $nodfirst-next). Without commands, tell your agent: follow nodfirst/playbooks/next.md.
Version: 0.4 (used in one trial: state report and drift warning, which found a hand-made commit and the test it broke; light-track states not yet proven)
Purpose: read the project files and tell the human, in a few lines, where the project stands and what to do next. Safe to run at any time.
Prompt: /nodfirst-next (or mention nodfirst/playbooks/next.md), or simply ask “where are we?”.
Output: a short answer in the chat. No file changes.
Context to read (do not ask the human to attach it)
AGENTS.md, project/profile.md, project/roadmap.md if it exists, and for every folder in specs/: the header (status, approval) of spec.md, design.md, plan.md, tasks.md, analysis.md, verification.md, and the task checkboxes in tasks.md. With Git: the commit list since the last feature NNN closed or fix NNN done commit.
Instructions for the agent
Follow the working profile’s language (constitution, Section 2). Read only; change nothing.
- Set-up. If
project/profile.mdis still the empty skeleton: the next step is/nodfirst-init(new project) or/nodfirst-adopt(existing code); say which one fits. If it is filled in but notApproved: the human reviews and approves the profile. In both cases, answer (step 5) and stop. - Find the active feature (profile, Section 0). If none is set, list the features in
specs/with their state, and the first idea inproject/roadmap.md. - Work out the state of the active feature from the files, in this order, and stop at the first gap:
- light track (
Track: Lightin the spec): specDraft→ review and approval; approved but not implemented →/nodfirst-fixin a new chat to implement it; implemented but the report not yet accepted → the human reviews it; accepted and security-relevant, no verification →/nodfirst-verifyin a new chat; verification without Closure → the human closes it (/nodfirst-verify close); otherwise → finished. Skip the rest of this list. - no spec →
specify; - spec
Draftwith open questions → answer them orclarify; - spec
DraftorClarifiedwithout open questions → the human reviews and approves the spec; - spec approved, feature with screens, and no
project/design-system.md→design-systemfirst (optional, recommended once per project); - spec approved, feature with screens, no design and the human has not skipped it →
design(optional); - no plan →
plan; planDraft→ review and approval; - no tasks →
tasks; tasksDraft→ review and approval; - no analysis, or an analysis older than the latest change to spec, plan or tasks →
analyze; - analysis with Critical or High findings not accepted → fix them (
specifyMode B,planortasksrevision), thenanalyzeagain; - tasks not all
[x]→implement(name the next task, and any task marked[!]with its blocker or “Requires human action”); - all tasks done, no verification →
verifyin a new chat; - verification with Critical or High findings and no Closure section → the human decides: fix them (
tasksrevision, thenverifyagain in a new chat) or close the feature accepting them (/nodfirst-verify closewith the findings accepted and their reasons); - verification with no Critical or High finding and no Closure section → the human does the open “Needs a human” checks (name them), then closes the feature (
/nodfirst-verify close); - Closure recorded → the feature is finished: suggest the next roadmap item, and mention the follow-ups of accepted findings.
- light track (
- Look for warnings: a file changed after its approval stamp (changes to Section 0 of the profile do not count); a task in progress
[~]with no report; a change request that nobody has answered; a “Requires human action” item ahead; Commands still TBD after the scaffolding task; drift: commits since the last closed feature or fix that change code or tests and are not a task or fix commit (T<n> done,fix NNN done): list them and suggest/nodfirst-fixto record each change, or a spec update. - Answer in at most ten lines:
- Where we are: one sentence.
- What is waiting for you (decisions, approvals, actions outside the computer), if anything.
- Next step: the command to type, ready to copy, and whether to start a new chat.
- Warnings, if any.
- Stop.
Do not
- Change any file, start the next phase, or approve anything.