Part 7 — The cycle of a feature

The NodFirst cycle: set up once; then specify, optional clarify and design, plan, tasks, analyze, implement, verify in a new chat, close. You approve after every step.

A feature is one thing the product does: “sign in”, “add an item to the list”, “export a report”. Each feature gets its own folder specs/001-name/.

specify → (clarify) → (design) → plan → tasks → analyze → implement (task by task) → verify

Steps in brackets are optional. specify sets the new feature as the active feature in project/profile.md, so the other commands know which one you mean.

For every phase: what it is, what you type, what you get, how to check it.

7.1 Specify — say what you want

What it is. Turning your idea into a precise written description: who uses it, what must happen, what must not, and how we will know it works.

What you type. Three ways to start:

  • A short idea: /nodfirst-specify Users can save a recipe and mark it as a favourite. Not included: sharing, comments. The agent asks up to 5 questions, then writes the spec. If your idea only changes one thing the product already does, the agent tells you that a small fix (Part 8) is enough.
  • Material you already have (notes, a brief, screenshots, a Figma link): /nodfirst-specify Mode C. Material: brief.docx, notes.txt, screens/home.png. The agent keeps your words, shows where each sentence went, describes each image back to you for confirmation, and tells you what it could not place. See Part 9.
  • A change to an existing spec (Mode B): /nodfirst-specify Mode B on 001: 1. The password must be at least 12 characters, not 8. 2. Remove the "remember me" option.

What you get. specs/001-name/spec.md, status Draft, with:

  • What you are approving, at the top: five lines in everyday words. Start from there (Part 6.2).
  • User stories (“As a … I want … so that …”).
  • Requirements (R1, R2…): what must happen. Each says MUST (obligatory), SHOULD (recommended) or MAY (optional).
  • Acceptance criteria (AC1…): concrete examples that prove a requirement (“If the password has 11 characters, the message says…”).
  • Out of scope, Open questions, Security and privacy, and Impact on existing specs if the feature changes an earlier one.

How to check it

  • Read the user stories. Is that what you want?
  • Read each requirement: does a normal person understand it? Could two people read it differently?
  • For each MUST requirement ask: “Which acceptance criterion would fail if we removed this requirement?” If there is none, the requirement is not really checked.
  • Look at the numbers (limits, times, lengths). Do all places that mention the same number agree?
  • Check the edge cases: empty, too long, wrong kind of input, no internet, a stranger trying to see someone else’s data.
  • Is anything you did not ask for in the spec? Remove it.
  • No open question may remain when you approve.

A spec for a small library needed four rounds of corrections in a real run. This is normal: gaps are found by reading carefully.

7.2 Clarify — remove doubts (optional, not yet proven)

When. The spec has open questions, you wrote it yourself, or you feel the agent guessed.

What you type. /nodfirst-clarify

What happens. The agent lists the doubts (vague words, contradictions, missing cases) with a priority, then asks one question at a time with options and a recommendation. You get the same spec, updated, and three lists: Changes, Interpretations, Still open. When no sentence can be read two ways, tell the agent “the spec is clarified” and it records the status. Clarified is not approved: approve the spec as usual before the plan. If you wrote the spec in your own format, clarify first asks you to run specify in Mode C.

7.3 Design — what people see (optional, only for features with screens; used once)

What you type. /nodfirst-design Screens: sign in, create account, "something went wrong". Material: design/signin.png (follow it exactly), Figma link for the other screens (colours and mood only).

What you get. specs/001-name/design.md: the sources you gave and what the agent read from each image; flows; screens; the table of states (empty, loading, error, offline…); every text the user will read; accessibility notes; conflicts and gaps (for example: the picture shows no error screen, so the agent proposed one, marked “proposed”).

Check. Does each screen match your material? Is the agent’s reading of your images correct? Is every text right? Does any screen show something the spec does not describe? The spec wins on behaviour.

The design system (colours, fonts, spacing, buttons) is created once, before the first feature with screens: /nodfirst-design-system Direction: calm and clear, light and dark mode. Brand colour #2F5D8A (follow it). Material: brand/logo.png. The agent calculates the contrast of every text colour (readable by people with low vision) and marks each value given (from your material) or proposed.

7.4 Plan — how it will be built

What you type. /nodfirst-plan

What happens. The agent first lists what it needs to decide and waits. It proposes the lightest way to build that meets your needs first. Then it asks one decision at a time, with options, sources it checked and a recommendation, explained in plain words. In the Guided profile, technical choices you cannot judge (a programming language version, a test tool) come together, one line of reason each, and you approve them together; anything with a cost, an account or an effect people will see is asked on its own. It never chooses for you. If you do not know, say “recommend one and explain the consequences”, then decide.

What you get. specs/001-name/plan.md, and for lasting decisions a short decision record in docs/decisions/. How to check it

  • For every decision, can you say in one sentence what you chose and why?
  • Costs and commitments: is there anything you would pay for, or cannot undo? (hosting, accounts, licences)
  • What happens to people’s data? Where is it stored, for how long, who can read it?
  • “How will this be tested?” must have a real answer.

7.5 Tasks — the work in small pieces

What you type. /nodfirst-tasks

Check. Each task fits in one sentence; a feature with one screen usually needs about a dozen tasks. Above 12 (or 20 for any feature) the agent looks again and merges tasks that split one piece of work, or tells you why in the box. The number is a signal, not a target: a task that bundles unrelated checks to stay under it should be split; every acceptance criterion has a task that tests it (the agent shows this check in its report); tasks that need you (create an account, buy a domain) are marked “Requires human action” and placed before they are needed; the last task is a final verification.

7.6 Analyze — a second pair of eyes on the documents

What you type. /nodfirst-analyze, after approving the tasks. Required before the first task: implement stops and asks for it if it is missing.

What happens. A read-only check that spec, plan and tasks agree with each other and with the rules. It writes analysis.md with findings by severity: Critical (something unspecified or untested), High (a requirement not properly proven, or documents that contradict each other), lower levels for wording.

What you do. Ask the agent to fix findings in the right file, then run analyze again. Start building only when no Critical or High finding is left, or you have accepted them knowingly.

7.7 Implement — the building

What you type. /nodfirst-implement (next task) or /nodfirst-implement T5. New chat for each task.

What happens. The agent writes the test first and shows it failing, writes the minimum code to make it pass, runs the single check, and reports in at most five lines: what works now, the checks with the number of tests passed, anything you must do or decide, deviations (or “none”). The details (which test failed first, files changed, each command) are in the saved copy; ask “show me the details” to see them. How to check (no code reading)

  • Does it say the checks passed, and how many tests?
  • Is every deviation explained? Did the agent add anything you did not ask for?
  • One task at a time in the Guided profile, even if you ask for more: the agent does the next task only and offers the Solo profile if you want longer runs.

When the agent stops. If a task cannot be done because the spec or plan is wrong, or a program is missing, or you change your mind about something already approved, the agent stops and proposes a change request: what changes and why, which documents, tasks and tests it touches, and which approvals you will give again. It edits nothing approved until you accept it. That is good behaviour. You decide.

7.8 Verify — the independent check (used on two projects)

What you type, in a new chat, ideally with a different model or tool: /nodfirst-verify Why. The agent that wrote the code should not be the only one to say it is right. Verify reads only the files and the code, runs the checks itself, and answers for each requirement: met, partial, missing, contradicts or untested. It also looks for things nobody asked for, does a security and privacy review, and lists the checks only a person can do (for example “open the app on your phone and try to sign in with a wrong password”).

What you get. verification.md with a verdict:

  • not verified: at least one serious problem in the code (Critical or High: a security hole, lost data, missing behaviour, or people blocked, given a wrong result or misled about it);
  • partly verified: no serious problem found, but some checks only you can do are still open (they are in the list “Needs a human”: tell the agent the result of each);
  • verified: no serious problem, and nothing left for you to check. Each problem says in one line who could meet it in normal use and how likely, so you can judge it without reading code. What you do. You decide. Either the problems become new tasks or spec changes and verify runs again, or you close the feature knowingly: you name each problem you accept, why, and what will be done about it later (/nodfirst-verify close accept F3: the time is shown in UTC, fix it in the next feature). The agent writes your decision in the file, updates project/behaviour.md (what the product does today), puts each follow-up in the Follow-ups list of the roadmap, and never changes the verdict to fit it. The feature is finished when you close it, even when it is verified.

When to stop. Each new run tends to find rarer cases. When only medium and minor problems are left, the agent says that closing with them accepted is a reasonable choice; you decide.

Stopping early. You may verify before all tasks are done: the agent asks, and the verification says it is partial. If you then close the feature, the open tasks become follow-ups or a later feature, and project/behaviour.md lists only what was actually built.


Back to top

NodFirst is released under the MIT licence. These pages are generated from the files in the repository.

This site uses Just the Docs, a documentation theme for Jekyll.