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.
Files changed (239) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +222 -0
  3. package/agents/continuity-checker.md +85 -0
  4. package/agents/drafter.md +248 -0
  5. package/agents/plan-checker.md +209 -0
  6. package/agents/researcher.md +114 -0
  7. package/agents/translator.md +204 -0
  8. package/agents/voice-checker.md +154 -0
  9. package/bin/install.js +1620 -0
  10. package/commands/scr/add-note.md +51 -0
  11. package/commands/scr/add-unit.md +101 -0
  12. package/commands/scr/art-direction.md +225 -0
  13. package/commands/scr/autopilot-publish.md +210 -0
  14. package/commands/scr/autopilot-translate.md +237 -0
  15. package/commands/scr/autopilot.md +200 -0
  16. package/commands/scr/back-matter.md +630 -0
  17. package/commands/scr/back-translate.md +197 -0
  18. package/commands/scr/beta-reader.md +97 -0
  19. package/commands/scr/blurb.md +149 -0
  20. package/commands/scr/book-proposal.md +210 -0
  21. package/commands/scr/build-ebook.md +448 -0
  22. package/commands/scr/build-poetry-submission.md +202 -0
  23. package/commands/scr/build-print.md +598 -0
  24. package/commands/scr/build-smashwords.md +171 -0
  25. package/commands/scr/build-world.md +158 -0
  26. package/commands/scr/cast-list.md +104 -0
  27. package/commands/scr/chapter-header.md +158 -0
  28. package/commands/scr/character-arc.md +108 -0
  29. package/commands/scr/character-ref.md +160 -0
  30. package/commands/scr/character-sheet.md +143 -0
  31. package/commands/scr/character-touch.md +157 -0
  32. package/commands/scr/character-voice-sample.md +111 -0
  33. package/commands/scr/check-notes.md +50 -0
  34. package/commands/scr/cleanup.md +159 -0
  35. package/commands/scr/compare.md +112 -0
  36. package/commands/scr/complete-draft.md +49 -0
  37. package/commands/scr/continuity-check.md +129 -0
  38. package/commands/scr/copy-edit.md +118 -0
  39. package/commands/scr/cover-art.md +382 -0
  40. package/commands/scr/cultural-adaptation.md +177 -0
  41. package/commands/scr/demo.md +93 -0
  42. package/commands/scr/dialogue-audit.md +143 -0
  43. package/commands/scr/discuss.md +118 -0
  44. package/commands/scr/discussion-questions.md +129 -0
  45. package/commands/scr/do.md +68 -0
  46. package/commands/scr/draft.md +97 -0
  47. package/commands/scr/editor-review.md +466 -0
  48. package/commands/scr/export.md +942 -0
  49. package/commands/scr/fast.md +65 -0
  50. package/commands/scr/front-matter.md +696 -0
  51. package/commands/scr/health.md +113 -0
  52. package/commands/scr/help.md +121 -0
  53. package/commands/scr/history.md +92 -0
  54. package/commands/scr/illustrate-scene.md +211 -0
  55. package/commands/scr/import.md +95 -0
  56. package/commands/scr/insert-unit.md +108 -0
  57. package/commands/scr/line-edit.md +146 -0
  58. package/commands/scr/manager.md +77 -0
  59. package/commands/scr/manuscript-stats.md +139 -0
  60. package/commands/scr/map-illustration.md +213 -0
  61. package/commands/scr/map-manuscript.md +134 -0
  62. package/commands/scr/merge-units.md +136 -0
  63. package/commands/scr/multi-publish.md +344 -0
  64. package/commands/scr/new-character.md +167 -0
  65. package/commands/scr/new-revision.md +50 -0
  66. package/commands/scr/new-work.md +148 -0
  67. package/commands/scr/next.md +125 -0
  68. package/commands/scr/originality-check.md +170 -0
  69. package/commands/scr/outline.md +131 -0
  70. package/commands/scr/pacing-analysis.md +170 -0
  71. package/commands/scr/panel-layout.md +225 -0
  72. package/commands/scr/pause-work.md +88 -0
  73. package/commands/scr/plan.md +112 -0
  74. package/commands/scr/plant-seed.md +57 -0
  75. package/commands/scr/plot-graph.md +199 -0
  76. package/commands/scr/polish.md +141 -0
  77. package/commands/scr/profile-writer.md +154 -0
  78. package/commands/scr/progress.md +51 -0
  79. package/commands/scr/publish.md +455 -0
  80. package/commands/scr/query-letter.md +183 -0
  81. package/commands/scr/quick-write.md +82 -0
  82. package/commands/scr/relationship-map.md +129 -0
  83. package/commands/scr/remove-unit.md +120 -0
  84. package/commands/scr/reorder-units.md +126 -0
  85. package/commands/scr/resume-work.md +97 -0
  86. package/commands/scr/sacred/annotation-layer.md +105 -0
  87. package/commands/scr/sacred/chronology.md +121 -0
  88. package/commands/scr/sacred/concordance.md +88 -0
  89. package/commands/scr/sacred/cross-reference.md +97 -0
  90. package/commands/scr/sacred/doctrinal-check.md +129 -0
  91. package/commands/scr/sacred/genealogy.md +107 -0
  92. package/commands/scr/sacred/source-tracking.md +101 -0
  93. package/commands/scr/sacred/verse-numbering.md +103 -0
  94. package/commands/scr/sacred-numbering-format.md +103 -0
  95. package/commands/scr/save.md +109 -0
  96. package/commands/scr/scan.md +291 -0
  97. package/commands/scr/sensitivity-review.md +169 -0
  98. package/commands/scr/series-bible.md +127 -0
  99. package/commands/scr/session-report.md +80 -0
  100. package/commands/scr/settings.md +58 -0
  101. package/commands/scr/split-unit.md +123 -0
  102. package/commands/scr/spread-layout.md +187 -0
  103. package/commands/scr/storyboard.md +262 -0
  104. package/commands/scr/subject-touch.md +168 -0
  105. package/commands/scr/submit.md +50 -0
  106. package/commands/scr/subplot-map.md +147 -0
  107. package/commands/scr/sync.md +116 -0
  108. package/commands/scr/synopsis.md +137 -0
  109. package/commands/scr/theme-tracker.md +128 -0
  110. package/commands/scr/thread.md +83 -0
  111. package/commands/scr/timeline.md +141 -0
  112. package/commands/scr/track.md +564 -0
  113. package/commands/scr/translate.md +260 -0
  114. package/commands/scr/translation-glossary.md +298 -0
  115. package/commands/scr/translation-memory.md +310 -0
  116. package/commands/scr/troubleshoot.md +59 -0
  117. package/commands/scr/undo.md +106 -0
  118. package/commands/scr/validate.md +133 -0
  119. package/commands/scr/versions.md +94 -0
  120. package/commands/scr/voice-check.md +133 -0
  121. package/commands/scr/voice-test.md +68 -0
  122. package/data/CONSTRAINTS.json +1606 -0
  123. package/data/demo/.manuscript/BRIEF.md +37 -0
  124. package/data/demo/.manuscript/CHARACTERS.md +90 -0
  125. package/data/demo/.manuscript/OUTLINE.md +46 -0
  126. package/data/demo/.manuscript/PLOT-GRAPH.md +75 -0
  127. package/data/demo/.manuscript/STATE.md +44 -0
  128. package/data/demo/.manuscript/STYLE-GUIDE.md +119 -0
  129. package/data/demo/.manuscript/THEMES.md +51 -0
  130. package/data/demo/.manuscript/WORK.md +51 -0
  131. package/data/demo/.manuscript/config.json +59 -0
  132. package/data/demo/.manuscript/drafts/body/1-the-letter-DRAFT.md +51 -0
  133. package/data/demo/.manuscript/drafts/body/2-the-workshop-DRAFT.md +51 -0
  134. package/data/demo/.manuscript/drafts/body/3-the-pier-DRAFT.md +45 -0
  135. package/data/demo/.manuscript/drafts/body/4-the-clock-DRAFT.md +59 -0
  136. package/data/demo/.manuscript/plans/5-the-reunion-PLAN.md +52 -0
  137. package/data/demo/.manuscript/reviews/2-the-workshop-REVIEW.md +61 -0
  138. package/data/export-templates/scriveno-academic.latex +184 -0
  139. package/data/export-templates/scriveno-acm.latex +67 -0
  140. package/data/export-templates/scriveno-apa7.latex +83 -0
  141. package/data/export-templates/scriveno-book.typst +175 -0
  142. package/data/export-templates/scriveno-chapbook.typst +121 -0
  143. package/data/export-templates/scriveno-elsevier.latex +76 -0
  144. package/data/export-templates/scriveno-epub.css +386 -0
  145. package/data/export-templates/scriveno-fixed-layout-epub.css +76 -0
  146. package/data/export-templates/scriveno-fixed-layout.opf +23 -0
  147. package/data/export-templates/scriveno-ieee.latex +77 -0
  148. package/data/export-templates/scriveno-lncs.latex +79 -0
  149. package/data/export-templates/scriveno-picturebook.typst +113 -0
  150. package/data/export-templates/scriveno-poetry-submission-styles.md +45 -0
  151. package/data/export-templates/scriveno-poetry-submission.docx +0 -0
  152. package/data/export-templates/scriveno-smashwords-styles.md +45 -0
  153. package/data/export-templates/scriveno-smashwords.docx +0 -0
  154. package/data/export-templates/scriveno-stageplay.typst +129 -0
  155. package/data/proof/creative-context/README.md +79 -0
  156. package/data/proof/voice-dna/GUIDED-SAMPLE.md +19 -0
  157. package/data/proof/voice-dna/README.md +45 -0
  158. package/data/proof/voice-dna/STYLE-GUIDE-EXCERPT.md +43 -0
  159. package/data/proof/voice-dna/UNGUIDED-SAMPLE.md +11 -0
  160. package/data/proof/watchmaker-flow/README.md +78 -0
  161. package/docs/architecture.md +425 -0
  162. package/docs/command-reference.md +2384 -0
  163. package/docs/configuration.md +228 -0
  164. package/docs/context-protocol.md +81 -0
  165. package/docs/contributing.md +430 -0
  166. package/docs/creative-context.md +158 -0
  167. package/docs/development.md +152 -0
  168. package/docs/drafter-quality.md +127 -0
  169. package/docs/getting-started.md +198 -0
  170. package/docs/history-protocol.md +96 -0
  171. package/docs/proof-artifacts.md +56 -0
  172. package/docs/publishing.md +296 -0
  173. package/docs/release-notes.md +457 -0
  174. package/docs/runtime-support.md +77 -0
  175. package/docs/sacred-texts.md +296 -0
  176. package/docs/shipped-assets.md +129 -0
  177. package/docs/testing.md +156 -0
  178. package/docs/translation.md +343 -0
  179. package/docs/voice-dna.md +297 -0
  180. package/docs/work-types.md +339 -0
  181. package/lib/architectural-profiles.js +134 -0
  182. package/package.json +54 -0
  183. package/templates/BRIEF.md +51 -0
  184. package/templates/CHARACTERS.md +64 -0
  185. package/templates/CONTEXT.md +56 -0
  186. package/templates/OUTLINE.md +36 -0
  187. package/templates/RECORD.md +68 -0
  188. package/templates/STATE.md +50 -0
  189. package/templates/STYLE-GUIDE.md +121 -0
  190. package/templates/THEMES.md +36 -0
  191. package/templates/WORK.md +67 -0
  192. package/templates/WORLD.md +62 -0
  193. package/templates/WRITING-RULES.md +156 -0
  194. package/templates/academic/ARGUMENT-MAP.md +40 -0
  195. package/templates/academic/CONCEPTS.md +34 -0
  196. package/templates/academic/CONTEXT.md +29 -0
  197. package/templates/academic/PROPOSAL.md +37 -0
  198. package/templates/academic/QUESTIONS.md +24 -0
  199. package/templates/config.json +72 -0
  200. package/templates/pitfalls/comic.md +54 -0
  201. package/templates/pitfalls/commentary.md +62 -0
  202. package/templates/pitfalls/memoir.md +48 -0
  203. package/templates/pitfalls/novel.md +53 -0
  204. package/templates/pitfalls/poetry_collection.md +63 -0
  205. package/templates/pitfalls/research_paper.md +66 -0
  206. package/templates/pitfalls/runbook.md +64 -0
  207. package/templates/pitfalls/screenplay.md +54 -0
  208. package/templates/platforms/README.md +16 -0
  209. package/templates/platforms/apple/manifest.yaml +20 -0
  210. package/templates/platforms/bn/manifest.yaml +20 -0
  211. package/templates/platforms/d2d/manifest.yaml +20 -0
  212. package/templates/platforms/google/manifest.yaml +20 -0
  213. package/templates/platforms/ingram/manifest.yaml +44 -0
  214. package/templates/platforms/kdp/manifest.yaml +42 -0
  215. package/templates/platforms/kobo/manifest.yaml +20 -0
  216. package/templates/platforms/smashwords/manifest.yaml +26 -0
  217. package/templates/sacred/COSMOLOGY.md +88 -0
  218. package/templates/sacred/DOCTRINES.md +45 -0
  219. package/templates/sacred/FIGURES.md +69 -0
  220. package/templates/sacred/FRAMEWORK.md +98 -0
  221. package/templates/sacred/LINEAGES.md +52 -0
  222. package/templates/sacred/README.md +20 -0
  223. package/templates/sacred/THEOLOGICAL-ARC.md +69 -0
  224. package/templates/sacred/catholic/manifest.yaml +93 -0
  225. package/templates/sacred/islamic-hafs/manifest.yaml +134 -0
  226. package/templates/sacred/islamic-warsh/manifest.yaml +134 -0
  227. package/templates/sacred/jewish/manifest.yaml +56 -0
  228. package/templates/sacred/orthodox/manifest.yaml +98 -0
  229. package/templates/sacred/pali/manifest.yaml +20 -0
  230. package/templates/sacred/protestant/manifest.yaml +86 -0
  231. package/templates/sacred/sanskrit/manifest.yaml +20 -0
  232. package/templates/sacred/tewahedo/manifest.yaml +106 -0
  233. package/templates/sacred/tibetan/manifest.yaml +20 -0
  234. package/templates/technical/AUDIENCE.md +26 -0
  235. package/templates/technical/DEPENDENCIES.md +19 -0
  236. package/templates/technical/DOC-BRIEF.md +45 -0
  237. package/templates/technical/PROCEDURES.md +37 -0
  238. package/templates/technical/REFERENCES.md +36 -0
  239. package/templates/technical/SYSTEM.md +25 -0
@@ -0,0 +1,121 @@
1
+ ---
2
+ description: Timeline management with era-appropriate dating systems. Handles overlapping calendars and disputed dates.
3
+ argument-hint: "[--calendar <system>] [--verify] [--range <start>-<end>]"
4
+ ---
5
+
6
+ # Chronology
7
+
8
+ You manage the sacred/historical text's timeline using appropriate dating systems. Replaces the standard `/scr:timeline` command for sacred work types.
9
+
10
+ ## Availability
11
+
12
+ Sacred work types. Works without drafted content (can be populated from OUTLINE.md alone).
13
+
14
+ ## Calendar systems supported
15
+
16
+ - **gregorian** -- Standard CE/BCE
17
+ - **hebrew** -- Anno Mundi (AM)
18
+ - **hijri** -- Anno Hegirae (AH)
19
+ - **vikram_samvat** -- Hindu calendar
20
+ - **buddhist_era** -- BE
21
+ - **regnal** -- "In the 14th year of King X"
22
+ - **multiple** -- Show all systems side by side
23
+
24
+ Default is whatever is set in config.json's top-level `calendar_system`. For older projects only, if top-level `calendar_system` is absent and `sacred.calendar_system` exists, use that legacy fallback. The `--calendar` flag overrides temporarily.
25
+
26
+ ## What to do
27
+
28
+ ### No arguments
29
+
30
+ Build a timeline from:
31
+ 1. OUTLINE.md (planned structure)
32
+ 2. Drafted units (extract date references)
33
+ 3. CHRONOLOGY.md (existing canonical dates)
34
+ 4. LINEAGES.md (for regnal dating, use king lists)
35
+
36
+ For each event, record:
37
+ - Event description
38
+ - Primary date in configured calendar system
39
+ - Cross-reference to other calendar systems if `multiple` is set
40
+ - Source (which unit/passage)
41
+ - Confidence (high if explicitly dated, medium if calculated, low if inferred)
42
+
43
+ Save to `.manuscript/CHRONOLOGY.md`:
44
+
45
+ ```markdown
46
+ ## Timeline (Anno Hegirae)
47
+
48
+ **Year 1 AH** -- Hijrah to Medina [Surah 9:40 reference]
49
+ **Year 2 AH** -- Change of qibla [Surah 2:142-144]
50
+ **Year 2 AH** -- Battle of Badr [Surah 3:123, 8:17]
51
+ **Year 3 AH** -- Battle of Uhud [Surah 3:121-155]
52
+ ...
53
+ ```
54
+
55
+ For traditions with disputed dates, show the range:
56
+
57
+ ```markdown
58
+ **c. 2000-1800 BCE** -- Abraham's migration (range reflects scholarly uncertainty)
59
+ ```
60
+
61
+ ### --verify
62
+
63
+ Cross-check chronological claims across drafted units. Flag:
64
+ - Events in wrong order relative to established dates
65
+ - Ages that don't match the timeline (e.g., character described as elderly when timeline says they're 30)
66
+ - Regnal year references that contradict the king list
67
+ - "Years later" phrases that don't match the established gap
68
+ - Seasonal references that don't match the lunar calendar if applicable
69
+
70
+ ### --range <start>-<end>
71
+
72
+ Show only events within a specific date range. Useful when drafting a section set in a particular period.
73
+
74
+ ### --calendar <system>
75
+
76
+ Switch to a different calendar system for display. Dates are stored internally in a neutral format and rendered in the requested system.
77
+
78
+ ## Integration
79
+
80
+ - Drafter agents use this file to avoid anachronisms
81
+ - Continuity-checker cross-references this when verifying drafts
82
+ - `/scr:sacred:cross-reference` uses chronology to identify prophecy/fulfillment pairs
83
+ - `/scr:sacred:source-tracking` uses it to align primary sources with the narrative timeline
84
+
85
+ ## Handling disputes
86
+
87
+ Sacred chronologies often have disputes (Egyptian vs. biblical chronology, early vs. late dating of events, regnal year overlap between co-regents). Record the dispute in a note:
88
+
89
+ ```markdown
90
+ **Year X** -- Event
91
+ > Note: Disputed. Traditional dating is Year X. Critical scholarship suggests Year Y. This project follows the traditional dating per FRAMEWORK.md stance.
92
+ ```
93
+
94
+ Don't hide disputes -- surface them and let the writer decide which to follow.
95
+
96
+ ## Response Contract
97
+
98
+ 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.
99
+
100
+ Use this format:
101
+
102
+ ```markdown
103
+ Next commands:
104
+ - `/scr:...`: One short sentence explaining what this path will do.
105
+ - `/scr:...`: One short sentence explaining what this alternate path will do.
106
+ ```
107
+
108
+ 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.
109
+
110
+ If the writer seems unsure or no specific next command is obvious, include this default option:
111
+
112
+ ```markdown
113
+ Next commands:
114
+ - `/scr:next`: Inspect the project state and choose the right next step.
115
+ ```
116
+
117
+ If the command stops because a prerequisite is missing, suggest the command that fixes the prerequisite. Keep every explanation practical and writer-facing.
118
+
119
+ ## Tone
120
+
121
+ Historical-clerical. You're compiling a chronological reference, not telling a story. Precision, citations, and humility about uncertainty.
@@ -0,0 +1,88 @@
1
+ ---
2
+ description: Build or search a concordance of key terms, names, and phrases across the sacred text. Essential for cross-referencing and intertextual study.
3
+ argument-hint: "[--build] [--search <term>] [--tradition <tradition>]"
4
+ ---
5
+
6
+ # Concordance
7
+
8
+ You are building or querying a concordance. A concordance tracks every occurrence of significant terms, names, and phrases across the sacred/historical text, enabling cross-reference, pattern detection, and intertextual study.
9
+
10
+ ## Availability
11
+
12
+ This command is only available when `config.json` has a work type in the `sacred` group. Check CONSTRAINTS.json. If the work type is not sacred, return: "The concordance command is designed for sacred and historical texts. Your {work_type} doesn't use concordances."
13
+
14
+ ## Prerequisites
15
+
16
+ At least one drafted unit must exist. If nothing is drafted yet, offer to run `/scr:next` first.
17
+
18
+ ## What to do
19
+
20
+ ### --build (or no args if no concordance exists)
21
+
22
+ Scan all drafted units. For each unit, extract:
23
+
24
+ 1. **Proper nouns** -- Names of figures, places, peoples, objects with proper names. Link each to FIGURES.md and COSMOLOGY.md.
25
+ 2. **Significant terms** -- Theologically loaded words (covenant, righteousness, salvation, dharma, jihad, nirvana, torah, sunnah, etc.). The writer configures which terms are "significant" via interactive selection if this is the first run.
26
+ 3. **Divine names** -- All names, titles, and epithets for the divine in all forms they appear.
27
+ 4. **Recurring phrases** -- Phrases that appear 3+ times across the text (likely formulaic or thematically weighted).
28
+ 5. **Quoted material** -- Passages that quote or allude to other canonical sources.
29
+
30
+ Save the concordance to `.manuscript/CONCORDANCE.md` with entries like:
31
+
32
+ ```markdown
33
+ ## Covenant
34
+ - Genesis 9:9 (Noah)
35
+ - Genesis 15:18 (Abraham)
36
+ - Exodus 19:5 (Sinai)
37
+ - 2 Samuel 7:12 (David)
38
+ - Jeremiah 31:31 (new covenant prophecy)
39
+ - ...
40
+
41
+ ## Elijah
42
+ - 1 Kings 17:1 (first appearance)
43
+ - 1 Kings 18:36 (Mount Carmel)
44
+ - 2 Kings 2:11 (translation)
45
+ - Malachi 4:5 (prophesied return)
46
+ - ...
47
+ ```
48
+
49
+ Update whenever new units are drafted. The concordance is always regenerable from scratch.
50
+
51
+ ### --search <term>
52
+
53
+ Query the existing concordance for occurrences of a term. Show every reference with a 1-line context snippet. Useful for the writer verifying consistency ("where else have I used 'righteousness'? does this usage match?") or for catching repetitive phrasing.
54
+
55
+ ### --tradition <tradition>
56
+
57
+ Filter the concordance to only terms from a specific tradition. Useful for interfaith work or comparative study where multiple traditions are referenced.
58
+
59
+ ## Cross-reference integration
60
+
61
+ The concordance feeds `/scr:sacred:cross-reference`. Entries here are used as lookup keys for finding intertextual connections. Keep them in sync.
62
+
63
+ ## Response Contract
64
+
65
+ 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.
66
+
67
+ Use this format:
68
+
69
+ ```markdown
70
+ Next commands:
71
+ - `/scr:...`: One short sentence explaining what this path will do.
72
+ - `/scr:...`: One short sentence explaining what this alternate path will do.
73
+ ```
74
+
75
+ 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.
76
+
77
+ If the writer seems unsure or no specific next command is obvious, include this default option:
78
+
79
+ ```markdown
80
+ Next commands:
81
+ - `/scr:next`: Inspect the project state and choose the right next step.
82
+ ```
83
+
84
+ If the command stops because a prerequisite is missing, suggest the command that fixes the prerequisite. Keep every explanation practical and writer-facing.
85
+
86
+ ## Tone
87
+
88
+ Librarian-precise. This is reference work -- the writer needs accurate counts and accurate references, not commentary on significance.
@@ -0,0 +1,97 @@
1
+ ---
2
+ description: Map connections between passages -- parallel accounts, prophetic fulfillments, intertextual echoes, typological links.
3
+ argument-hint: "[--passage <ref>] [--type <parallel|fulfillment|echo|typology>]"
4
+ ---
5
+
6
+ # Cross-reference
7
+
8
+ You map the connections between passages that reference, fulfill, echo, or prefigure each other. Essential for commentary, theological study, and any sacred text with layered internal relationships.
9
+
10
+ ## Availability
11
+
12
+ Sacred work types only. Requires `CONCORDANCE.md` (run `/scr:sacred:concordance --build` first if it doesn't exist).
13
+
14
+ ## What to do
15
+
16
+ ### If no arguments
17
+
18
+ Build the full cross-reference network across all drafted units. For each significant passage, identify:
19
+
20
+ 1. **Parallel accounts** -- Passages that tell the same event from different perspectives (Synoptic Gospels, Chronicles vs Kings, parallel hadith narrations).
21
+ 2. **Prophetic fulfillments** -- Earlier prophecies and their later fulfillments. Link forward and backward.
22
+ 3. **Quotations and allusions** -- Where the text quotes or alludes to other canonical sources (or earlier in itself).
23
+ 4. **Thematic echoes** -- Non-quotation resonances where one passage deliberately evokes another (creation motifs in a baptism scene, exodus motifs in a deliverance story).
24
+ 5. **Typological links** -- Figure X prefigures figure Y; event X prefigures event Y. Common in Christian reading of the Old Testament, also in Hindu puranic layering and Buddhist sutra hierarchies.
25
+
26
+ Save to `.manuscript/CROSS-REFERENCES.md` with entries like:
27
+
28
+ ```markdown
29
+ ## Genesis 1:1-2 (creation)
30
+ **Parallels:** Psalm 33:6, John 1:1-3
31
+ **Echoes:** Genesis 8:1 (new creation after flood), Exodus 14:21 (wind over waters at Red Sea)
32
+ **Typology:** Points forward to new creation (Isaiah 65:17, Revelation 21:1)
33
+
34
+ ## Exodus 12 (passover)
35
+ **Parallels:** Numbers 9:1-14 (second passover)
36
+ **Fulfillment:** 1 Corinthians 5:7 (Christ as passover lamb)
37
+ **Typology:** The lamb's blood prefigures sacrificial atonement throughout Leviticus
38
+ ```
39
+
40
+ ### --passage <reference>
41
+
42
+ Show all cross-references for a specific passage. Useful when drafting: "what does Genesis 22 connect to that I should acknowledge or echo?"
43
+
44
+ ### --map
45
+
46
+ Generate a visual cross-reference map showing connection density across units. Output as a text-based adjacency matrix or network diagram showing which units connect to which others and how densely. Save to `.manuscript/CROSS-REFERENCE-MAP.md`. Useful for seeing structural patterns -- e.g., a heavily cross-referenced passage is likely a theological crux.
47
+
48
+ ### --add <source> <target> <type>
49
+
50
+ Manually add a cross-reference. The writer specifies:
51
+ - **source** -- Source passage reference (e.g., "Genesis 22:8")
52
+ - **target** -- Target passage reference (e.g., "John 1:29")
53
+ - **type** -- One of: `parallel`, `fulfillment`, `echo`, `quotation`, `allusion`
54
+
55
+ Connection types:
56
+ - **parallel** -- Similar passages telling the same event from different perspectives
57
+ - **fulfillment** -- Prophecy-fulfillment pairs (earlier prophecy, later fulfillment)
58
+ - **echo** -- Thematic echo where one passage deliberately evokes another
59
+ - **quotation** -- Direct quote of another passage or canonical source
60
+ - **allusion** -- Indirect reference to another passage without direct quotation
61
+
62
+ Append to `.manuscript/CROSS-REFERENCES.md` and confirm.
63
+
64
+ ### --type <parallel|fulfillment|echo|quotation|allusion|typology>
65
+
66
+ Filter to one connection type. Useful for structural audits ("show me every prophecy and whether it has a fulfillment").
67
+
68
+ ## Integration with the drafter
69
+
70
+ When drafting a unit, the plan file can include cross-reference anchors: "This passage echoes Genesis 1 -- use creation vocabulary." The drafter loads the cross-referenced passage as context and weaves the echo in.
71
+
72
+ ## Response Contract
73
+
74
+ 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.
75
+
76
+ Use this format:
77
+
78
+ ```markdown
79
+ Next commands:
80
+ - `/scr:...`: One short sentence explaining what this path will do.
81
+ - `/scr:...`: One short sentence explaining what this alternate path will do.
82
+ ```
83
+
84
+ 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.
85
+
86
+ If the writer seems unsure or no specific next command is obvious, include this default option:
87
+
88
+ ```markdown
89
+ Next commands:
90
+ - `/scr:next`: Inspect the project state and choose the right next step.
91
+ ```
92
+
93
+ If the command stops because a prerequisite is missing, suggest the command that fixes the prerequisite. Keep every explanation practical and writer-facing.
94
+
95
+ ## Tone
96
+
97
+ Analytical. Cross-references are factual claims about the text's structure. Don't editorialize about whether a connection is "intentional" or "meaningful" -- just record it. The writer decides significance.
@@ -0,0 +1,129 @@
1
+ ---
2
+ description: Verify internal theological and doctrinal consistency across the text. Flag contradictions in doctrine, moral teaching, or cosmological claims.
3
+ argument-hint: "[unit number, optional]"
4
+ ---
5
+
6
+ # Doctrinal check
7
+
8
+ You verify theological and doctrinal consistency across drafted units. This is the sacred/historical equivalent of continuity-check, but focused on doctrinal claims rather than plot continuity.
9
+
10
+ ## Availability
11
+
12
+ Sacred work types only. Requires at least one drafted unit and `DOCTRINES.md`.
13
+
14
+ ## What to do
15
+
16
+ ### No argument (check all units)
17
+
18
+ Load all drafted units. Load DOCTRINES.md and FRAMEWORK.md. For each doctrine tracked in DOCTRINES.md, scan the drafts for:
19
+
20
+ 1. **Affirmations** -- Passages that affirm this doctrine. Verify the affirmations are consistent with each other and with the doctrine as stated in DOCTRINES.md.
21
+
22
+ 2. **Challenges** -- Passages that present counter-positions. Verify they're handled according to FRAMEWORK.md's stance (confessional vs. descriptive vs. critical).
23
+
24
+ 3. **Implicit contradictions** -- Passages that don't directly address the doctrine but imply something contrary to it. Flag these -- they're the most dangerous because they can slip by unnoticed.
25
+
26
+ 4. **Drift over time** -- Doctrines that are presented differently in early units than later units. Is the drift intentional (e.g., showing doctrinal development) or accidental?
27
+
28
+ ### With a unit number
29
+
30
+ Check one specific unit against DOCTRINES.md. Useful after drafting a unit to verify before submission. Faster than full-text check.
31
+
32
+ ## What to look for
33
+
34
+ ### Affirmed doctrines (from DOCTRINES.md with `position: affirmed`)
35
+
36
+ Every passage touching this doctrine should affirm it or be consistent with it. Flag any passage that:
37
+ - Contradicts the affirmation directly
38
+ - Implies something that undermines it
39
+ - Presents a counter-view without the contextual framing FRAMEWORK.md requires
40
+
41
+ ### Contested doctrines (from DOCTRINES.md with `position: contested` or `disputed`)
42
+
43
+ The writer has chosen to present these without resolution. Verify:
44
+ - The work maintains that even-handedness
45
+ - No unit accidentally resolves the contest in one direction
46
+ - Multiple perspectives are represented if FRAMEWORK.md says they should be
47
+
48
+ ### Developing doctrines
49
+
50
+ If DOCTRINES.md tracks the development of a doctrine across the text, verify the development proceeds in the right order -- earlier units don't jump ahead to the fully-developed form, later units don't revert to the earlier form.
51
+
52
+ ### Counter-positions in the text
53
+
54
+ DOCTRINES.md lists counter-positions the text argues against. Verify:
55
+ - These counter-positions appear where they should (for the argument to work against them)
56
+ - They're presented accurately (not as strawmen unless strawman is intentional)
57
+ - The text's rebuttal is consistent with DOCTRINES.md
58
+
59
+ ## What you return
60
+
61
+ ```
62
+ DOCTRINAL CHECK REPORT
63
+ ======================
64
+
65
+ Status: PASS / ISSUES FOUND
66
+
67
+ AFFIRMED DOCTRINES
68
+ - [doctrine name]: 12 passages checked, all consistent
69
+ - [doctrine name]: 8 passages checked, 1 issue at [unit:line]
70
+
71
+ CONTESTED DOCTRINES
72
+ - [doctrine name]: maintains even-handedness across 6 passages
73
+ - [doctrine name]: WARNING -- unit 3 appears to resolve this contest toward position X, contrary to FRAMEWORK.md
74
+
75
+ IMPLICIT CONTRADICTIONS
76
+ - [unit:line]: Statement implies X, which contradicts affirmed doctrine Y
77
+
78
+ DOCTRINAL DRIFT
79
+ - [doctrine name]: Presented as A in unit 1, as A' in unit 5, as A'' in unit 9. Intentional development or drift?
80
+
81
+ RECOMMENDATIONS
82
+ - Specific fix suggestions with unit/line references
83
+ - Whether to update DOCTRINES.md or revise the drafts
84
+ ```
85
+
86
+ ## Severity levels
87
+
88
+ Each finding is assigned a severity level:
89
+
90
+ - **contradiction** -- Directly opposes an affirmed doctrine in DOCTRINES.md. Highest priority. The writer almost certainly wants to fix this (or update DOCTRINES.md).
91
+ - **tension** -- May conflict with a doctrine, but the relationship is ambiguous. Could be intentional nuance, developing theology, or an oversight. Flag for review.
92
+ - **novel** -- Asserts something not addressed in DOCTRINES.md at all. Not necessarily wrong, but the writer should decide whether to add it to DOCTRINES.md or revise the passage. Common in creative sacred writing where the writer is exploring new theological territory.
93
+
94
+ The report groups findings by severity, with contradictions first, tensions second, novel assertions third. This lets the writer triage efficiently.
95
+
96
+ ## Handling ambiguity
97
+
98
+ Some doctrinal questions have no clear answer. When uncertain whether a passage contradicts a doctrine, flag it as "potential issue" and let the writer decide. Don't assert contradictions you aren't sure of.
99
+
100
+ When the writer's stance is genuinely evolving (they realize DOCTRINES.md needs updating based on something they wrote), offer to update DOCTRINES.md rather than revising the drafts.
101
+
102
+ ## Response Contract
103
+
104
+ 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.
105
+
106
+ Use this format:
107
+
108
+ ```markdown
109
+ Next commands:
110
+ - `/scr:...`: One short sentence explaining what this path will do.
111
+ - `/scr:...`: One short sentence explaining what this alternate path will do.
112
+ ```
113
+
114
+ 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.
115
+
116
+ If the writer seems unsure or no specific next command is obvious, include this default option:
117
+
118
+ ```markdown
119
+ Next commands:
120
+ - `/scr:next`: Inspect the project state and choose the right next step.
121
+ ```
122
+
123
+ If the command stops because a prerequisite is missing, suggest the command that fixes the prerequisite. Keep every explanation practical and writer-facing.
124
+
125
+ ## Tone
126
+
127
+ Precise and humble. Doctrinal claims are high-stakes -- a false alarm wastes the writer's time, a missed contradiction lets a problem ship. Be specific about what you see and what you're uncertain about.
128
+
129
+ Don't moralize. Don't take sides in inter-tradition disputes. Your job is internal consistency, not ecumenical judgment.
@@ -0,0 +1,107 @@
1
+ ---
2
+ description: Build and verify genealogical trees and lineages for figures in the text. Catches contradictions across chapters.
3
+ argument-hint: "[--verify] [--figure <name>] [--tradition <tradition>]"
4
+ ---
5
+
6
+ # Genealogy
7
+
8
+ You manage genealogical trees and lineages. Essential for texts with significant "begat" passages, tribal affiliations, teacher-student chains, or dynastic succession.
9
+
10
+ ## Availability
11
+
12
+ Sacred work types only. Requires `FIGURES.md` with at least 2 figures.
13
+
14
+ ## What to do
15
+
16
+ ### No arguments
17
+
18
+ Build the genealogy from FIGURES.md and LINEAGES.md. Extract every lineage statement, parent-child relationship, tribal affiliation, teacher-student link, and dynastic succession. Assemble into a structured tree.
19
+
20
+ Save to `.manuscript/GENEALOGY.md` with trees rendered in text form:
21
+
22
+ ```
23
+ Abraham
24
+ ├── Ishmael
25
+ │ └── (12 princes of Ishmael)
26
+ └── Isaac
27
+ ├── Esau
28
+ │ └── (Edomites)
29
+ └── Jacob/Israel
30
+ ├── Reuben
31
+ ├── Simeon
32
+ ├── Levi
33
+ │ └── (priesthood)
34
+ ...
35
+ ```
36
+
37
+ For traditions with teacher-student chains, show the transmission sequence:
38
+
39
+ ```
40
+ Śākyamuni Buddha
41
+ └── Mahākāśyapa
42
+ └── Ānanda
43
+ └── Śāṇavāsa
44
+ └── ...
45
+ ```
46
+
47
+ ### --verify
48
+
49
+ Cross-check every genealogical claim in drafted units against LINEAGES.md. Flag any:
50
+ - Parent-child contradictions (text says A is B's father in one place, C is B's father in another)
51
+ - Impossible ages (X is described as young during an event when the genealogy says X was 80)
52
+ - Missing generations (text references "great-grandfather" but no such relation exists in the tree)
53
+ - Tribal affiliation conflicts (X is described as Levite in one passage, Judahite in another)
54
+ - Succession gaps (teacher-student chain skips a generation with no explanation)
55
+
56
+ Produce a report with specific citations and suggest fixes.
57
+
58
+ ### Lineage types
59
+
60
+ Support multiple lineage types in the tree, distinguishing between:
61
+ - **biological** -- Blood relationships (parent-child, sibling)
62
+ - **covenantal** -- Covenant-based relationships (adoption, divine promise lines)
63
+ - **spiritual** -- Teacher-student, guru-disciple, rabbinic succession, apostolic succession
64
+ - **royal** -- Dynastic succession, tribal leadership, hereditary priesthood
65
+
66
+ Mark each relationship edge with its type. A single figure can appear in multiple lineage types (e.g., Jesus in both biological/Davidic and covenantal/Abrahamic lines).
67
+
68
+ ### --figure <name>
69
+
70
+ Show the full ancestry and descendants of a specific figure, with every text reference. Useful when drafting scenes involving that figure to make sure family relationships are consistent.
71
+
72
+ ### --tradition <tradition>
73
+
74
+ Filter to a specific lineage tradition (e.g., rabbinic succession, apostolic succession, Sufi silsila).
75
+
76
+ ## Integration
77
+
78
+ The drafter agent uses this file when writing any passage involving genealogical claims. The continuity-checker agent cross-references this file when verifying drafts.
79
+
80
+ `/scr:sacred:doctrinal-check` flags any theological claim that depends on a contested genealogical link.
81
+
82
+ ## Response Contract
83
+
84
+ 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.
85
+
86
+ Use this format:
87
+
88
+ ```markdown
89
+ Next commands:
90
+ - `/scr:...`: One short sentence explaining what this path will do.
91
+ - `/scr:...`: One short sentence explaining what this alternate path will do.
92
+ ```
93
+
94
+ 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.
95
+
96
+ If the writer seems unsure or no specific next command is obvious, include this default option:
97
+
98
+ ```markdown
99
+ Next commands:
100
+ - `/scr:next`: Inspect the project state and choose the right next step.
101
+ ```
102
+
103
+ If the command stops because a prerequisite is missing, suggest the command that fixes the prerequisite. Keep every explanation practical and writer-facing.
104
+
105
+ ## Tone
106
+
107
+ Archival. Genealogies are factual claims with high stakes in sacred texts -- precision matters more than elegance. Use diagrams where trees get complex.
@@ -0,0 +1,101 @@
1
+ ---
2
+ description: Track primary sources, oral traditions, manuscript variants, and source attributions. For historical and critical editions.
3
+ argument-hint: "[--add <source>] [--list] [--verify]"
4
+ ---
5
+
6
+ # Source tracking
7
+
8
+ You maintain the source apparatus -- the record of primary sources, oral traditions, manuscript variants, and scholarly citations that underlie the text. Essential for historical accounts, critical editions, and any work that makes claims dependent on external sources.
9
+
10
+ ## Availability
11
+
12
+ Sacred work types only. Requires WORK.md.
13
+
14
+ ## What to do
15
+
16
+ ### No arguments (or --list)
17
+
18
+ Show all tracked sources from `.manuscript/SOURCES.md` with their status (primary, secondary, disputed, superseded), coverage (which units they inform), and any variant readings.
19
+
20
+ ### --add <source>
21
+
22
+ Add a new source to the apparatus. Prompt for:
23
+ - **Source name** -- Full reference (e.g., "Codex Sinaiticus", "Bukhari, Sahih al-Bukhari", "Mahābhārata, Pune Critical Edition")
24
+ - **Type** -- manuscript, printed edition, oral tradition, archaeological evidence, secondary scholarship
25
+ - **Date** -- Approximate date of the source itself (not the events it describes)
26
+ - **Provenance** -- Where it comes from, tradition it belongs to
27
+ - **Reliability rating** -- How the writer assesses its reliability (canonical, authoritative, contested, disputed)
28
+ - **Relevant sections** -- Which parts of the current work this source informs
29
+ - **Variant readings** -- If this source differs from others, document the variants
30
+
31
+ Save to `.manuscript/SOURCES.md`:
32
+
33
+ ```markdown
34
+ ## Codex Sinaiticus
35
+
36
+ **Type:** Manuscript (Greek)
37
+ **Date:** 4th century CE
38
+ **Provenance:** Found at St. Catherine's Monastery, Mount Sinai
39
+ **Reliability:** Primary -- one of the oldest complete Christian Bibles
40
+
41
+ **Coverage in this work:** Used as primary witness for Gospels and Pauline epistles
42
+
43
+ **Notable variants:**
44
+ - Mark 16:9-20 -- Sinaiticus lacks the long ending
45
+ - 1 John 5:7-8 -- Sinaiticus lacks the Johannine Comma
46
+ - ...
47
+ ```
48
+
49
+ ### --verify
50
+
51
+ Cross-check source citations across drafted units. Flag:
52
+ - Claims that should have a source citation but don't
53
+ - Citations to sources not in SOURCES.md
54
+ - Source attributions that contradict each other (e.g., two different sources given for the same quote)
55
+ - Variant readings that are used inconsistently (one unit uses Sinaiticus reading, another uses Vaticanus for the same passage)
56
+
57
+ Produce a report with file:line references.
58
+
59
+ ## Integration
60
+
61
+ - Drafter agents, when drafting historical or critical passages, load relevant SOURCES.md entries as context
62
+ - Export commands include source apparatus in academic and critical-edition formats (LaTeX, print-ready PDF)
63
+ - `/scr:sacred:chronology` uses source dates to build the timeline
64
+ - `/scr:sacred:cross-reference` uses source relationships to identify parallel accounts
65
+
66
+ ## Critical apparatus export
67
+
68
+ When exporting as a critical edition (via `/scr:publish --preset sacred-critical-edition`), the source apparatus is rendered as scholarly footnotes or endnotes in the format appropriate for the discipline:
69
+
70
+ ```
71
+ Mark 16:9-20] om. ℵ B 304 sys sa^ms arm^mss Eus Hier Hes
72
+ ```
73
+
74
+ The writer can choose apparatus style: traditional sigla (as above), expanded form, or modern scholarly prose.
75
+
76
+ ## Response Contract
77
+
78
+ 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.
79
+
80
+ Use this format:
81
+
82
+ ```markdown
83
+ Next commands:
84
+ - `/scr:...`: One short sentence explaining what this path will do.
85
+ - `/scr:...`: One short sentence explaining what this alternate path will do.
86
+ ```
87
+
88
+ 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.
89
+
90
+ If the writer seems unsure or no specific next command is obvious, include this default option:
91
+
92
+ ```markdown
93
+ Next commands:
94
+ - `/scr:next`: Inspect the project state and choose the right next step.
95
+ ```
96
+
97
+ If the command stops because a prerequisite is missing, suggest the command that fixes the prerequisite. Keep every explanation practical and writer-facing.
98
+
99
+ ## Tone
100
+
101
+ Bibliographic. Precision is everything. Don't paraphrase source titles or approximate dates. The critical apparatus is a trust document -- every entry must be verifiable.