Skip to content
ContentsAppendices

Appendices

Appendix A: AI-Assisted Development Workflow at a Glance

Compiled from Chapter 8, "Practicing the Standard Implementation Workflow," and Chapter 10, "Conclusion: The Irreplaceable Role of Architecture." This table condenses the steps without adding acceptance judgments; the detailed evidence requirements in the chapters still apply.

StepActions and checks
DecompositionIdentify structural milestones that can run independently, and make their dependencies explicit.
Issue the implementation promptSpecify inputs and outputs, acceptance criteria, architectural constraints, and non-negotiable constraints.
CodingGenerate and apply the implementation according to the current blueprint.
AcceptanceMatch the criteria, implementation version, execution material, and checking results; check behavior and architectural constraints, and record conditions not covered.
Decide the next actionMark acceptance as complete only when there is support for an acceptance judgment; record insufficient material as pending verification. After a failure, review the approach; if you choose rollback, follow the full procedure in the chapters. A commit only preserves a version.
Update and hand offKeep the blueprint, evidence references, and unresolved items in sync; handle material according to the rules for retention and required handling, then begin the next iteration.

Three shared disciplines: Do not start without a blueprint. Do not baseline unverified work. When the work becomes confused, pause first. Record authorization for an action separately from acceptance within the stated scope; rollback is not re-verification either.

Appendix B: Standard CONTEXT.md Template

Compiled from the four types of information in Chapter 7, "Managing Core Deliverables," and the acceptance checks in Chapter 3, "Evidence Discipline." The table below lists fields to complete and items to check. It is a template, not a record of work already performed; explicitly mark missing items as unknown or pending verification.

FieldInformation to enter and check
System overview and constraintsSystem goals; frameworks and versions for the frontend, backend, and database; constraints on time, exceptions, module boundaries, and related matters.
Accepted milestonesImplementation version, acceptance items, evidence references, verified scope, and unresolved items; components that must not be changed without confirmation.
Data and interface contractsData dictionary, enumerations, state-machine transitions, core inputs and outputs, and applicable versions.
Current status and next stepsCurrent task, verified scope, items pending verification, the next TODO, and the required basis for it.
Subject of the acceptance assessmentPreserve fixed, traceable versions of the criteria, implementation, inputs, and environment records; binding content to hashes does not mean the result meets the acceptance criteria.
Execution recordCalls, arguments, and returned results can be matched.
Basis for each acceptance itemInputs, steps, expected results, actual results, replay method, and checking records for each criterion; list boundary conditions not covered separately.
Failures and unknownsPreserve negative material, missing items, scope pending verification, and follow-up items; state the evidence level.
Closure judgmentList separately the items that can and cannot be closed, with the basis for each; authorization to continue does not supply missing evidence.

Appendix C: Three Reusable Prompts

The following prompts come from the teaching explanations in the chapters. They are not execution records. Before copying a prompt, check its fields and constraints against the scope of the current task. A complete prompt does not mean that the acceptance material is complete.

Acceptance-criteria prompt

Next, implement user login. Your code must meet the following acceptance criteria:

  1. Accept account credentials: an account identifier and a password.
  2. Verify the password using Bcrypt hash comparison.
  3. Only after successful verification, issue a JWT that includes User ID and is valid for only 2 hours.
  4. Define and throw a 401 AppException for all authentication failures. Classify other exceptions separately according to the global exception-handling convention.

Once you understand these boundaries, begin writing the code.

Source: the login teaching example in Chapter 2. It illustrates specifying behavior and boundaries before requesting implementation. The validity period, hashing, and exception conventions must match the current blueprint. After delivery, the version and material still need to be checked against the acceptance items.

New-session handoff prompt

Read @CONTEXT.md in the project root. Make sure you understand the current system's architectural constraints, the baselined components that must not be changed without confirmation, and the current implementation status. First, check the current version, key contracts, acceptance-evidence references, and unresolved items. Report anything missing or inconsistent. Resolve gaps that affect the next decision. Once you have confirmed the task scope and the required basis for proceeding, explain your implementation approach, then carry out the TODO plan within the scope already authorized.

Source: the handoff example in Chapter 7. After reading the blueprint, check the material first; do not treat a reply saying "I understand" as a checking result. Gaps that affect the next step still need to be addressed. This prompt does not automatically authorize actions outside the scope already authorized.

Design-level correction prompt

Your last implementation coupled database operations with network requests, violating the single-responsibility principle. Move the data logic into the Repository layer and rewrite it there.

Source: the three-step correction method in Chapter 6. First confirm that the problem actually comes from coupled responsibilities before using this structural instruction. A local error cannot be elevated to an architectural defect merely by using this prompt. Verify the implementation again after making the change; a report saying "refactored" is not grounds for closing the task.