jonnifyagile agents
jonnify / Agile Agent Workflow / A5 · The agent brief / A5.5 · The implementation prompt

A5.5 · module hub

The implementation prompt

The four prior parts are inert until something runs them. The fifth part is that runner: one prompt the Author follows top to bottom, building the increment in task order and ending on the verification gates.

References, requirements, topology, agent stories — a brief that is complete but unrun. The comprehensive implementation prompt assembles all four into one runnable instruction, executes the agent stories in task-DAG order, and closes on the Definition of Done. It fixes no decision the spec has not already fixed. Pick one of the five inputs on the right to see it folded into the prompt, grounded on the Portal's real f6.1.llms.md.

The prompt's five inputs · pick one

one prompt · five inputs folded in, references first INPUT 1 References — the sources the agent reads first INPUT 2 Requirements — F6.1-R1…R8, numbered and testable INPUT 3 Topology — the runtime tree, the T1→T7 build order INPUT 4 Agent stories — F6.1-AS1…AS4, each run in order INPUT 5 Definition of Done — the gates the prompt stops on
Input 1 · References — the sources the agent reads first. Carried into the prompt: yes. The prompt is the assembly point — every prior part folded into one runnable instruction, no decision left open.

One prompt, five inputs, one run

The first four parts of the brief leave a complete plan: the sources to read, the requirements to satisfy, the runtime shape and build order, and the agent stories with their gates. None of it runs on its own. The fifth part is the comprehensive implementation prompt — a single instruction an Author follows top to bottom, building the increment in task-DAG order and ending on the verification gates, with the spec's Definition of Done as the acceptance checklist.

The prompt's authority comes entirely from the parts above it. It restates the decisions the spec already fixed — it adds none. The Portal's f6.1.llms.md carries one such prompt: it opens by naming the sources to read and the unchanged-facade boundary, runs F6.1-AS1…AS4 over T1→T7, and closes on the gates. It is the same brief layer the companion chapter F6.1 — the request lifecycle builds against; the multi-agent variant runs the same assembly across a lead-team for a riskier rung such as F6.6 — LiveView.

# f6.1.llms.md — the comprehensive implementation prompt (preamble + the seven steps)
You are implementing spec F6.1 (Bootstrap the Phoenix Portal) as a NEW umbrella app
apps/portal_web… Read specs/phoenix/f6.1.md, f6.1.stories.md, and
specs/design/f0.md first. Do not change anything under the Portal facade…
Build in this order, keeping the umbrella compiling after each step:

  1) Foundation   T1                # the new app, helpers, telemetry, config
  2) Endpoint     T2  [R1]           # the plug stack + the LiveView socket
  3) Supervision  T3  [R2]           # wire the endpoint; drop Bandit
  4) Router       T4  [R3, R6]       # :browser pipeline, courses route, /health
  5) Controller   T5  [R4, R8]       # index/2 over Portal.courses_of/1 only
  6) View         T6  [R5]           # CourseHTML + .heex, assigns only
  7) Verify       T7  [R7, R8 + DoD] # the gates, reported against the DoD

Stop when the Definition of Done in specs/phoenix/f6.1.md is fully checked.
the principle

The implementation prompt assembles the four prior parts into one run, in task order, ending on the gates — and fixes no decision the spec has not already fixed.

on the Portal

f6.1.llms.md's prompt runs F6.1-AS1…AS4 over T1→T7 and closes on mix compile clean, /health 200, an empty invariant grep, and endpoint self-heal — the F6.1 Definition of Done as the checklist.

The prompt is the brief made runnable — every part folded into one pass that ends when the gates pass.

Complete or incomplete

A prompt that gathers all five inputs and runs the steps still is not complete unless it ends on its gates. The seventh step — verify — is what closes the loop: it names the runnable checks the Author self-checks against and reports them against the Definition of Done. Drop it and the prompt is incomplete: the agent builds, then reports done with no evidence of done.

Toggle the verify step below. With it, the prompt ends on the four gates the F6.1 brief names. Without it, the prompt loses every gate and the readout flags it incomplete — the same check A5.5's acceptance runs: a prompt missing its acceptance gates is flagged.

The seven steps · with or without the verify step

f6.1.llms.md prompt · seven steps in task-DAG order 1 · Foundation — T1 2 · Endpoint — T2 · R1 3 · Supervision — T3 · R2 4 · Router — T4 · R3, R6 5 · Controller — T5 · R4, R8 6 · View — T6 · R5 7 · Verify — T7 · R7, R8 + the gates
With step 7, the prompt ends on the gates (compile clean, /health 200, the invariant grep empty, endpoint self-heal). Drop it and the prompt is incomplete — the agent builds with no signal of done. · gates carried: 4 of 4.

A prompt that builds but never verifies is not done; it has only stopped — the gates are where "done" is allowed to mean done.

The three dives

Each dive takes one move in the arc assemble → order → close: how the prompt gathers the four prior parts, how it runs them in task-DAG order, and how it ends on the Definition of Done. Read them in order — A5.5.1 starts.

After A5.5, the next module — A5.6 · Running Claude agents well — covers the practice around the prompt: brief, supervise, and review against the spec's Definition of Done. Start with the first dive, Assembling the prompt, or return to the A5 module navigation.

References

The sources on writing and running a single implementation prompt, and where the rung it builds is defined in the companion course.

Sources

Related in this course