Economy-Mode Chapter Generation Prompt
This page contains the exact prompt to use for generating chapters of the Digital Citizenship for Grade 5 textbook in economy mode — a configuration that fits inside a single Claude Pro plan 5-hour window (~200,000 tokens) instead of consuming the ~$20 / 1.1M weighted tokens of the "max effort" mode used to generate Chapter 1.
Chapter 1 was deliberately written under "max effort" (Opus 4.6, ultrathink, plan mode, parallel Explore subagents, heavy verification) to establish the voice, structure, and Maka rhythm for the entire book. Chapters 2 through 17 should imitate Chapter 1 directly using this economy-mode prompt.
For the full token-cost analysis that motivates this prompt, see Chapter 1 cost report.
Workflow
For each chapter, perform these steps in Claude Code:
- Type
/clearto reset the conversation context. This is critical — without it, every chapter inherits the cache footprint of the previous chapter and the cumulative cost grows fast. - Confirm you are on
claude-opus-4-6(run/modelif unsure). For even cheaper generation (~\(0.44 per chapter instead of ~\)2.18), switch toclaude-sonnet-4-6. - Paste the prompt template below, with the four placeholders filled in:
[N]— chapter number (e.g.2)[NN]— two-digit chapter number with leading zero (e.g.02)[chapter-slug]— the chapter directory name (e.g.what-is-a-digital-citizen)[Chapter Title]— the title from the chapter stub (e.g.What Is a Digital Citizen?)
Prompt template
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | |
Worked example — Chapter 2
After typing /clear, paste:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | |
Why each constraint matters (cost-wise)
Every line in the constraints block exists because of a specific behavior that drove up the cost of Chapter 1. Removing any one of these constraints will push the chapter back over the Pro plan's 5-hour rate-limit window.
| Constraint | What it prevents | Tokens saved |
|---|---|---|
DO NOT enter plan mode |
The two-phase plan-then-execute workflow that read every project file twice | ~265K cache create + ~1.9M cache read |
DO NOT spawn Explore subagents |
Each parallel agent has its own context and produces a multi-thousand-word report that becomes cache for the parent | ~50K cache create per agent |
DO NOT use extended thinking |
Ultrathink output is invisible but billed as output tokens at $75/MTok on Opus | Roughly halves output token count |
Read ONLY these 4 files |
Stops the agent from chain-reading dependencies and re-reading long files | ~30–50K cache create |
One grep per check |
Prevents the verification loop that ran 10+ greps at the end of Chapter 1, each replaying ~125K cached tokens | ~1.3M cache read |
/clear before each chapter |
Resets cache so cumulative context does not grow chapter-over-chapter | Compounds across chapters |
Estimated cost per chapter in economy mode
| Model | Estimated cost per chapter | Fits in Pro 5h window? |
|---|---|---|
| Claude Opus 4.6 | ~$2.18 | Yes |
| Claude Sonnet 4.6 | ~$0.44 | Yes, comfortably |
| Reference: Chapter 1 in max-effort mode | $20.07 | No (5.7× over) |
What to do if the result is wrong
If the generated chapter has issues (missing concept, wrong voice,
back-to-back Maka admonitions), do not start a new conversation.
Stay in the same /clear-ed context and ask for the specific fix.
The cache from the original generation is still warm, so a follow-up
fix is cheap (typically a few thousand cache-read tokens plus a small
output).
Common follow-up prompts:
The Maka admonitions on lines X and Y are back-to-back. Add a paragraph of body prose between them.Concept "[concept name]" is missing from the body. Add a definition of it in section [N].Sentence "[quoted sentence]" is too long. Split it into two shorter sentences.The trusted-adult rule is inside the Maka warning admonition. Move it into plain prose right after the admonition.
If the chapter needs more substantial rework, do not keep
patching. Type /clear and re-run the full economy-mode prompt with
the same chapter number — a fresh single-shot regeneration is usually
cheaper than a long patching session.
Once all 17 chapters are written
After all 17 chapters exist, the recommended next passes are:
- MicroSim implementation pass — for each
<details>spec block withStatus: Specified, generate the actualmain.htmlandmain.jsfiles atdocs/sims/[sim-id]/. Use a separate conversation per MicroSim (or batch a few small ones together). - Glossary generation pass — once every concept has been defined
in at least one chapter, run the glossary generator skill to
produce
docs/glossary.mdfrom the inline definitions. - Teacher's-guide pass — generate the parallel
docs/teachers-guide/content. This audience uses a different voice (peer-to-peer, no Maka), so it cannot reuse the chapter prompts above.