Closing Pass
local graph
Chapter 15 — Closing Pass
Section titled “Chapter 15 — Closing Pass”This chapter shows how the method applies in a different domain. I picked one I know well — writing. This book was written using the method it describes, and the example below shows how I applied finishing touches to the manuscript before publishing. I leave it to you to picture how the same approach extends to contract drafting, research-protocol writing, policy work, curriculum design, and marketing briefs.
The move has two halves. First, a sweep: you ask AI to scan one or more files for a specific kind of issue, propose a change wherever one is warranted, and record each proposal as an entry in a scratch file with an OPEN tag. AI does not edit anything during the sweep. Second, a triage: in a clean session, you walk through the entries one at a time and pick one of four moves — accept, ignore, defer, or edit. The tag flips with each decision.
Here is the prompt I ran on the manuscript.
You:
Read the prose of the book end to end (all .md files with the names that start withchapter-). Analyze the prose only (ignore code blocks, block quotes, chapter orsection titles). Goal of the analysis: find opportunities to improve readability,clarity, grammar, voice consistency (per voice.md file), logic flow, and toeliminate repetitions. Perform analysis on a paragraph-by-paragraph basis, andsuggest improvements. For every proposed improvement, make a record inscratch/text-review.md containing the following fields: - ID: unique ID of the record in this file, constructed as [REPHRASE:nnnn] where nnnn is a sequential number. Start from [REPHRASE:0001]. If text-review.md already contains entries, continue numbering from the ID of the last entry in the file - PROGRESS: a status tag that is initially set to OPEN - CHAPTER: name of the chapter - SECTION: name of the section - ORIGINAL: original paragraph - SUGGESTION: the suggested rephrasing of the entire original paragraph - RATIONALE: the rationale behind the proposed change (be brief; one or two sentences, no more)Each field shall begin on a new line. Each field name shall be separated from itsvalue by ": ".Records shall be separated by a dedicated line containing "=====".A few things in the prompt deserve a closer look. Scope restricts the analysis to prose, leaving out code blocks, block quotes, and titles. Goal sets intent (readability, clarity, grammar, voice, repetition elimination) rather than prescribing specific steps. Unit of analysis is one paragraph — the constraint that stops AI from chasing repetitions across chapters. Format spells out the output structure, because the prompt never says what the records will be used for and AI cannot infer a format on its own. Drop any one of these and you get something else — line edits, summaries, or a rewrite of the whole chapter.
AI (after some time):
Done. The review wrote 51 records (REPHRASE:0001 through REPHRASE:0051) toscratch/text-review.md, each with the field set you specified (ID, PROGRESS,CHAPTER, SECTION, ORIGINAL, SUGGESTION, RATIONALE), separated by ===== lines.Here is a snippet from the beginning of scratch/text-review.md:
Text Review - Tightening SuggestionsEach record uses the field set `ID`, `PROGRESS`, `CHAPTER`, `SECTION`, `ORIGINAL`,`SUGGESTION`, `RATIONALE`. Records are separated by a dedicated line containing`=====`.
=====ID: [REPHRASE:0001]PROGRESS: OPENCHAPTER: Why This Book?SECTION: Why This Book?ORIGINAL: This book stops at the specification. The next step - building from it -is its own discipline and its own book. If you want that follow-up volume, contactme at agentic-spec.com/author; your interest is the strongest signal that it isworth the effort.SUGGESTION: This book stops at the specification. The next step - building from it- is its own discipline, and deserves its own book. If you want that follow-upvolume, contact me at agentic-spec.com/author; your interest is the strongestsignal that it is worth the effort.RATIONALE: "Its own discipline and its own book" repeats the possessive twice inclose succession. Replacing the second "its own" with "deserves its own" varies therhythm and makes the second clause carry an independent verb instead of mirroringthe first.
=====ID: [REPHRASE:0002]PROGRESS: OPENCHAPTER: Why This Book?SECTION: Why This Book?ORIGINAL: The skill is durable. AI will keep getting better - fewer hallucinations,sharper reasoning, longer context windows - but as long as it remains a system thatpredicts text and operates without true understanding of your specific project, theprinciples here hold. As models improve, the method works better, not worse. Everystep asks AI to reason about the context you have built up, and a smarter modelreasons about it more carefully.SUGGESTION: The skill is durable. AI will keep getting better - fewerhallucinations, sharper reasoning, longer context windows - but as long as itremains a system that predicts text without truly understanding your project, theprinciples here hold. As models improve, the method works better, not worse. Everystep asks AI to reason about the context you have built up, and a smarter modelreasons about it more carefully.RATIONALE: The middle sentence runs long with two coordinated clauses ("predictstext and operates without true understanding of your specific project").Compressing to "predicts text without truly understanding your project" cuts aredundant verb and the slightly bureaucratic "your specific project," keeping themeaning intact while easing the cadence (which matters for the audiobookcompatibility called out in voice.md).At this point, you could process all the findings manually. Going through 50 flagged issues beats reading 200 pages. Still, there is a better way.
Triage
Section titled “Triage”Here is how to make the review interactive.
You (in a new session):
Walk me through all entries in scratch/text-review.md one by one, in a strict loop.Start with the first entry tagged as OPEN. Display each entry, by displaying thefollowing fields, each starting from a new line, name of the field in Italicfollowed by ": " and the fields's value (i.e. "ID: xxx", "CHAPTER: yyy", etc.): - ID - CHAPTER - SECTION, if its value differs from the value of CHAPTER - ORIGINAL, with the text fragments that triggered the issue displayed in Markdown inline code style - SUGGESTION, with the suggested replacement text fragments displayed in Markdown inline code style - RATIONALEAfter all the fields have been displayed, offer the user to choose from thefollowing options: 1. ACCEPT: apply the value of the SUGGESTION field as-is to the ORIGINAL paragraph in the book's content, and update the value of the PROGRESS field in the record to ACCEPTED 2. IGNORE: apply no changes to the book's content, and update the value of the PROGRESS field in the record to IGNORE 3. DEFER: make no changes to the book's content, and update the value of the PROGRESS field in the record to DEFERRED 4. EDIT: ask the user to enter the replacement text, wait for the user to enter it, and apply it as a change to the ORIGINAL paragraph in the book's content; update the value of the PROGRESS field in the record to EDITEDNEVER ask the user to choose an option without first displaying the fields.Once one of the choices has been applied, repeat the entire process (begin withfinding the first OPEN entry, which is expected to be the next unprocessed recordin the file).The prompt loops back to find the first OPEN entry after each decision rather than tracking a position; either approach works.
Triage is where your attention matters most. That is why the prompt controls the display so tightly — it removes every excuse for skimming.
Options 1–4 cover the four moves you can make on a review: take it, drop it, park it for later, rewrite it. In your project, you may have other options — whatever speeds things up.
Here is what happens when the prompt runs.
AI:
ID: REPHRASE:0001CHAPTER: Why This Book?ORIGINAL: This book stops at the specification. The next step - building from it -is its own discipline and its own book. If you want that follow-up volume, contactme at agentic-spec.com/author; your interest is the strongest signal that it isworth the effort.SUGGESTION: This book stops at the specification. The next step - building from it- is its own discipline, and deserves its own book. If you want that follow-upvolume, contact me at agentic-spec.com/author; your interest is the strongestsignal that it is worth the effort.RATIONALE: "Its own discipline and its own book" repeats the possessive twice inclose succession. Replacing the second "its own" with "deserves its own" variesthe rhythm and makes the second clause carry an independent verb instead ofmirroring the first.How would you like to handle REPHRASE:0001? 1. ACCEPT 2. IGNORE 3. DEFER 4. EDITYou:
1 (accept)AI:
ID: REPHRASE:0002CHAPTER: Why This Book?ORIGINAL: The skill is durable. AI will keep getting better - fewerhallucinations, sharper reasoning, longer context windows - but as long as itremains a system that predicts text and operates without true understanding of yourspecific project, the principles here hold. As models improve, the method worksbetter, not worse. Every step asks AI to reason about the context you have builtup, and a smarter model reasons about it more carefully.SUGGESTION: The skill is durable. AI will keep getting better - fewerhallucinations, sharper reasoning, longer context windows - but as long as itremains a system that predicts text without truly understanding your project, theprinciples here hold. As models improve, the method works better, not worse. Everystep asks AI to reason about the context you have built up, and a smarter modelreasons about it more carefully.RATIONALE: The middle sentence runs long with two coordinated clauses ("predictstext and operates without true understanding of your specific project").Compressing to "predicts text without truly understanding your project" cuts aredundant verb and the slightly bureaucratic "your specific project," keeping themeaning intact while easing the cadence (which matters for the audiobookcompatibility called out in voice.md).How would you like to handle REPHRASE:0002? 1. ACCEPT 2. IGNORE 3. DEFER 4. EDITYou:
1 (accept)… and the conversation continues.
Beyond Text
Section titled “Beyond Text”Nothing in this pattern is specific to plain text. Replace prose with code, contract clauses, protocol steps, configuration entries, or test cases — the review process does not change.
What changes is the display step in the triage. For code, the eye wants a diff with syntax highlighting. For a flow, a diagram with the changed step marked. For a contract, a side-by-side of the existing and proposed clauses, with the substituted language highlighted. Structural reviews benefit more from a generated visual than from prose.
If you run this pattern often, save the prompts as files and reuse them.
Challenge
Section titled “Challenge”[…]ge gives you four moves on each flagged entry. Three are decisions about the suggestion […] already wrote: ACCEPT it, IGNORE it, DEFER it. The fourth — EDIT — is different. You type a replacement, and AI swaps it into the book as-is, without a second look. Nothing checks whether your edit resolves the flagged issue, and nothing checks whether it meets the standards the original analysis enforced — voice, clarity, grammar, no in-chapter repetition. The edit slips past the review the rest of the entries were judged against.
Your challenge is to close that gap. Extend EDIT so the text you enter is held to the same standard as the original suggestion. After you type a replacement, AI runs the same analysis on it that produced the review in the first place — the same scope, the same goals, the same unit of analysis — and reports whether the replacement passes. If it does, AI applies it to the book and flips the tag to EDITED. If it does not, AI shows you what failed and lets you revise; the entry stays OPEN until a replacement clears the bar (or until you switch to one of the other three moves).
Hint: the triage runs in a fresh session. The session that recorded the entries is gone, and with it the prompt that defined the analysis. For AI to apply the same analysis again, that analysis has to live somewhere on disk — a file that the sweep prompt reads at the start and the triage prompt reads when EDIT is taken. Otherwise the second session has nothing to compare against, and “same analysis” reduces to whatever the model happens to remember about the goals you set the first time.