expand-chapter
You are running the expand-chapter skill. The chapter exists. This is
the mandatory grounding pass the pipeline runs on every chapter — or a
second pass because the critique (or the author) pointed at a concrete
unmet need. Never a length fix: word counts are not measured here. Your job
is not generic texture or dwelling — under this book's windowpane style,
lingering for its own sake is a defect. The pass adds only these six kinds
of insert, and only where the chapter shows the need:
- The world, unfolded more slowly. A spot where the chapter uses a
world element — a craft step, a rule of the magic, an institution, a
custom — but rushes past it, so the reader is told rather than shown.
Slow it down: one paragraph where the POV works the element and the
reader watches the mechanism operate. Felt, not lectured; show it
working, never explain the system behind it (the iceberg stays under
the surface).
- A visualization passage. A scene happening in a space the reader
cannot draw — no scale, no layout, no light, no sense of what stands
between the character and the door. Build the stage per
style.md
("Build the stage"): establish the space anchored to the POV's body,
so every action after it happens somewhere the reader can stand.
- The bill (cost made visible). A spot where the page spends
something — magic, physical effort, a favor, a social transgression —
and moves on without showing the price. Insert the paragraph where
the cost is felt: the hands that shake, the neighbour who no longer
returns the look, the material that will not be replaced.
Limitations are more interesting than powers; a spend with no bill
is a rule quietly broken.
- Deliberation on the page. A decision the chapter already contains,
taken cold — the POV acts without the reader seeing the weighing.
Insert the deliberation before the hinge, in the POV's own
vocabulary: options, fears, the calculus. This is what keeps
transparent prose warm. The hinge itself stays sharp and fast.
- Re-orientation after a jump. A time or place cut that disorients:
one short paragraph re-anchoring how long has passed, where we are,
what changed in the gap. The temporal cousin of building the stage.
- A secondary in three dimensions. A named secondary functioning as
a prop: one specific beat — a gesture, a worn object, a
contradiction — that makes them a person. At most one such insert
per chapter, or the cast becomes a catalogue.
If a spot needs none of these, it gets nothing. A chapter that is already
grounded, costed, and reasoned takes zero inserts, whatever its word count.
Precedence: the beat sheet outranks every need test — a gap the outline
marks as deferred or reserved is a seed, not a need; the test does not fire.
Hard rules
- Do not invent new plot beats. If the chapter has 4 plot beats,
it still has 4 after expansion. Plot is decided in
plan/outline.md.
- Do not contradict canon. If you need a fact that isn't there,
flag it — don't make it up silently.
- Do not pad with filler. "She walked to the door. She opened the
door. She stepped through." is failure. Expansion means deeper
attention, not more sentences.
- Match the voice already on the page. Read the chapter first.
Your additions should be indistinguishable from the existing prose.
If the POV voice is declared spare (short sentences, little
rumination, no big metaphors — see
setup.md), expand with
concrete texture and sensory detail, not interior monologue.
Lyrical, ruminative padding is voice drift, not depth. Prefer the
hand, the object, the labor over the character's thoughts about them.
- No word counting — the range in
setup.md is a planning objective,
not a check. Generated length is deliberately never measured back to
the model (a visible count breeds compensation). Do not count the
chapter's words before, during, or after the pass: every insert is
justified by a need test or not at all. Stop when the needs are met.
Better a lean chapter than a padded one.
- Do not break seed work. Existing planted/echoed seeds must stay
exactly where they are. If you move a seed line, you risk breaking
the echo or payoff chain.
- Spanish unless setup says otherwise.
Steps
1. Rebuild the context and read the chapter
python3 .claude/skills/write-chapter/scripts/build_context.py \
--series-slug <slug> \
--book-number <N> \
--chapter <M> --phase expand
--phase expand builds a lighter bundle: a grounding pass adds no plot and
reveals nothing, so it drops series context, the shadow slice, plan
neighbors/arcs, the story-so-far summaries and the seam. It keeps what a
grounding pass needs — setup, decisions, canon, the seed envelope (so inserts
don't break seed lines), this chapter's beat sheet, style + voice, the
dwelling checklist, and the voice spine last (insertions are exactly where the
tics creep back in). Read both the bundle (notes/_context-chMM.md) and the
chapter (chapters/MM.md).
2. Identify where the need shows
One read, one verdict. The tests fire on a first attentive read or
not at all — do not re-read hunting for candidates; a need you must hunt
for is not a need (it is the compliance reflex inventing work).
Write the candidate list before any prose. At most 6 lines, each:
the exact quoted line where the need shows + which test + a one-line
insert plan. A candidate that cannot quote its line is invented — drop
it. Then write only the strongest survivors (3 inserts max, as ever);
listing is not committing, and an empty list is a valid verdict —
report zero inserts and stop.
The need tests — one per insert kind:
- World-rush test (→ 1): a sentence invokes a world element (craft,
magic rule, institution, custom) the reader has never watched operate —
a noun doing a system's work ("pagó el diezmo del color", "templó el
hilo"). First time only: an element already unfolded in an earlier
chapter is NOT a candidate again (trust the reader).
- Blur test (→ 2): the reader could not draw the space — scale,
layout, light, what is underfoot, what stands between the POV and the
exit — AND the scene uses the space (movement, distance, hiding,
work). A scene that never uses its space needs no stage.
- Unpaid-bill test (→ 3): the scene spends magic, effort, a favor, or
a transgression and moves on with no visible price.
- Cold-decision test (→ 4): a choice that matters (it changes the
POV's situation) is taken with the weighing unseen. Trivial choices
stay cold — deliberating everything is drift.
- Lost-reader test (→ 5): after a time/place cut, a first-time reader
wouldn't know how long passed, where we are, and what changed.
- Prop test (→ 6): a named secondary is doing plot work with zero
specific humanity on the page (max one per chapter, never during a
hinge).
Constraints on candidates:
- Hinges stay sharp. Do not expand inside a decision, conflict, or
revelation beat; ground before the hinge so the hinge can move fast.
- Transitions almost never qualify.
3. Choose techniques from dwelling-techniques.md
Read the techniques reference and pick the ones that serve the insert's
job — techniques are means, the insert kinds are the end:
- For a world-unfolding paragraph, the natural fits are texture of
labor (the hands, the resistance of the material, the small
failures — the mechanism seen through work) and sensory anchoring
(the element known by smell, sound, weight, not by name).
- For a stage-building passage, use the "Build the stage" rules in
style.md directly: establish before moving, anchor geometry to the
body, concrete over generic, re-anchor when the space changes.
The room remembered (one object with a history placed in the
space) can double as furniture and character.
- For a cost paragraph, keep it in the body and the world (sensory
anchoring again): the price is a sensation, an object consumed, a
changed reaction from someone — never the narrator announcing "it had
cost him".
- For a deliberation paragraph, interior in motion is the tool:
the weighing happens during an action, in the POV's vocabulary,
and ends in the choice the chapter already makes.
- A re-orientation or secondary beat is short and plain — no
technique needed beyond one concrete anchor.
- Time held still is seasoning, not a basis for an insert on its
own — under the windowpane style an insert must ground, unfold, cost,
or reason, not merely linger.
4. Apply expansion in-place
Use the Edit tool to insert new prose into the chapter file. Each
insertion should:
- Be sized to its job: 60-150 words for a re-orientation or a secondary
beat; 150-400 words of continuous prose for an unfolding, stage, cost,
or deliberation passage. Never a list of beats.
- Sit at a spot that failed a need test in step 2, inside a scene the
chapter already has.
- Begin with a sensory anchor (smell, sound, touch, taste).
- Carry at least one subtext layer — what the POV feels but
doesn't say.
- Read invisibly between its markers: the prose itself should feel
as if it was always there (the markers below are a temporary
scaffold, not part of the prose).
Acceptable to insert at multiple points, but 3 insertions max per
expansion pass. More than that and the chapter loses shape.
4b. Mark each expanded zone (temporary repo standard)
Standard while this repo is early: every inserted zone is wrapped
in visible text markers so the author can read the chapter (including
on Kindle) and tell original prose from added prose, and compare
options. These markers stay in the file for now; they will be stripped
in a later cleanup pass once the workflow is trusted.
Wrap each insertion with numbered visible markers on their own
lines, blank line above and below:
▼▼▼ INICIO EXPAND N (prosa AÑADIDA — no original) ▼▼▼
<inserted prose>
▲▲▲ FIN EXPAND N ▲▲▲
- The number is the expand PASS (this skill invocation), not the
zone. Before adding anything, scan the chapter for existing
EXPAND markers:
- No
EXPAND markers found → this is pass 1: mark every zone
you add in this invocation as EXPAND 1.
EXPAND 1 markers already present → this is pass 2: mark
every zone you add in this invocation as EXPAND 2.
- All zones added in the same invocation share the same number,
however many they are. This way the author sees exactly what each
call contributed and can compare passes. Full control.
- Use the language of the prose (Spanish by default).
- Plain text markers only — not HTML comments — so they survive the
EPUB/Kindle export and are visible when reading.
- Cap: at most 2 expand passes per chapter. Do not invoke the skill
a third time on the same chapter.
5. Second pass — only on demand, never from length
There is no verification step and no word count. A second pass (pass 2 —
numbering and the 2-pass hard cap per 4b) happens only when the critique
names a need test that fired with no insert, or the author asks for one.
Never re-invoke the skill on your own initiative, and never count words to
decide anything. If your one attentive read left you suspecting the outline
planned too few texture beats for this chapter, flag that to the user as a
plan observation — do not fix it with inserts.
6. Report
- Number of inserts, by need-test type (zero is a valid outcome).
- Which scenes you expanded (one line each).
- Which dwelling techniques you used (named, from the reference).
- Anything you noticed that should be flagged: missing canon facts,
weak subtext, brittle transitions.
What this skill does NOT do
- Does not add new plot beats, characters, or settings.
- Does not change the chapter's POV, tense, or voice.
- Does not modify seeds, shadow, or plan files.
- Does not update canon (that's
update-canon).
1---2name: expand-chapter3description: Add depth where the chapter shows a need — unfold a world element the reader never watched operate, build a passage that lets the reader visualize the space, show the unpaid cost of a spend, put a cold decision's deliberation on the page, re-anchor after a disorienting jump, or give a prop secondary one human beat — without inventing new plot. Runs as a mandatory grounding pass on every chapter, and again (pass 2, the cap) only when the critique names a need test that fired with no insert. Never triggered by word count — the pipeline does not measure generated length. Use this after write-chapter (grounding pass), when critique-chapter flags an under-dwelt spot, or when the user says "I can't picture this scene" / "dwell more in chapter N".4---56# expand-chapter78You are running the **expand-chapter** skill. The chapter exists. This is9the mandatory **grounding pass** the pipeline runs on every chapter — or a10second pass because the critique (or the author) pointed at a concrete11unmet need. Never a length fix: word counts are not measured here. Your job12is **not** generic texture or dwelling — under this book's windowpane style,13lingering for its own sake is a defect. The pass adds only these **six kinds14of insert**, and only **where the chapter shows the need**:15161. **The world, unfolded more slowly.** A spot where the chapter *uses* a17 world element — a craft step, a rule of the magic, an institution, a18 custom — but rushes past it, so the reader is told rather than shown.19 Slow it down: one paragraph where the POV *works* the element and the20 reader watches the mechanism operate. Felt, not lectured; show it21 working, never explain the system behind it (the iceberg stays under22 the surface).232. **A visualization passage.** A scene happening in a space the reader24 cannot draw — no scale, no layout, no light, no sense of what stands25 between the character and the door. Build the stage per `style.md`26 ("Build the stage"): establish the space anchored to the POV's body,27 so every action after it happens somewhere the reader can stand.283. **The bill (cost made visible).** A spot where the page *spends*29 something — magic, physical effort, a favor, a social transgression —30 and moves on without showing the price. Insert the paragraph where31 the cost is *felt*: the hands that shake, the neighbour who no longer32 returns the look, the material that will not be replaced.33 Limitations are more interesting than powers; a spend with no bill34 is a rule quietly broken.354. **Deliberation on the page.** A decision the chapter already contains,36 taken cold — the POV acts without the reader seeing the weighing.37 Insert the deliberation *before* the hinge, in the POV's own38 vocabulary: options, fears, the calculus. This is what keeps39 transparent prose warm. The hinge itself stays sharp and fast.405. **Re-orientation after a jump.** A time or place cut that disorients:41 one short paragraph re-anchoring how long has passed, where we are,42 what changed in the gap. The temporal cousin of building the stage.436. **A secondary in three dimensions.** A named secondary functioning as44 a prop: one specific beat — a gesture, a worn object, a45 contradiction — that makes them a person. **At most one such insert46 per chapter**, or the cast becomes a catalogue.4748If a spot needs none of these, it gets nothing. A chapter that is already49grounded, costed, and reasoned takes zero inserts, whatever its word count.50**Precedence:** the beat sheet outranks every need test — a gap the outline51marks as deferred or reserved is a seed, not a need; the test does not fire.5253## Hard rules5455- **Do not invent new plot beats.** If the chapter has 4 plot beats,56 it still has 4 after expansion. Plot is decided in `plan/outline.md`.57- **Do not contradict canon.** If you need a fact that isn't there,58 flag it — don't make it up silently.59- **Do not pad with filler.** "She walked to the door. She opened the60 door. She stepped through." is failure. Expansion means *deeper61 attention*, not more sentences.62- **Match the voice already on the page.** Read the chapter first.63 Your additions should be indistinguishable from the existing prose.64 If the POV voice is declared *spare* (short sentences, little65 rumination, no big metaphors — see `setup.md`), expand with66 **concrete texture and sensory detail, not interior monologue**.67 Lyrical, ruminative padding is voice drift, not depth. Prefer the68 hand, the object, the labor over the character's thoughts about them.69- **No word counting — the range in `setup.md` is a planning objective,70 not a check.** Generated length is deliberately never measured back to71 the model (a visible count breeds compensation). Do not count the72 chapter's words before, during, or after the pass: every insert is73 justified by a need test or not at all. Stop when the needs are met.74 Better a lean chapter than a padded one.75- **Do not break seed work.** Existing planted/echoed seeds must stay76 exactly where they are. If you move a seed line, you risk breaking77 the echo or payoff chain.78- **Spanish unless setup says otherwise.**7980## Steps8182### 1. Rebuild the context and read the chapter8384```bash85python3 .claude/skills/write-chapter/scripts/build_context.py \86 --series-slug <slug> \87 --book-number <N> \88 --chapter <M> --phase expand89```9091`--phase expand` builds a lighter bundle: a grounding pass adds no plot and92reveals nothing, so it drops series context, the shadow slice, plan93neighbors/arcs, the story-so-far summaries and the seam. It keeps what a94grounding pass needs — setup, decisions, canon, the seed envelope (so inserts95don't break seed lines), this chapter's beat sheet, style + voice, the96dwelling checklist, and the voice spine last (insertions are exactly where the97tics creep back in). Read both the bundle (`notes/_context-chMM.md`) and the98chapter (`chapters/MM.md`).99100### 2. Identify where the need shows101102**One read, one verdict.** The tests fire on a first attentive read or103not at all — do not re-read hunting for candidates; a need you must hunt104for is not a need (it is the compliance reflex inventing work).105106**Write the candidate list before any prose.** At most 6 lines, each:107the exact quoted line where the need shows + which test + a one-line108insert plan. A candidate that cannot quote its line is invented — drop109it. Then write only the strongest survivors (3 inserts max, as ever);110listing is not committing, and an **empty list is a valid verdict** —111report zero inserts and stop.112113The need tests — one per insert kind:114115- **World-rush test (→ 1):** a sentence *invokes* a world element (craft,116 magic rule, institution, custom) the reader has never watched operate —117 a noun doing a system's work ("pagó el diezmo del color", "templó el118 hilo"). First time only: an element already unfolded in an earlier119 chapter is NOT a candidate again (trust the reader).120- **Blur test (→ 2):** the reader could not draw the space — scale,121 layout, light, what is underfoot, what stands between the POV and the122 exit — AND the scene *uses* the space (movement, distance, hiding,123 work). A scene that never uses its space needs no stage.124- **Unpaid-bill test (→ 3):** the scene spends magic, effort, a favor, or125 a transgression and moves on with no visible price.126- **Cold-decision test (→ 4):** a choice that matters (it changes the127 POV's situation) is taken with the weighing unseen. Trivial choices128 stay cold — deliberating everything is drift.129- **Lost-reader test (→ 5):** after a time/place cut, a first-time reader130 wouldn't know how long passed, where we are, and what changed.131- **Prop test (→ 6):** a *named* secondary is doing plot work with zero132 specific humanity on the page (max one per chapter, never during a133 hinge).134135Constraints on candidates:136137- **Hinges stay sharp.** Do not expand inside a decision, conflict, or138 revelation beat; ground *before* the hinge so the hinge can move fast.139- **Transitions almost never qualify.**140141### 3. Choose techniques from `dwelling-techniques.md`142143Read the techniques reference and pick the ones that serve the insert's144job — techniques are means, the insert kinds are the end:145146- For a **world-unfolding paragraph**, the natural fits are **texture of147 labor** (the hands, the resistance of the material, the small148 failures — the mechanism seen through work) and **sensory anchoring**149 (the element known by smell, sound, weight, not by name).150- For a **stage-building passage**, use the "Build the stage" rules in151 `style.md` directly: establish before moving, anchor geometry to the152 body, concrete over generic, re-anchor when the space changes.153 **The room remembered** (one object with a history placed *in* the154 space) can double as furniture and character.155- For a **cost paragraph**, keep it in the body and the world (sensory156 anchoring again): the price is a sensation, an object consumed, a157 changed reaction from someone — never the narrator announcing "it had158 cost him".159- For a **deliberation paragraph**, **interior in motion** is the tool:160 the weighing happens *during* an action, in the POV's vocabulary,161 and ends in the choice the chapter already makes.162- A **re-orientation** or **secondary beat** is short and plain — no163 technique needed beyond one concrete anchor.164- **Time held still** is seasoning, not a basis for an insert on its165 own — under the windowpane style an insert must ground, unfold, cost,166 or reason, not merely linger.167168### 4. Apply expansion in-place169170Use the Edit tool to insert new prose into the chapter file. Each171insertion should:172173- Be sized to its job: 60-150 words for a re-orientation or a secondary174 beat; 150-400 words of continuous prose for an unfolding, stage, cost,175 or deliberation passage. Never a list of beats.176- Sit at a spot that failed a need test in step 2, inside a scene the177 chapter already has.178- Begin with a sensory anchor (smell, sound, touch, taste).179- Carry **at least one subtext layer** — what the POV feels but180 doesn't say.181- Read invisibly *between* its markers: the prose itself should feel182 as if it was always there (the markers below are a temporary183 scaffold, not part of the prose).184185Acceptable to insert at multiple points, but **3 insertions max** per186expansion pass. More than that and the chapter loses shape.187188### 4b. Mark each expanded zone (temporary repo standard)189190> **Standard while this repo is early:** every inserted zone is wrapped191> in visible text markers so the author can read the chapter (including192> on Kindle) and tell original prose from added prose, and compare193> options. These markers stay in the file for now; they will be stripped194> in a later cleanup pass once the workflow is trusted.195196Wrap each insertion with **numbered** visible markers on their own197lines, blank line above and below:198199```200▼▼▼ INICIO EXPAND N (prosa AÑADIDA — no original) ▼▼▼201202<inserted prose>203204▲▲▲ FIN EXPAND N ▲▲▲205```206207- **The number is the expand PASS (this skill invocation), not the208 zone.** Before adding anything, scan the chapter for existing209 `EXPAND` markers:210 - No `EXPAND` markers found → this is **pass 1**: mark *every* zone211 you add in this invocation as `EXPAND 1`.212 - `EXPAND 1` markers already present → this is **pass 2**: mark213 *every* zone you add in this invocation as `EXPAND 2`.214 - All zones added in the *same* invocation share the *same* number,215 however many they are. This way the author sees exactly what each216 call contributed and can compare passes. Full control.217- Use the language of the prose (Spanish by default).218- Plain text markers only — not HTML comments — so they survive the219 EPUB/Kindle export and are visible when reading.220- **Cap: at most 2 expand passes per chapter.** Do not invoke the skill221 a third time on the same chapter.222223### 5. Second pass — only on demand, never from length224225There is **no verification step and no word count**. A second pass (pass 2 —226numbering and the 2-pass hard cap per 4b) happens only when the critique227names a need test that fired with no insert, or the author asks for one.228Never re-invoke the skill on your own initiative, and never count words to229decide anything. If your one attentive read left you suspecting the outline230planned too few texture beats for this chapter, flag that to the user as a231plan observation — do not fix it with inserts.232233### 6. Report234235- Number of inserts, by need-test type (zero is a valid outcome).236- Which scenes you expanded (one line each).237- Which dwelling techniques you used (named, from the reference).238- Anything you noticed that should be flagged: missing canon facts,239 weak subtext, brittle transitions.240241## What this skill does NOT do242243- Does not add new plot beats, characters, or settings.244- Does not change the chapter's POV, tense, or voice.245- Does not modify seeds, shadow, or plan files.246- Does not update canon (that's `update-canon`).