scriveno 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +222 -0
- package/agents/continuity-checker.md +85 -0
- package/agents/drafter.md +248 -0
- package/agents/plan-checker.md +209 -0
- package/agents/researcher.md +114 -0
- package/agents/translator.md +204 -0
- package/agents/voice-checker.md +154 -0
- package/bin/install.js +1620 -0
- package/commands/scr/add-note.md +51 -0
- package/commands/scr/add-unit.md +101 -0
- package/commands/scr/art-direction.md +225 -0
- package/commands/scr/autopilot-publish.md +210 -0
- package/commands/scr/autopilot-translate.md +237 -0
- package/commands/scr/autopilot.md +200 -0
- package/commands/scr/back-matter.md +630 -0
- package/commands/scr/back-translate.md +197 -0
- package/commands/scr/beta-reader.md +97 -0
- package/commands/scr/blurb.md +149 -0
- package/commands/scr/book-proposal.md +210 -0
- package/commands/scr/build-ebook.md +448 -0
- package/commands/scr/build-poetry-submission.md +202 -0
- package/commands/scr/build-print.md +598 -0
- package/commands/scr/build-smashwords.md +171 -0
- package/commands/scr/build-world.md +158 -0
- package/commands/scr/cast-list.md +104 -0
- package/commands/scr/chapter-header.md +158 -0
- package/commands/scr/character-arc.md +108 -0
- package/commands/scr/character-ref.md +160 -0
- package/commands/scr/character-sheet.md +143 -0
- package/commands/scr/character-touch.md +157 -0
- package/commands/scr/character-voice-sample.md +111 -0
- package/commands/scr/check-notes.md +50 -0
- package/commands/scr/cleanup.md +159 -0
- package/commands/scr/compare.md +112 -0
- package/commands/scr/complete-draft.md +49 -0
- package/commands/scr/continuity-check.md +129 -0
- package/commands/scr/copy-edit.md +118 -0
- package/commands/scr/cover-art.md +382 -0
- package/commands/scr/cultural-adaptation.md +177 -0
- package/commands/scr/demo.md +93 -0
- package/commands/scr/dialogue-audit.md +143 -0
- package/commands/scr/discuss.md +118 -0
- package/commands/scr/discussion-questions.md +129 -0
- package/commands/scr/do.md +68 -0
- package/commands/scr/draft.md +97 -0
- package/commands/scr/editor-review.md +466 -0
- package/commands/scr/export.md +942 -0
- package/commands/scr/fast.md +65 -0
- package/commands/scr/front-matter.md +696 -0
- package/commands/scr/health.md +113 -0
- package/commands/scr/help.md +121 -0
- package/commands/scr/history.md +92 -0
- package/commands/scr/illustrate-scene.md +211 -0
- package/commands/scr/import.md +95 -0
- package/commands/scr/insert-unit.md +108 -0
- package/commands/scr/line-edit.md +146 -0
- package/commands/scr/manager.md +77 -0
- package/commands/scr/manuscript-stats.md +139 -0
- package/commands/scr/map-illustration.md +213 -0
- package/commands/scr/map-manuscript.md +134 -0
- package/commands/scr/merge-units.md +136 -0
- package/commands/scr/multi-publish.md +344 -0
- package/commands/scr/new-character.md +167 -0
- package/commands/scr/new-revision.md +50 -0
- package/commands/scr/new-work.md +148 -0
- package/commands/scr/next.md +125 -0
- package/commands/scr/originality-check.md +170 -0
- package/commands/scr/outline.md +131 -0
- package/commands/scr/pacing-analysis.md +170 -0
- package/commands/scr/panel-layout.md +225 -0
- package/commands/scr/pause-work.md +88 -0
- package/commands/scr/plan.md +112 -0
- package/commands/scr/plant-seed.md +57 -0
- package/commands/scr/plot-graph.md +199 -0
- package/commands/scr/polish.md +141 -0
- package/commands/scr/profile-writer.md +154 -0
- package/commands/scr/progress.md +51 -0
- package/commands/scr/publish.md +455 -0
- package/commands/scr/query-letter.md +183 -0
- package/commands/scr/quick-write.md +82 -0
- package/commands/scr/relationship-map.md +129 -0
- package/commands/scr/remove-unit.md +120 -0
- package/commands/scr/reorder-units.md +126 -0
- package/commands/scr/resume-work.md +97 -0
- package/commands/scr/sacred/annotation-layer.md +105 -0
- package/commands/scr/sacred/chronology.md +121 -0
- package/commands/scr/sacred/concordance.md +88 -0
- package/commands/scr/sacred/cross-reference.md +97 -0
- package/commands/scr/sacred/doctrinal-check.md +129 -0
- package/commands/scr/sacred/genealogy.md +107 -0
- package/commands/scr/sacred/source-tracking.md +101 -0
- package/commands/scr/sacred/verse-numbering.md +103 -0
- package/commands/scr/sacred-numbering-format.md +103 -0
- package/commands/scr/save.md +109 -0
- package/commands/scr/scan.md +291 -0
- package/commands/scr/sensitivity-review.md +169 -0
- package/commands/scr/series-bible.md +127 -0
- package/commands/scr/session-report.md +80 -0
- package/commands/scr/settings.md +58 -0
- package/commands/scr/split-unit.md +123 -0
- package/commands/scr/spread-layout.md +187 -0
- package/commands/scr/storyboard.md +262 -0
- package/commands/scr/subject-touch.md +168 -0
- package/commands/scr/submit.md +50 -0
- package/commands/scr/subplot-map.md +147 -0
- package/commands/scr/sync.md +116 -0
- package/commands/scr/synopsis.md +137 -0
- package/commands/scr/theme-tracker.md +128 -0
- package/commands/scr/thread.md +83 -0
- package/commands/scr/timeline.md +141 -0
- package/commands/scr/track.md +564 -0
- package/commands/scr/translate.md +260 -0
- package/commands/scr/translation-glossary.md +298 -0
- package/commands/scr/translation-memory.md +310 -0
- package/commands/scr/troubleshoot.md +59 -0
- package/commands/scr/undo.md +106 -0
- package/commands/scr/validate.md +133 -0
- package/commands/scr/versions.md +94 -0
- package/commands/scr/voice-check.md +133 -0
- package/commands/scr/voice-test.md +68 -0
- package/data/CONSTRAINTS.json +1606 -0
- package/data/demo/.manuscript/BRIEF.md +37 -0
- package/data/demo/.manuscript/CHARACTERS.md +90 -0
- package/data/demo/.manuscript/OUTLINE.md +46 -0
- package/data/demo/.manuscript/PLOT-GRAPH.md +75 -0
- package/data/demo/.manuscript/STATE.md +44 -0
- package/data/demo/.manuscript/STYLE-GUIDE.md +119 -0
- package/data/demo/.manuscript/THEMES.md +51 -0
- package/data/demo/.manuscript/WORK.md +51 -0
- package/data/demo/.manuscript/config.json +59 -0
- package/data/demo/.manuscript/drafts/body/1-the-letter-DRAFT.md +51 -0
- package/data/demo/.manuscript/drafts/body/2-the-workshop-DRAFT.md +51 -0
- package/data/demo/.manuscript/drafts/body/3-the-pier-DRAFT.md +45 -0
- package/data/demo/.manuscript/drafts/body/4-the-clock-DRAFT.md +59 -0
- package/data/demo/.manuscript/plans/5-the-reunion-PLAN.md +52 -0
- package/data/demo/.manuscript/reviews/2-the-workshop-REVIEW.md +61 -0
- package/data/export-templates/scriveno-academic.latex +184 -0
- package/data/export-templates/scriveno-acm.latex +67 -0
- package/data/export-templates/scriveno-apa7.latex +83 -0
- package/data/export-templates/scriveno-book.typst +175 -0
- package/data/export-templates/scriveno-chapbook.typst +121 -0
- package/data/export-templates/scriveno-elsevier.latex +76 -0
- package/data/export-templates/scriveno-epub.css +386 -0
- package/data/export-templates/scriveno-fixed-layout-epub.css +76 -0
- package/data/export-templates/scriveno-fixed-layout.opf +23 -0
- package/data/export-templates/scriveno-ieee.latex +77 -0
- package/data/export-templates/scriveno-lncs.latex +79 -0
- package/data/export-templates/scriveno-picturebook.typst +113 -0
- package/data/export-templates/scriveno-poetry-submission-styles.md +45 -0
- package/data/export-templates/scriveno-poetry-submission.docx +0 -0
- package/data/export-templates/scriveno-smashwords-styles.md +45 -0
- package/data/export-templates/scriveno-smashwords.docx +0 -0
- package/data/export-templates/scriveno-stageplay.typst +129 -0
- package/data/proof/creative-context/README.md +79 -0
- package/data/proof/voice-dna/GUIDED-SAMPLE.md +19 -0
- package/data/proof/voice-dna/README.md +45 -0
- package/data/proof/voice-dna/STYLE-GUIDE-EXCERPT.md +43 -0
- package/data/proof/voice-dna/UNGUIDED-SAMPLE.md +11 -0
- package/data/proof/watchmaker-flow/README.md +78 -0
- package/docs/architecture.md +425 -0
- package/docs/command-reference.md +2384 -0
- package/docs/configuration.md +228 -0
- package/docs/context-protocol.md +81 -0
- package/docs/contributing.md +430 -0
- package/docs/creative-context.md +158 -0
- package/docs/development.md +152 -0
- package/docs/drafter-quality.md +127 -0
- package/docs/getting-started.md +198 -0
- package/docs/history-protocol.md +96 -0
- package/docs/proof-artifacts.md +56 -0
- package/docs/publishing.md +296 -0
- package/docs/release-notes.md +457 -0
- package/docs/runtime-support.md +77 -0
- package/docs/sacred-texts.md +296 -0
- package/docs/shipped-assets.md +129 -0
- package/docs/testing.md +156 -0
- package/docs/translation.md +343 -0
- package/docs/voice-dna.md +297 -0
- package/docs/work-types.md +339 -0
- package/lib/architectural-profiles.js +134 -0
- package/package.json +54 -0
- package/templates/BRIEF.md +51 -0
- package/templates/CHARACTERS.md +64 -0
- package/templates/CONTEXT.md +56 -0
- package/templates/OUTLINE.md +36 -0
- package/templates/RECORD.md +68 -0
- package/templates/STATE.md +50 -0
- package/templates/STYLE-GUIDE.md +121 -0
- package/templates/THEMES.md +36 -0
- package/templates/WORK.md +67 -0
- package/templates/WORLD.md +62 -0
- package/templates/WRITING-RULES.md +156 -0
- package/templates/academic/ARGUMENT-MAP.md +40 -0
- package/templates/academic/CONCEPTS.md +34 -0
- package/templates/academic/CONTEXT.md +29 -0
- package/templates/academic/PROPOSAL.md +37 -0
- package/templates/academic/QUESTIONS.md +24 -0
- package/templates/config.json +72 -0
- package/templates/pitfalls/comic.md +54 -0
- package/templates/pitfalls/commentary.md +62 -0
- package/templates/pitfalls/memoir.md +48 -0
- package/templates/pitfalls/novel.md +53 -0
- package/templates/pitfalls/poetry_collection.md +63 -0
- package/templates/pitfalls/research_paper.md +66 -0
- package/templates/pitfalls/runbook.md +64 -0
- package/templates/pitfalls/screenplay.md +54 -0
- package/templates/platforms/README.md +16 -0
- package/templates/platforms/apple/manifest.yaml +20 -0
- package/templates/platforms/bn/manifest.yaml +20 -0
- package/templates/platforms/d2d/manifest.yaml +20 -0
- package/templates/platforms/google/manifest.yaml +20 -0
- package/templates/platforms/ingram/manifest.yaml +44 -0
- package/templates/platforms/kdp/manifest.yaml +42 -0
- package/templates/platforms/kobo/manifest.yaml +20 -0
- package/templates/platforms/smashwords/manifest.yaml +26 -0
- package/templates/sacred/COSMOLOGY.md +88 -0
- package/templates/sacred/DOCTRINES.md +45 -0
- package/templates/sacred/FIGURES.md +69 -0
- package/templates/sacred/FRAMEWORK.md +98 -0
- package/templates/sacred/LINEAGES.md +52 -0
- package/templates/sacred/README.md +20 -0
- package/templates/sacred/THEOLOGICAL-ARC.md +69 -0
- package/templates/sacred/catholic/manifest.yaml +93 -0
- package/templates/sacred/islamic-hafs/manifest.yaml +134 -0
- package/templates/sacred/islamic-warsh/manifest.yaml +134 -0
- package/templates/sacred/jewish/manifest.yaml +56 -0
- package/templates/sacred/orthodox/manifest.yaml +98 -0
- package/templates/sacred/pali/manifest.yaml +20 -0
- package/templates/sacred/protestant/manifest.yaml +86 -0
- package/templates/sacred/sanskrit/manifest.yaml +20 -0
- package/templates/sacred/tewahedo/manifest.yaml +106 -0
- package/templates/sacred/tibetan/manifest.yaml +20 -0
- package/templates/technical/AUDIENCE.md +26 -0
- package/templates/technical/DEPENDENCIES.md +19 -0
- package/templates/technical/DOC-BRIEF.md +45 -0
- package/templates/technical/PROCEDURES.md +37 -0
- package/templates/technical/REFERENCES.md +36 -0
- package/templates/technical/SYSTEM.md +25 -0
|
@@ -0,0 +1,630 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Generate publication-ready back matter elements.
|
|
3
|
+
argument-hint: "[--level <minimum|balanced|maximum>] [--element <name>]"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /scr:back-matter -- Back Matter Generation
|
|
7
|
+
|
|
8
|
+
Generate publication-ready back matter elements. Elements are classified as generatable, scaffoldable, or template-based depending on whether AI can produce complete content, a draft for writer revision, or a structural template.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
/scr:back-matter # interactive: skip / minimum / balanced / maximum
|
|
14
|
+
/scr:back-matter --level <minimum|balanced|maximum> # non-interactive
|
|
15
|
+
/scr:back-matter --element <name> # generate one specific element
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
**Levels:**
|
|
19
|
+
|
|
20
|
+
| Level | What it generates | When to use |
|
|
21
|
+
|-------|-------------------|-------------|
|
|
22
|
+
| `minimum` | About the author. (Plus bibliography for academic / sacred work types where it is structurally required.) | Beta-reader handoff, draft sharing. |
|
|
23
|
+
| `balanced` | `minimum` + colophon, permissions/credits when applicable. | Default for retail publishing. |
|
|
24
|
+
| `maximum` | Every applicable element (the legacy "all 12" behavior, including epilogue, afterword, glossary, suggested reading, index, discussion questions). | Critical editions, scholarly works, anyone who wants the full back-matter menu. |
|
|
25
|
+
|
|
26
|
+
If neither `--level` nor `--element` is provided, the command prompts the writer first:
|
|
27
|
+
|
|
28
|
+
> Generate back matter?
|
|
29
|
+
>
|
|
30
|
+
> 1. **skip** -- I do not want any back matter generated
|
|
31
|
+
> 2. **minimum** -- about-the-author (legal floor)
|
|
32
|
+
> 3. **balanced** -- minimum + colophon, permissions when applicable
|
|
33
|
+
> 4. **maximum** -- every applicable element
|
|
34
|
+
|
|
35
|
+
If the writer answers **skip**, exit with no files written and no error.
|
|
36
|
+
|
|
37
|
+
**Elements:**
|
|
38
|
+
|
|
39
|
+
| # | Element | Flag Name | Type |
|
|
40
|
+
|---|---------|-----------|------|
|
|
41
|
+
| 1 | Epilogue | `epilogue` | SCAFFOLD |
|
|
42
|
+
| 2 | Afterword | `afterword` | SCAFFOLD |
|
|
43
|
+
| 3 | Appendix(es) | `appendix` | TEMPLATE |
|
|
44
|
+
| 4 | Glossary | `glossary` | GENERATE |
|
|
45
|
+
| 5 | Endnotes | `endnotes` | TEMPLATE |
|
|
46
|
+
| 6 | Bibliography / References | `bibliography` | TEMPLATE |
|
|
47
|
+
| 7 | Suggested Reading | `suggested-reading` | GENERATE |
|
|
48
|
+
| 8 | Index | `index` | TEMPLATE |
|
|
49
|
+
| 9 | About the Author | `about-author` | GENERATE |
|
|
50
|
+
| 10 | Colophon | `colophon` | TEMPLATE |
|
|
51
|
+
| 11 | Discussion Questions | `discussion-questions` | GENERATE |
|
|
52
|
+
| 12 | Permissions / Credits | `permissions` | TEMPLATE |
|
|
53
|
+
|
|
54
|
+
If `--element` is provided, generate only that element. Otherwise, generate all elements applicable to the current work type.
|
|
55
|
+
|
|
56
|
+
## Instruction
|
|
57
|
+
|
|
58
|
+
You are a **publishing specialist** preparing back matter for a manuscript. Your output must follow industry conventions for element content and formatting.
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
### STEP 0: BOOTSTRAP (context-cost protocol)
|
|
63
|
+
|
|
64
|
+
Read `.manuscript/CONTEXT.md` first if it exists. If its `Updated` timestamp is newer than `.manuscript/STATE.md` and newer than the newest file in `.manuscript/drafts/body/`, use it as your orientation source for project title, work type, phase, and open items. In STEP 1, skip raw-file loads of `config.json` and `STATE.md` for those fields -- still load `WORK.md`, `CHARACTERS.md`, drafted prose, and `CONSTRAINTS.json` (each holds element-generation data CONTEXT.md does not surface).
|
|
65
|
+
|
|
66
|
+
If CONTEXT.md is missing, stale, or contradicts STATE.md, fall back to the original loads in STEP 1 unchanged. See `docs/context-protocol.md` for the contract.
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
### STEP 1: LOAD CONTEXT
|
|
71
|
+
|
|
72
|
+
Load the following project files:
|
|
73
|
+
|
|
74
|
+
- `.manuscript/config.json` -- to get `work_type`, title, author, and project settings
|
|
75
|
+
- Scriveno's installed/shared `CONSTRAINTS.json` (global `~/.scriveno/data/CONSTRAINTS.json` or project `.scriveno/data/CONSTRAINTS.json`) -- to check back-matter availability and adaptations for the current work type
|
|
76
|
+
- `.manuscript/WORK.md` -- title, author, publisher, and publication details
|
|
77
|
+
- `.manuscript/CHARACTERS.md` -- for glossary extraction (character names, terms)
|
|
78
|
+
- Drafted prose from `.manuscript/drafts/` (especially `.manuscript/drafts/body/`) -- for content extraction (glossary terms, endnotes, themes)
|
|
79
|
+
|
|
80
|
+
**Confirm the `back-matter` command is available** for the current work type by checking `CONSTRAINTS.json`. If the work type's group is in the `hidden` list, inform the writer and stop.
|
|
81
|
+
|
|
82
|
+
Check for adapted behavior:
|
|
83
|
+
- If work type group is `academic`: apply `academic_back_matter` behavior (see Academic Adaptation below)
|
|
84
|
+
- If work type group is `sacred`: apply `sacred_back_matter` behavior (see Sacred Adaptation below)
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
### STEP 1.5: RESOLVE LEVEL
|
|
89
|
+
|
|
90
|
+
Resolve the level filter that controls which elements are eligible to be generated.
|
|
91
|
+
|
|
92
|
+
**Routing:**
|
|
93
|
+
- If `--element <name>` is given, ignore `--level` entirely and generate only that one element. Skip the rest of this step.
|
|
94
|
+
- If `--level <value>` is given, use that value (`minimum`, `balanced`, or `maximum`).
|
|
95
|
+
- If neither flag is given, run the interactive prompt from the Usage section. If the writer chooses **skip**, write a one-line summary ("Back matter generation skipped at writer's request -- no files written.") and exit without doing anything else.
|
|
96
|
+
|
|
97
|
+
**Level membership** (the eligible set per level, before work-type filtering):
|
|
98
|
+
|
|
99
|
+
| Level | Elements eligible |
|
|
100
|
+
|-------|-------------------|
|
|
101
|
+
| `minimum` | 9 (about-the-author). Plus 6 (bibliography) when work type group is `academic` or `sacred` (structurally required there). |
|
|
102
|
+
| `balanced` | minimum + 10 (colophon), 12 (permissions/credits when there is anything to credit) |
|
|
103
|
+
| `maximum` | All 12 standard elements + every applicable adaptation element (academic, sacred-tradition specific) |
|
|
104
|
+
|
|
105
|
+
**Adaptation interaction:**
|
|
106
|
+
- The Academic and Sacred adaptations modify or add elements. They run regardless of level. Their additions are eligible only at `maximum`, except where the level explicitly includes them (for example bibliography is in `minimum` for academic and sacred work types).
|
|
107
|
+
- Sacred-specific extras (concordance, scripture index, sacred maps, chronological tables) are eligible only at `maximum`.
|
|
108
|
+
|
|
109
|
+
**Work-type filtering applies on top of the level filter.** An element that is in the level's eligible set but is hidden for the current work type group (per `CONSTRAINTS.json`) is still skipped.
|
|
110
|
+
|
|
111
|
+
Use the resolved eligible set for STEP 3. Track the resolved level so STEP 4 can report it.
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
### STEP 2: VOICE DNA LOADING (CONDITIONAL)
|
|
116
|
+
|
|
117
|
+
**Load `.manuscript/STYLE-GUIDE.md` ONLY for narrative/voice-dependent elements:**
|
|
118
|
+
- Epilogue scaffold (1)
|
|
119
|
+
- Afterword scaffold (2)
|
|
120
|
+
- Suggested Reading (7)
|
|
121
|
+
- About the Author (9)
|
|
122
|
+
- Discussion Questions (11)
|
|
123
|
+
|
|
124
|
+
**Do NOT load STYLE-GUIDE.md for mechanical/structural elements:**
|
|
125
|
+
- Appendix (3)
|
|
126
|
+
- Glossary (4)
|
|
127
|
+
- Endnotes (5)
|
|
128
|
+
- Bibliography / References (6)
|
|
129
|
+
- Index (8)
|
|
130
|
+
- Colophon (10)
|
|
131
|
+
- Permissions / Credits (12)
|
|
132
|
+
|
|
133
|
+
This separation preserves voice fidelity for elements the reader experiences as authored prose, while keeping reference and structural elements clean and standardized.
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
### STEP 3: GENERATE ELEMENTS
|
|
138
|
+
|
|
139
|
+
Process each element in order, but only if it is in the eligible set resolved in STEP 1.5. If `--element` was specified, skip the level filter and generate only that element. Skip any element not in the eligible set silently (it goes into the STEP 4 skipped-elements report instead).
|
|
140
|
+
|
|
141
|
+
#### Element 1: Epilogue -- SCAFFOLD
|
|
142
|
+
|
|
143
|
+
**Load STYLE-GUIDE.md for voice.**
|
|
144
|
+
|
|
145
|
+
```markdown
|
|
146
|
+
# Epilogue
|
|
147
|
+
|
|
148
|
+
<!-- WRITER ACTION REQUIRED -->
|
|
149
|
+
<!-- The epilogue is a narrative closing -- it's part of the story. -->
|
|
150
|
+
<!-- It should be written in the same voice as the manuscript. -->
|
|
151
|
+
|
|
152
|
+
<!-- Common epilogue approaches: -->
|
|
153
|
+
<!-- - A scene set after the main narrative's conclusion -->
|
|
154
|
+
<!-- - Resolution of a subplot left open in the final chapter -->
|
|
155
|
+
<!-- - A flash-forward showing long-term consequences -->
|
|
156
|
+
<!-- - A return to a framing device established in the prologue -->
|
|
157
|
+
<!-- - A different character's perspective on the events -->
|
|
158
|
+
|
|
159
|
+
<!-- Consider: Does this story need an epilogue? -->
|
|
160
|
+
<!-- Not every work benefits from one. If the final chapter provides -->
|
|
161
|
+
<!-- sufficient closure, an epilogue may weaken the ending. -->
|
|
162
|
+
|
|
163
|
+
[Write your epilogue here]
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
Save to `.manuscript/back-matter/epilogue.md`
|
|
167
|
+
|
|
168
|
+
#### Element 2: Afterword -- SCAFFOLD
|
|
169
|
+
|
|
170
|
+
**Load STYLE-GUIDE.md for voice.**
|
|
171
|
+
|
|
172
|
+
```markdown
|
|
173
|
+
# Afterword
|
|
174
|
+
|
|
175
|
+
<!-- WRITER ACTION REQUIRED -->
|
|
176
|
+
<!-- The afterword is your reflection on the work after it's complete. -->
|
|
177
|
+
|
|
178
|
+
## Suggested Structure
|
|
179
|
+
|
|
180
|
+
1. **The journey** -- how writing this work changed you or your understanding
|
|
181
|
+
2. **Behind the scenes** -- research, inspirations, or process insights readers would enjoy
|
|
182
|
+
3. **What's next** -- if part of a series or ongoing project, what comes next
|
|
183
|
+
4. **An invitation** -- connect with readers (website, newsletter, social media)
|
|
184
|
+
|
|
185
|
+
<!-- Write in your natural voice. Your style profile has been loaded -->
|
|
186
|
+
<!-- to help maintain consistency. -->
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
Save to `.manuscript/back-matter/afterword.md`
|
|
190
|
+
|
|
191
|
+
#### Element 3: Appendix(es) -- TEMPLATE
|
|
192
|
+
|
|
193
|
+
```markdown
|
|
194
|
+
# Appendix [A/B/C...]
|
|
195
|
+
|
|
196
|
+
<!-- TEMPLATE: Structured appendix for supplementary material. -->
|
|
197
|
+
<!-- Create one file per appendix if multiple are needed. -->
|
|
198
|
+
|
|
199
|
+
## [Appendix Title]
|
|
200
|
+
|
|
201
|
+
<!-- Include material that supports the main text but would -->
|
|
202
|
+
<!-- interrupt the narrative flow if placed inline: -->
|
|
203
|
+
<!-- - Technical details, data tables, or methodology notes -->
|
|
204
|
+
<!-- - Historical documents or primary sources -->
|
|
205
|
+
<!-- - Extended examples or case studies -->
|
|
206
|
+
<!-- - Glossary of specialized terms (if separate from main glossary) -->
|
|
207
|
+
<!-- - Maps, charts, or diagrams requiring extended explanation -->
|
|
208
|
+
|
|
209
|
+
[Appendix content here]
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
Save to `.manuscript/back-matter/appendix.md`
|
|
213
|
+
|
|
214
|
+
#### Element 4: Glossary -- GENERATE
|
|
215
|
+
|
|
216
|
+
Extract terms, names, and concepts from the manuscript and CHARACTERS.md. Generate definitions organized alphabetically.
|
|
217
|
+
|
|
218
|
+
Categories to extract:
|
|
219
|
+
- **Character names**: Brief identification (role, key traits)
|
|
220
|
+
- **Place names**: Location description and significance
|
|
221
|
+
- **Invented terms**: Made-up words, languages, technologies, or concepts with definitions
|
|
222
|
+
- **Technical terms**: Domain-specific vocabulary used in the text
|
|
223
|
+
- **Foreign words/phrases**: Translation and context
|
|
224
|
+
|
|
225
|
+
Present as:
|
|
226
|
+
|
|
227
|
+
```markdown
|
|
228
|
+
# Glossary
|
|
229
|
+
|
|
230
|
+
**[Term]** -- [Definition]. [Context of first/primary usage if helpful.]
|
|
231
|
+
|
|
232
|
+
**[Term]** -- [Definition].
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
Sort alphabetically. Exclude common words that need no definition.
|
|
236
|
+
|
|
237
|
+
Save to `.manuscript/back-matter/glossary.md`
|
|
238
|
+
|
|
239
|
+
#### Element 5: Endnotes -- TEMPLATE
|
|
240
|
+
|
|
241
|
+
```markdown
|
|
242
|
+
# Endnotes
|
|
243
|
+
|
|
244
|
+
<!-- TEMPLATE: Numbered endnote structure. -->
|
|
245
|
+
<!-- If the manuscript uses footnotes, they can be collected here -->
|
|
246
|
+
<!-- as endnotes for the published version. -->
|
|
247
|
+
|
|
248
|
+
## [Chapter/Section Title]
|
|
249
|
+
|
|
250
|
+
1. [Endnote text]
|
|
251
|
+
2. [Endnote text]
|
|
252
|
+
|
|
253
|
+
## [Chapter/Section Title]
|
|
254
|
+
|
|
255
|
+
1. [Endnote text]
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
Scan the manuscript for any existing footnote markers and extract them into this structure. If no footnotes exist, skip this element.
|
|
259
|
+
|
|
260
|
+
Save to `.manuscript/back-matter/endnotes.md`
|
|
261
|
+
|
|
262
|
+
#### Element 6: Bibliography / References -- TEMPLATE
|
|
263
|
+
|
|
264
|
+
```markdown
|
|
265
|
+
# Bibliography
|
|
266
|
+
|
|
267
|
+
<!-- TEMPLATE: Bibliographic entry format. -->
|
|
268
|
+
<!-- Format entries according to the style appropriate for this work type: -->
|
|
269
|
+
<!-- - Chicago Manual of Style (most prose) -->
|
|
270
|
+
<!-- - APA (social science, psychology) -->
|
|
271
|
+
<!-- - MLA (humanities, literary criticism) -->
|
|
272
|
+
<!-- - Turabian (general academic) -->
|
|
273
|
+
|
|
274
|
+
## Works Cited
|
|
275
|
+
|
|
276
|
+
[Author Last, First. *Title*. Publisher, Year.]
|
|
277
|
+
|
|
278
|
+
## Works Consulted
|
|
279
|
+
|
|
280
|
+
[Author Last, First. *Title*. Publisher, Year.]
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
If the manuscript references specific works, extract them and format appropriately. Otherwise, provide the template structure.
|
|
284
|
+
|
|
285
|
+
Save to `.manuscript/back-matter/bibliography.md`
|
|
286
|
+
|
|
287
|
+
#### Element 7: Suggested Reading -- GENERATE
|
|
288
|
+
|
|
289
|
+
**Load STYLE-GUIDE.md for tone.**
|
|
290
|
+
|
|
291
|
+
Generate a curated reading list based on the work's themes, influences, and subject matter. Organize by category:
|
|
292
|
+
|
|
293
|
+
```markdown
|
|
294
|
+
# Suggested Reading
|
|
295
|
+
|
|
296
|
+
<!-- Curated recommendations for readers who enjoyed this work. -->
|
|
297
|
+
|
|
298
|
+
## [Theme/Category 1]
|
|
299
|
+
- *[Title]* by [Author] -- [One-sentence description of why it's relevant]
|
|
300
|
+
|
|
301
|
+
## [Theme/Category 2]
|
|
302
|
+
- *[Title]* by [Author] -- [One-sentence description]
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
Include 8-15 recommendations. Focus on well-known, accessible works. Match the tone of the recommendations to the writer's voice per STYLE-GUIDE.md.
|
|
306
|
+
|
|
307
|
+
Save to `.manuscript/back-matter/suggested-reading.md`
|
|
308
|
+
|
|
309
|
+
#### Element 8: Index -- TEMPLATE
|
|
310
|
+
|
|
311
|
+
```markdown
|
|
312
|
+
# Index
|
|
313
|
+
|
|
314
|
+
<!-- Professional indexing is recommended for nonfiction. -->
|
|
315
|
+
<!-- This provides a starting framework with key term extraction. -->
|
|
316
|
+
<!-- A professional indexer will produce a far more comprehensive -->
|
|
317
|
+
<!-- and useful index than automated extraction alone. -->
|
|
318
|
+
|
|
319
|
+
## Key Terms Extracted
|
|
320
|
+
|
|
321
|
+
<!-- The following terms were identified as candidates for indexing. -->
|
|
322
|
+
<!-- This list is a starting point, not a finished index. -->
|
|
323
|
+
|
|
324
|
+
[Term], [page TBD]
|
|
325
|
+
[Term], [page TBD]
|
|
326
|
+
[Subentry], [page TBD]
|
|
327
|
+
|
|
328
|
+
## Indexing Notes
|
|
329
|
+
|
|
330
|
+
- Consider hiring a professional indexer for nonfiction works
|
|
331
|
+
- Index entries should be finalized after page layout is complete
|
|
332
|
+
- Common indexing depth: 3-5 entries per page of text
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
Extract key terms, proper nouns, and concepts from the manuscript as index candidates.
|
|
336
|
+
|
|
337
|
+
Save to `.manuscript/back-matter/index.md`
|
|
338
|
+
|
|
339
|
+
#### Element 9: About the Author -- GENERATE
|
|
340
|
+
|
|
341
|
+
**Load STYLE-GUIDE.md for voice.**
|
|
342
|
+
|
|
343
|
+
Generate from the writer profile if available (check `.manuscript/WORK.md` for author bio or profile information). Write in third person unless the writer profile specifies otherwise.
|
|
344
|
+
|
|
345
|
+
```markdown
|
|
346
|
+
# About the Author
|
|
347
|
+
|
|
348
|
+
[Generated author bio in third person, matching the work's tone.
|
|
349
|
+
Include: credentials relevant to the work, previous publications,
|
|
350
|
+
personal details the author has shared, location, and a human touch.]
|
|
351
|
+
|
|
352
|
+
<!-- DRAFT -- Review and personalize. -->
|
|
353
|
+
<!-- This bio was generated from your project profile. -->
|
|
354
|
+
<!-- Update with current details and your preferred tone. -->
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
If no writer profile information is available, provide a template:
|
|
358
|
+
|
|
359
|
+
```markdown
|
|
360
|
+
# About the Author
|
|
361
|
+
|
|
362
|
+
<!-- WRITER ACTION REQUIRED -->
|
|
363
|
+
<!-- Write your author bio here. Tips: -->
|
|
364
|
+
<!-- - Third person is standard ("Jane Smith is...") -->
|
|
365
|
+
<!-- - Lead with credentials relevant to THIS work -->
|
|
366
|
+
<!-- - Include previous publications if applicable -->
|
|
367
|
+
<!-- - Add a personal detail (location, hobby, family) -->
|
|
368
|
+
<!-- - Keep to 100-200 words for most genres -->
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
Save to `.manuscript/back-matter/about-author.md`
|
|
372
|
+
|
|
373
|
+
#### Element 10: Colophon -- TEMPLATE
|
|
374
|
+
|
|
375
|
+
```markdown
|
|
376
|
+
# Colophon
|
|
377
|
+
|
|
378
|
+
<!-- TEMPLATE: Production details for the published work. -->
|
|
379
|
+
<!-- The colophon describes how the book was made. -->
|
|
380
|
+
|
|
381
|
+
This book was [typeset/designed/produced] using [tools].
|
|
382
|
+
|
|
383
|
+
**Body text:** [Font name], [size]
|
|
384
|
+
**Chapter headings:** [Font name]
|
|
385
|
+
**Design:** [Designer name or "the author"]
|
|
386
|
+
|
|
387
|
+
[Additional production notes -- paper type, printing method, etc.]
|
|
388
|
+
|
|
389
|
+
<!-- Fill in after final design decisions are made. -->
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
Save to `.manuscript/back-matter/colophon.md`
|
|
393
|
+
|
|
394
|
+
#### Element 11: Discussion Questions -- GENERATE
|
|
395
|
+
|
|
396
|
+
**Load STYLE-GUIDE.md for tone.**
|
|
397
|
+
|
|
398
|
+
Generate reading group discussion questions from the work's themes, plot, and character arcs. This element is also available as a standalone command via `/scr:discussion-questions`.
|
|
399
|
+
|
|
400
|
+
Create 10-15 questions organized by type:
|
|
401
|
+
|
|
402
|
+
```markdown
|
|
403
|
+
# Discussion Questions
|
|
404
|
+
|
|
405
|
+
## Characters
|
|
406
|
+
1. [Question about character motivations, growth, or relationships]
|
|
407
|
+
2. [Question about character choices and consequences]
|
|
408
|
+
|
|
409
|
+
## Themes
|
|
410
|
+
3. [Question connecting the work's themes to broader ideas]
|
|
411
|
+
4. [Question about the work's central message or argument]
|
|
412
|
+
|
|
413
|
+
## Craft
|
|
414
|
+
5. [Question about narrative structure, point of view, or style]
|
|
415
|
+
6. [Question about specific scenes or passages that stood out]
|
|
416
|
+
|
|
417
|
+
## Personal Response
|
|
418
|
+
7. [Question inviting readers to connect the work to their own experience]
|
|
419
|
+
8. [Question about what surprised, challenged, or moved the reader]
|
|
420
|
+
|
|
421
|
+
## Going Deeper
|
|
422
|
+
9. [Question connecting to other works, historical events, or current issues]
|
|
423
|
+
10. [Question that invites debate or multiple interpretations]
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
Match the tone and sophistication of questions to the work's target audience.
|
|
427
|
+
|
|
428
|
+
Save to `.manuscript/back-matter/discussion-questions.md`
|
|
429
|
+
|
|
430
|
+
#### Element 12: Permissions / Credits -- TEMPLATE
|
|
431
|
+
|
|
432
|
+
```markdown
|
|
433
|
+
# Permissions and Credits
|
|
434
|
+
|
|
435
|
+
<!-- TEMPLATE: Permissions acknowledgment for quoted or reproduced material. -->
|
|
436
|
+
<!-- Required if the work includes: -->
|
|
437
|
+
<!-- - Extended quotations from copyrighted works -->
|
|
438
|
+
<!-- - Song lyrics, poetry, or other literary excerpts -->
|
|
439
|
+
<!-- - Images, photographs, or artwork by others -->
|
|
440
|
+
<!-- - Maps or charts from external sources -->
|
|
441
|
+
<!-- - Data or tables reproduced from other publications -->
|
|
442
|
+
|
|
443
|
+
## Text Permissions
|
|
444
|
+
|
|
445
|
+
"[Quoted text]" from *[Source Title]* by [Author]. Copyright (c) [Year]
|
|
446
|
+
by [Copyright Holder]. Reprinted with permission of [Publisher/Agent].
|
|
447
|
+
|
|
448
|
+
## Image Credits
|
|
449
|
+
|
|
450
|
+
[Description of image]. Copyright (c) [Year] by [Photographer/Artist].
|
|
451
|
+
Used with permission.
|
|
452
|
+
|
|
453
|
+
## Additional Credits
|
|
454
|
+
|
|
455
|
+
[Any other credits -- cover designer, map illustrator, etc.]
|
|
456
|
+
|
|
457
|
+
<!-- IMPORTANT: Obtain all permissions BEFORE publication. -->
|
|
458
|
+
<!-- Keep copies of permission letters/emails for your records. -->
|
|
459
|
+
```
|
|
460
|
+
|
|
461
|
+
Save to `.manuscript/back-matter/permissions.md`
|
|
462
|
+
|
|
463
|
+
---
|
|
464
|
+
|
|
465
|
+
### ACADEMIC ADAPTATION (behavior: academic_back_matter)
|
|
466
|
+
|
|
467
|
+
When the work type group is `academic`, apply these modifications:
|
|
468
|
+
|
|
469
|
+
1. **Bibliography becomes primary element**: Move to prominent position. Format entries according to the citation style specified in config (APA, MLA, or Chicago). If no style is specified, default to Chicago Author-Date for sciences or Chicago Notes-Bibliography for humanities.
|
|
470
|
+
|
|
471
|
+
2. **Add Methodology Appendix template**: Include a structured appendix specifically for research methodology:
|
|
472
|
+
```markdown
|
|
473
|
+
# Appendix: Methodology
|
|
474
|
+
|
|
475
|
+
## Research Design
|
|
476
|
+
## Data Collection
|
|
477
|
+
## Analysis Methods
|
|
478
|
+
## Limitations
|
|
479
|
+
## Ethics Approval
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
3. **Index gets enhanced term extraction**: Extract from manuscript with emphasis on technical terms, named theories, methodologies, key findings, and author citations.
|
|
483
|
+
|
|
484
|
+
4. **Epilogue and Afterword are skipped**: Not standard in academic works.
|
|
485
|
+
|
|
486
|
+
5. **Discussion Questions become Study Questions**: Reframe for academic context -- seminar discussion, exam preparation, research extension questions.
|
|
487
|
+
|
|
488
|
+
6. **Suggested Reading becomes Further Reading**: Academic tone, organized by subtopic, includes seminal works and recent contributions.
|
|
489
|
+
|
|
490
|
+
---
|
|
491
|
+
|
|
492
|
+
### SACRED ADAPTATION (behavior: sacred_back_matter)
|
|
493
|
+
|
|
494
|
+
When the work type group is `sacred`, apply the following modifications to the standard 12 elements AND add the sacred-specific elements below.
|
|
495
|
+
|
|
496
|
+
**Standard sacred modifications:**
|
|
497
|
+
|
|
498
|
+
1. **Glossary emphasizes theological/tradition terms**: Prioritize tradition-specific terminology, with attention to original language terms (Hebrew, Greek, Arabic, Sanskrit, Pali) and their nuanced meanings within the tradition.
|
|
499
|
+
|
|
500
|
+
2. **Discussion Questions become Study Questions**: Reframe for devotional or scholarly study groups, including textual analysis, theological reflection, and practical application questions.
|
|
501
|
+
|
|
502
|
+
## Sacred/Historical Back Matter
|
|
503
|
+
|
|
504
|
+
When the work type group is `sacred`, the `--element` flag accepts these additional elements beyond the standard 12:
|
|
505
|
+
|
|
506
|
+
| Element | Flag Name | Type | Description |
|
|
507
|
+
|---------|-----------|------|-------------|
|
|
508
|
+
| Concordance | `concordance` | GENERATE | Reference to CONCORDANCE.md (generated by `/scr:sacred:concordance`). If CONCORDANCE.md exists, include it as an appendix. If not, suggest running `/scr:sacred:concordance` first and provide a scaffold structure for manual creation. |
|
|
509
|
+
| Scripture Index | `scripture-index` | GENERATE | Index of all scripture references appearing in the work, extracted from CROSS-REFERENCES.md. Organized by book/surah/sutta with passage references. |
|
|
510
|
+
| Sacred Maps | `sacred-maps` | SCAFFOLD | Maps derived from COSMOLOGY.md geographic data. Include as an appendix with reference to illustration prompts. Suggest running `/scr:map-illustration` for visual generation. |
|
|
511
|
+
| Theological Glossary | `theological-glossary` | GENERATE | Glossary of theological and sacred terms used in the work, with definitions that include original language terms (Hebrew, Greek, Arabic, Sanskrit, Pali) and tradition-specific nuances. Distinct from the standard glossary in its focus on doctrinal and sacred vocabulary. |
|
|
512
|
+
| Chronology Appendix | `chronology-appendix` | GENERATE | Timeline from CHRONOLOGY.md. If CHRONOLOGY.md exists, format as a chronological table. If not, suggest running `/scr:sacred:chronology` first. |
|
|
513
|
+
| Doctrinal Index | `doctrinal-index` | GENERATE | Index of doctrinal topics covered in the work, extracted from DOCTRINES.md. Organized by doctrine with passage references where each doctrine is addressed. |
|
|
514
|
+
| Source Bibliography | `source-bibliography` | TEMPLATE | Bibliography of primary sacred sources referenced in the work, extracted from SOURCES.md. Includes manuscripts, codices, critical editions, and commentaries consulted. |
|
|
515
|
+
| Tradition Acknowledgments | `tradition-acknowledgments` | SCAFFOLD | Acknowledgment of traditions, lineages, teachers, and communities referenced or drawn upon. Includes appropriate gratitude formulas for the tradition (e.g., "sallallahu alayhi wa sallam" for Islamic texts when mentioning the Prophet). |
|
|
516
|
+
|
|
517
|
+
**Sacred back matter element details:**
|
|
518
|
+
|
|
519
|
+
### Concordance
|
|
520
|
+
```markdown
|
|
521
|
+
# Concordance
|
|
522
|
+
|
|
523
|
+
<!-- If CONCORDANCE.md exists, its content is included here. -->
|
|
524
|
+
<!-- If not, run /scr:sacred:concordance to generate one from the manuscript. -->
|
|
525
|
+
|
|
526
|
+
<!-- A concordance lists key words and concepts with every -->
|
|
527
|
+
<!-- passage reference where they appear. -->
|
|
528
|
+
|
|
529
|
+
**[Term]**: [passage ref 1], [passage ref 2], [passage ref 3]
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
### Scripture Index
|
|
533
|
+
```markdown
|
|
534
|
+
# Scripture Index
|
|
535
|
+
|
|
536
|
+
<!-- Cross-references to other scriptures cited in this work. -->
|
|
537
|
+
<!-- Generated from CROSS-REFERENCES.md if available. -->
|
|
538
|
+
|
|
539
|
+
## [Book/Surah/Sutta Name]
|
|
540
|
+
- [Chapter:Verse] -- referenced in [location in this work]
|
|
541
|
+
```
|
|
542
|
+
|
|
543
|
+
### Sacred Maps
|
|
544
|
+
```markdown
|
|
545
|
+
# Maps
|
|
546
|
+
|
|
547
|
+
<!-- Suggested maps for this work based on geographic references -->
|
|
548
|
+
<!-- in COSMOLOGY.md: -->
|
|
549
|
+
- [Location 1] -- referenced in [passages]
|
|
550
|
+
- [Location 2] -- referenced in [passages]
|
|
551
|
+
|
|
552
|
+
<!-- Generate map illustrations: /scr:map-illustration -->
|
|
553
|
+
<!-- Commission from a cartographer familiar with the tradition. -->
|
|
554
|
+
```
|
|
555
|
+
|
|
556
|
+
### Chronological Tables
|
|
557
|
+
```markdown
|
|
558
|
+
# Chronological Tables
|
|
559
|
+
|
|
560
|
+
| Period | Dates | Key Events | References |
|
|
561
|
+
|--------|-------|------------|------------|
|
|
562
|
+
```
|
|
563
|
+
|
|
564
|
+
When `--all` is used for sacred works, include these sacred-specific elements alongside the standard 12+ back matter elements. Save each to `.manuscript/back-matter/{element-name}.md`.
|
|
565
|
+
|
|
566
|
+
---
|
|
567
|
+
|
|
568
|
+
### STEP 4: SKIPPED ELEMENTS REPORT
|
|
569
|
+
|
|
570
|
+
When running without `--element`, after generating all eligible elements, list any elements that were skipped along with the resolved level:
|
|
571
|
+
|
|
572
|
+
```markdown
|
|
573
|
+
## Back Matter Summary
|
|
574
|
+
|
|
575
|
+
Level: [minimum | balanced | maximum]
|
|
576
|
+
|
|
577
|
+
## Skipped Elements
|
|
578
|
+
|
|
579
|
+
The following back matter elements were not generated for this work:
|
|
580
|
+
|
|
581
|
+
- **[Element name]**: [Reason -- e.g., "Not in level: balanced", "No footnotes found in manuscript", "Not applicable to fiction", "Academic adaptation: epilogue not standard"]
|
|
582
|
+
```
|
|
583
|
+
|
|
584
|
+
When the reason is the level filter, use the form **"Not in level: \<resolved-level\>"** so the writer can see what re-running with `--level maximum` would add.
|
|
585
|
+
|
|
586
|
+
Append this report to the final output displayed to the writer.
|
|
587
|
+
|
|
588
|
+
---
|
|
589
|
+
|
|
590
|
+
### STEP 5: HISTORY LOG
|
|
591
|
+
|
|
592
|
+
Append one line to `.manuscript/HISTORY.log` per `docs/history-protocol.md`:
|
|
593
|
+
|
|
594
|
+
```
|
|
595
|
+
{ISO timestamp} | scr:back-matter | level={resolved level or "skip" or "single-element"} | elements={count generated} | outcome=ok
|
|
596
|
+
```
|
|
597
|
+
|
|
598
|
+
If the writer chose `skip` in the interactive prompt, log `level=skip | elements=0 | outcome=skipped` -- the skip is itself a state event worth recording. If `--element <name>` was used, log `level=single-element | elements=1 | element={name} | outcome=ok`. Create HISTORY.log if it does not exist.
|
|
599
|
+
|
|
600
|
+
---
|
|
601
|
+
|
|
602
|
+
### OUTPUT
|
|
603
|
+
|
|
604
|
+
- Individual element files saved to `.manuscript/back-matter/{element-name}.md`
|
|
605
|
+
- Summary displayed to the writer listing all generated elements with file paths
|
|
606
|
+
- Skipped elements listed with explanations
|
|
607
|
+
- Any SCAFFOLD or TEMPLATE elements highlighted as requiring writer action
|
|
608
|
+
|
|
609
|
+
## Response Contract
|
|
610
|
+
|
|
611
|
+
Every writer-facing response must end with one to four next-command suggestions. Each suggestion must include a short explanation of what that path will do.
|
|
612
|
+
|
|
613
|
+
Use this format:
|
|
614
|
+
|
|
615
|
+
```markdown
|
|
616
|
+
Next commands:
|
|
617
|
+
- `/scr:...`: One short sentence explaining what this path will do.
|
|
618
|
+
- `/scr:...`: One short sentence explaining what this alternate path will do.
|
|
619
|
+
```
|
|
620
|
+
|
|
621
|
+
If exactly one path is clearly best, provide one suggestion. If two, three, or four useful paths exist, show them as alternatives. Do not force a linear path when the writer has a real choice.
|
|
622
|
+
|
|
623
|
+
If the writer seems unsure or no specific next command is obvious, include this default option:
|
|
624
|
+
|
|
625
|
+
```markdown
|
|
626
|
+
Next commands:
|
|
627
|
+
- `/scr:next`: Inspect the project state and choose the right next step.
|
|
628
|
+
```
|
|
629
|
+
|
|
630
|
+
If the command stops because a prerequisite is missing, suggest the command that fixes the prerequisite. Keep every explanation practical and writer-facing.
|