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.
| Step | Actions and checks |
|---|---|
| Decomposition | Identify structural milestones that can run independently, and make their dependencies explicit. |
| Issue the implementation prompt | Specify inputs and outputs, acceptance criteria, architectural constraints, and non-negotiable constraints. |
| Coding | Generate and apply the implementation according to the current blueprint. |
| Acceptance | Match the criteria, implementation version, execution material, and checking results; check behavior and architectural constraints, and record conditions not covered. |
| Decide the next action | Mark 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 off | Keep 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.
| Field | Information to enter and check |
|---|---|
| System overview and constraints | System goals; frameworks and versions for the frontend, backend, and database; constraints on time, exceptions, module boundaries, and related matters. |
| Accepted milestones | Implementation version, acceptance items, evidence references, verified scope, and unresolved items; components that must not be changed without confirmation. |
| Data and interface contracts | Data dictionary, enumerations, state-machine transitions, core inputs and outputs, and applicable versions. |
| Current status and next steps | Current task, verified scope, items pending verification, the next TODO, and the required basis for it. |
| Subject of the acceptance assessment | Preserve 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 record | Calls, arguments, and returned results can be matched. |
| Basis for each acceptance item | Inputs, steps, expected results, actual results, replay method, and checking records for each criterion; list boundary conditions not covered separately. |
| Failures and unknowns | Preserve negative material, missing items, scope pending verification, and follow-up items; state the evidence level. |
| Closure judgment | List 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:
- Accept account credentials: an account identifier and a password.
- Verify the password using Bcrypt hash comparison.
- Only after successful verification, issue a JWT that includes User ID and is valid for only 2 hours.
- 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.