{
  "$schema": "./constraints.schema.json",
  "version": "3.6.0",
  "description": "Scriveno constraint system: work types, command availability, exports, and dependencies. Every command checks this file at runtime.",
  "_notes": {
    "sacred_keys": "Sacred subcommands live at commands/scr/sacred/<name>.md and run as /scr:sacred:<name>. Their CONSTRAINTS keys use the sacred:<name> form so /scr:help can render the runnable slash-command path directly. The sacred-numbering-format entry is a separate flat command (commands/scr/sacred-numbering-format.md) that surfaces the active tradition's numbering format. It used to be named sacred-verse-numbering, which collided with sacred:verse-numbering at install time -- both flattened to scr-sacred-verse-numbering. Renamed in v1.6.x; the installer now refuses to install when two sources share a flat skill name."
  },
  "command_intents": {
    "start": [
      "first-run",
      "new-work",
      "demo",
      "import",
      "profile-writer",
      "manager",
      "series-bible"
    ],
    "draft": [
      "next",
      "discuss",
      "plan",
      "climax",
      "draft",
      "quick-write",
      "voice-test",
      "autopilot",
      "cycle",
      "fast",
      "plant-seed"
    ],
    "revise": [
      "editor-review",
      "voice-check",
      "continuity-check",
      "line-edit",
      "copy-edit",
      "polish",
      "beta-reader",
      "dialogue-audit",
      "pacing-analysis",
      "bridge",
      "originality-check",
      "sensitivity-review",
      "proof-unit"
    ],
    "world": [
      "build-world",
      "new-character",
      "new-people",
      "new-place",
      "place-touch",
      "geography-map",
      "relationship-map",
      "cast-list",
      "research",
      "character-arc",
      "character-sheet",
      "character-touch",
      "character-voice-sample",
      "subject-touch",
      "series-bible"
    ],
    "navigate": [
      "first-run",
      "next",
      "progress",
      "manuscript-stats",
      "map-manuscript",
      "relationship-map",
      "geography-map",
      "new-place",
      "place-touch",
      "research",
      "subplot-map",
      "theme-tracker",
      "pause-work",
      "resume-work",
      "do",
      "fast",
      "add-note",
      "new-revision",
      "proof-unit",
      "thread"
    ],
    "publish": [
      "complete-draft",
      "front-matter",
      "back-matter",
      "blurb",
      "cover-art",
      "synopsis",
      "query-letter",
      "prepublish-review",
      "compliance-check",
      "publish",
      "export",
      "build-ebook",
      "build-print",
      "autopilot-publish"
    ],
    "translate": [
      "translate",
      "translation-glossary",
      "translation-memory",
      "back-translate",
      "cultural-adaptation",
      "multi-publish",
      "autopilot-translate"
    ],
    "collaborate": [
      "track",
      "editor-review",
      "compare",
      "history",
      "versions",
      "save",
      "new-revision",
      "thread"
    ],
    "repair": [
      "scan",
      "health",
      "sync",
      "validate",
      "cleanup",
      "check-notes",
      "troubleshoot",
      "undo"
    ]
  },
  "command_families": {
    "structure": {
      "label": "Structure",
      "hub": "outline",
      "description": "Use /scr:outline as the hub for outline shape, then use specialist commands for adding, inserting, removing, splitting, merging, and reordering units.",
      "commands": [
        "outline",
        "add-unit",
        "insert-unit",
        "remove-unit",
        "split-unit",
        "merge-units",
        "reorder-units",
        "plot-graph",
        "timeline",
        "subplot-map",
        "theme-tracker"
      ]
    },
    "art": {
      "label": "Art",
      "hub": "art-direction",
      "description": "Use /scr:art-direction as the visual hub, then branch to cover, scene, character, map, storyboard, panel, and spread prompts.",
      "commands": [
        "art-direction",
        "cover-art",
        "illustrate-scene",
        "character-ref",
        "map-illustration",
        "chapter-header",
        "storyboard",
        "panel-layout",
        "spread-layout"
      ]
    },
    "session": {
      "label": "Session",
      "hub": "save",
      "description": "Use /scr:save as the session checkpoint hub, with history, versions, compare, pause, resume, progress, and reports as nearby state tools.",
      "commands": [
        "save",
        "history",
        "versions",
        "compare",
        "session-report",
        "pause-work",
        "resume-work",
        "progress",
        "undo",
        "add-note",
        "new-revision",
        "plant-seed",
        "thread"
      ]
    },
    "sacred": {
      "label": "Sacred",
      "hub": "sacred:source-tracking",
      "description": "Use /scr:sacred:source-tracking as the citation and tradition hub, then branch to concordance, cross-reference, genealogy, chronology, annotation, verse numbering, numbering format, and doctrinal checks.",
      "commands": [
        "sacred:source-tracking",
        "sacred:concordance",
        "sacred:cross-reference",
        "sacred:genealogy",
        "sacred:chronology",
        "sacred:annotation-layer",
        "sacred:verse-numbering",
        "sacred-numbering-format",
        "sacred:doctrinal-check"
      ]
    },
    "submission": {
      "label": "Submission",
      "hub": "publish",
      "description": "Use /scr:publish as the destination wizard, then branch to synopsis, query letter, book proposal, discussion questions, prepublish review, and submission packaging.",
      "commands": [
        "publish",
        "synopsis",
        "query-letter",
        "book-proposal",
        "discussion-questions",
        "prepublish-review",
        "submit",
        "export"
      ]
    },
    "publishing": {
      "label": "Publishing",
      "hub": "publish",
      "description": "Use /scr:publish for sequencing, /scr:export for one-off output, and the build commands for final platform packages.",
      "commands": [
        "publish",
        "export",
        "front-matter",
        "back-matter",
        "blurb",
        "cover-art",
        "prepublish-review",
        "compliance-check",
        "build-ebook",
        "build-print",
        "build-smashwords",
        "build-poetry-submission",
        "autopilot-publish"
      ]
    },
    "world": {
      "label": "World",
      "hub": "build-world",
      "description": "Use /scr:build-world as the world hub, then branch to characters, peoples, places, geography, relationships, cast lists, and research.",
      "commands": [
        "build-world",
        "new-character",
        "new-people",
        "new-place",
        "place-touch",
        "geography-map",
        "relationship-map",
        "cast-list",
        "research",
        "character-arc",
        "character-sheet",
        "character-touch",
        "character-voice-sample",
        "subject-touch",
        "series-bible"
      ]
    },
    "collaboration": {
      "label": "Collaboration",
      "hub": "track",
      "description": "Use /scr:track as the collaboration hub for alternate versions, proposals, comparisons, merges, and save history.",
      "commands": [
        "track",
        "editor-review",
        "compare",
        "history",
        "versions",
        "save"
      ]
    },
    "surface": {
      "label": "Command Surface",
      "hub": "surface",
      "description": "Use /scr:surface to inspect, shrink, preview, or restore the visible installed command profile without deleting project data.",
      "commands": [
        "surface",
        "help",
        "next",
        "first-run",
        "settings"
      ]
    },
    "review": {
      "label": "Review",
      "hub": "editor-review",
      "description": "Use /scr:editor-review as the review hub, then branch to voice, continuity, sensitivity, originality, pacing, dialogue, proof, and polish checks.",
      "commands": [
        "editor-review",
        "voice-check",
        "continuity-check",
        "sensitivity-review",
        "originality-check",
        "pacing-analysis",
        "dialogue-audit",
        "line-edit",
        "copy-edit",
        "polish",
        "beta-reader",
        "proof-unit"
      ]
    },
    "automation": {
      "label": "Automation",
      "hub": "do",
      "description": "Use /scr:do for natural-language routing, then branch to fast edits, autopilot, proof, or next-step automation.",
      "commands": [
        "do",
        "fast",
        "autopilot",
        "autopilot-publish",
        "autopilot-translate",
        "proof-unit",
        "next"
      ]
    }
  },
  "work_type_groups": {
    "prose": {
      "label": "Prose",
      "members": [
        "novel",
        "novella",
        "short_story",
        "flash_fiction",
        "memoir",
        "creative_nonfiction",
        "biography",
        "essay",
        "essay_collection"
      ]
    },
    "script": {
      "label": "Script",
      "members": [
        "screenplay",
        "stage_play",
        "tv_pilot",
        "tv_series_bible",
        "audio_drama",
        "libretto"
      ]
    },
    "academic": {
      "label": "Academic",
      "members": [
        "research_paper",
        "thesis",
        "journal_article",
        "white_paper",
        "literature_review",
        "monograph"
      ]
    },
    "technical": {
      "label": "Technical Writing",
      "members": [
        "technical_guide",
        "runbook",
        "api_reference",
        "design_spec"
      ]
    },
    "visual": {
      "label": "Visual",
      "members": [
        "comic",
        "graphic_novel",
        "childrens_book",
        "picture_book"
      ]
    },
    "poetry": {
      "label": "Poetry",
      "members": [
        "poetry_collection",
        "single_poem",
        "song_lyric"
      ]
    },
    "interactive": {
      "label": "Interactive",
      "members": [
        "interactive_fiction",
        "game_narrative"
      ]
    },
    "speech_song": {
      "label": "Speech & Song",
      "members": [
        "speech"
      ]
    },
    "sacred": {
      "label": "Sacred & Historical",
      "members": [
        "scripture_biblical",
        "scripture_quranic",
        "scripture_torah",
        "scripture_vedic",
        "scripture_buddhist",
        "scripture_generic",
        "commentary",
        "devotional",
        "liturgical",
        "historical_chronicle",
        "historical_account",
        "mythological_collection",
        "religious_epic",
        "sermon",
        "homiletic_collection"
      ]
    }
  },
  "work_types": {
    "novel": {
      "label": "Novel",
      "group": "prose",
      "hierarchy": {
        "top": "part",
        "mid": "chapter",
        "atomic": "scene"
      },
      "command_unit": "chapter",
      "word_count_range": [
        70000,
        100000
      ],
      "page_range": [
        280,
        400
      ],
      "unit_count_range": [
        20,
        35
      ],
      "unit_word_range": [
        2500,
        5000
      ],
      "unit_page_range": [
        10,
        20
      ]
    },
    "novella": {
      "label": "Novella",
      "group": "prose",
      "hierarchy": {
        "top": null,
        "mid": "chapter",
        "atomic": "scene"
      },
      "command_unit": "chapter",
      "word_count_range": [
        17500,
        40000
      ],
      "page_range": [
        70,
        160
      ],
      "unit_count_range": [
        5,
        15
      ],
      "unit_word_range": [
        2000,
        4000
      ],
      "unit_page_range": [
        8,
        16
      ]
    },
    "short_story": {
      "label": "Short Story",
      "group": "prose",
      "hierarchy": {
        "top": null,
        "mid": "section",
        "atomic": "beat"
      },
      "command_unit": "section",
      "word_count_range": [
        1000,
        7500
      ],
      "page_range": [
        4,
        30
      ],
      "unit_count_range": [
        1,
        5
      ],
      "unit_word_range": [
        500,
        2500
      ],
      "unit_page_range": [
        2,
        10
      ]
    },
    "flash_fiction": {
      "label": "Flash Fiction",
      "group": "prose",
      "hierarchy": {
        "top": null,
        "mid": null,
        "atomic": "beat"
      },
      "command_unit": "beat",
      "word_count_range": [
        100,
        1000
      ],
      "page_range": [
        1,
        4
      ],
      "unit_count_range": [
        1,
        3
      ],
      "unit_word_range": [
        100,
        500
      ],
      "unit_page_range": [
        1,
        2
      ]
    },
    "memoir": {
      "label": "Memoir",
      "group": "prose",
      "hierarchy": {
        "top": "part",
        "mid": "chapter",
        "atomic": "vignette"
      },
      "command_unit": "chapter",
      "word_count_range": [
        60000,
        90000
      ],
      "page_range": [
        240,
        360
      ],
      "unit_count_range": [
        15,
        30
      ],
      "unit_word_range": [
        2500,
        5000
      ],
      "unit_page_range": [
        10,
        20
      ]
    },
    "creative_nonfiction": {
      "label": "Creative Nonfiction",
      "group": "prose",
      "hierarchy": {
        "top": "part",
        "mid": "chapter",
        "atomic": "scene"
      },
      "command_unit": "chapter",
      "word_count_range": [
        50000,
        90000
      ],
      "page_range": [
        200,
        360
      ],
      "unit_count_range": [
        12,
        25
      ],
      "unit_word_range": [
        2500,
        5000
      ],
      "unit_page_range": [
        10,
        20
      ]
    },
    "biography": {
      "label": "Biography",
      "group": "prose",
      "hierarchy": {
        "top": "part",
        "mid": "chapter",
        "atomic": "scene"
      },
      "command_unit": "chapter",
      "word_count_range": [
        70000,
        120000
      ],
      "page_range": [
        280,
        480
      ],
      "unit_count_range": [
        15,
        35
      ],
      "unit_word_range": [
        3000,
        5000
      ],
      "unit_page_range": [
        12,
        20
      ]
    },
    "essay": {
      "label": "Essay",
      "group": "prose",
      "hierarchy": {
        "top": null,
        "mid": "section",
        "atomic": "paragraph_block"
      },
      "command_unit": "section",
      "word_count_range": [
        1500,
        10000
      ],
      "page_range": [
        6,
        40
      ],
      "unit_count_range": [
        3,
        8
      ],
      "unit_word_range": [
        500,
        2000
      ],
      "unit_page_range": [
        2,
        8
      ]
    },
    "essay_collection": {
      "label": "Essay Collection",
      "group": "prose",
      "hierarchy": {
        "top": "part",
        "mid": null,
        "atomic": "essay"
      },
      "command_unit": "essay",
      "word_count_range": [
        40000,
        80000
      ],
      "page_range": [
        160,
        320
      ],
      "unit_count_range": [
        10,
        25
      ],
      "unit_word_range": [
        2000,
        6000
      ],
      "unit_page_range": [
        8,
        24
      ]
    },
    "screenplay": {
      "label": "Screenplay",
      "group": "script",
      "hierarchy": {
        "top": "act",
        "mid": "sequence",
        "atomic": "scene"
      },
      "command_unit": "act",
      "word_count_range": [
        7500,
        12500
      ],
      "page_range": [
        90,
        120
      ],
      "unit_count_range": [
        3,
        5
      ],
      "unit_word_range": [
        2000,
        4000
      ],
      "unit_page_range": [
        25,
        35
      ]
    },
    "stage_play": {
      "label": "Stage Play",
      "group": "script",
      "hierarchy": {
        "top": "act",
        "mid": "scene",
        "atomic": "beat"
      },
      "command_unit": "act",
      "word_count_range": [
        10000,
        15000
      ],
      "page_range": [
        60,
        120
      ],
      "unit_count_range": [
        1,
        5
      ],
      "unit_word_range": [
        3000,
        7000
      ],
      "unit_page_range": [
        15,
        40
      ]
    },
    "tv_pilot": {
      "label": "TV Pilot",
      "group": "script",
      "hierarchy": {
        "top": "act",
        "mid": "scene",
        "atomic": "beat"
      },
      "command_unit": "act",
      "word_count_range": [
        5000,
        10000
      ],
      "page_range": [
        30,
        60
      ],
      "unit_count_range": [
        4,
        6
      ],
      "unit_word_range": [
        1000,
        2500
      ],
      "unit_page_range": [
        6,
        12
      ]
    },
    "tv_series_bible": {
      "label": "TV Series Bible",
      "group": "script",
      "hierarchy": {
        "top": "season",
        "mid": "episode",
        "atomic": "scene"
      },
      "command_unit": "episode",
      "word_count_range": [
        15000,
        40000
      ],
      "page_range": [
        60,
        160
      ],
      "unit_count_range": [
        6,
        13
      ],
      "unit_word_range": [
        1500,
        3000
      ],
      "unit_page_range": [
        6,
        12
      ]
    },
    "audio_drama": {
      "label": "Audio Drama / Podcast Script",
      "group": "script",
      "hierarchy": {
        "top": "season",
        "mid": "episode",
        "atomic": "scene"
      },
      "command_unit": "episode",
      "word_count_range": [
        3000,
        8000
      ],
      "page_range": [
        12,
        32
      ],
      "unit_count_range": [
        1,
        10
      ],
      "unit_word_range": [
        2000,
        5000
      ],
      "unit_page_range": [
        8,
        20
      ]
    },
    "libretto": {
      "label": "Libretto / Musical",
      "group": "script",
      "hierarchy": {
        "top": "act",
        "mid": "scene",
        "atomic": "number"
      },
      "command_unit": "act",
      "word_count_range": [
        5000,
        12000
      ],
      "page_range": [
        20,
        48
      ],
      "unit_count_range": [
        2,
        3
      ],
      "unit_word_range": [
        2000,
        5000
      ],
      "unit_page_range": [
        8,
        20
      ]
    },
    "research_paper": {
      "label": "Research Paper",
      "group": "academic",
      "hierarchy": {
        "top": null,
        "mid": "section",
        "atomic": "subsection"
      },
      "command_unit": "section",
      "word_count_range": [
        5000,
        15000
      ],
      "page_range": [
        20,
        60
      ],
      "unit_count_range": [
        4,
        8
      ],
      "unit_word_range": [
        1000,
        3000
      ],
      "unit_page_range": [
        4,
        12
      ]
    },
    "thesis": {
      "label": "Thesis / Dissertation",
      "group": "academic",
      "hierarchy": {
        "top": "part",
        "mid": "chapter",
        "atomic": "section"
      },
      "command_unit": "chapter",
      "word_count_range": [
        40000,
        100000
      ],
      "page_range": [
        160,
        400
      ],
      "unit_count_range": [
        5,
        10
      ],
      "unit_word_range": [
        5000,
        15000
      ],
      "unit_page_range": [
        20,
        60
      ]
    },
    "journal_article": {
      "label": "Journal Article",
      "group": "academic",
      "hierarchy": {
        "top": null,
        "mid": "section",
        "atomic": "subsection"
      },
      "command_unit": "section",
      "word_count_range": [
        3000,
        8000
      ],
      "page_range": [
        12,
        32
      ],
      "unit_count_range": [
        4,
        7
      ],
      "unit_word_range": [
        500,
        2000
      ],
      "unit_page_range": [
        2,
        8
      ]
    },
    "white_paper": {
      "label": "White Paper",
      "group": "academic",
      "hierarchy": {
        "top": null,
        "mid": "section",
        "atomic": "subsection"
      },
      "command_unit": "section",
      "word_count_range": [
        3000,
        10000
      ],
      "page_range": [
        12,
        40
      ],
      "unit_count_range": [
        4,
        8
      ],
      "unit_word_range": [
        500,
        2000
      ],
      "unit_page_range": [
        2,
        8
      ]
    },
    "literature_review": {
      "label": "Literature Review",
      "group": "academic",
      "hierarchy": {
        "top": null,
        "mid": "section",
        "atomic": "subsection"
      },
      "command_unit": "section",
      "word_count_range": [
        5000,
        15000
      ],
      "page_range": [
        20,
        60
      ],
      "unit_count_range": [
        4,
        8
      ],
      "unit_word_range": [
        1000,
        3000
      ],
      "unit_page_range": [
        4,
        12
      ]
    },
    "monograph": {
      "label": "Monograph",
      "group": "academic",
      "hierarchy": {
        "top": "part",
        "mid": "chapter",
        "atomic": "section"
      },
      "command_unit": "chapter",
      "word_count_range": [
        50000,
        100000
      ],
      "page_range": [
        200,
        400
      ],
      "unit_count_range": [
        8,
        15
      ],
      "unit_word_range": [
        4000,
        8000
      ],
      "unit_page_range": [
        16,
        32
      ]
    },
    "technical_guide": {
      "label": "Technical Guide / User Guide",
      "group": "technical",
      "hierarchy": {
        "top": null,
        "mid": "section",
        "atomic": "procedure"
      },
      "command_unit": "section",
      "word_count_range": [
        3000,
        25000
      ],
      "page_range": [
        12,
        100
      ],
      "unit_count_range": [
        4,
        12
      ],
      "unit_word_range": [
        500,
        2500
      ],
      "unit_page_range": [
        2,
        10
      ],
      "config_defaults": {
        "audience_level": "mixed",
        "review_mode": "accuracy_first"
      }
    },
    "runbook": {
      "label": "Runbook / SOP",
      "group": "technical",
      "hierarchy": {
        "top": null,
        "mid": "procedure",
        "atomic": "step"
      },
      "command_unit": "procedure",
      "word_count_range": [
        1500,
        12000
      ],
      "page_range": [
        6,
        48
      ],
      "unit_count_range": [
        3,
        10
      ],
      "unit_word_range": [
        300,
        1500
      ],
      "unit_page_range": [
        1,
        6
      ],
      "config_defaults": {
        "audience_level": "operator",
        "review_mode": "accuracy_first"
      }
    },
    "api_reference": {
      "label": "API or CLI Reference",
      "group": "technical",
      "hierarchy": {
        "top": null,
        "mid": "resource",
        "atomic": "endpoint"
      },
      "command_unit": "resource",
      "word_count_range": [
        2000,
        30000
      ],
      "page_range": [
        8,
        120
      ],
      "unit_count_range": [
        5,
        40
      ],
      "unit_word_range": [
        150,
        1000
      ],
      "unit_page_range": [
        1,
        4
      ],
      "config_defaults": {
        "audience_level": "developer",
        "review_mode": "accuracy_first"
      }
    },
    "design_spec": {
      "label": "Design Spec / Architecture Doc",
      "group": "technical",
      "hierarchy": {
        "top": "system",
        "mid": "section",
        "atomic": "decision"
      },
      "command_unit": "section",
      "word_count_range": [
        2000,
        15000
      ],
      "page_range": [
        8,
        60
      ],
      "unit_count_range": [
        4,
        12
      ],
      "unit_word_range": [
        500,
        2000
      ],
      "unit_page_range": [
        2,
        8
      ],
      "config_defaults": {
        "audience_level": "mixed",
        "review_mode": "accuracy_first"
      }
    },
    "poetry_collection": {
      "label": "Poetry Collection",
      "group": "poetry",
      "hierarchy": {
        "top": "section",
        "mid": null,
        "atomic": "poem"
      },
      "command_unit": "section",
      "word_count_range": [
        5000,
        15000
      ],
      "page_range": [
        48,
        120
      ],
      "unit_count_range": [
        3,
        8
      ],
      "unit_word_range": [
        1000,
        3000
      ],
      "unit_page_range": [
        8,
        20
      ]
    },
    "single_poem": {
      "label": "Single Poem",
      "group": "poetry",
      "hierarchy": {
        "top": null,
        "mid": "stanza",
        "atomic": "line"
      },
      "command_unit": "stanza",
      "word_count_range": [
        20,
        2000
      ],
      "page_range": [
        1,
        8
      ],
      "unit_count_range": [
        1,
        20
      ],
      "unit_word_range": [
        10,
        200
      ],
      "unit_page_range": [
        1,
        1
      ]
    },
    "song_lyric": {
      "label": "Lyric / Song",
      "group": "poetry",
      "hierarchy": {
        "top": null,
        "mid": "section",
        "atomic": "line"
      },
      "command_unit": "section",
      "word_count_range": [
        100,
        600
      ],
      "page_range": [
        1,
        3
      ],
      "unit_count_range": [
        3,
        6
      ],
      "unit_word_range": [
        20,
        150
      ],
      "unit_page_range": [
        1,
        1
      ]
    },
    "comic": {
      "label": "Comic / Graphic Novel",
      "group": "visual",
      "hierarchy": {
        "top": "volume",
        "mid": "issue",
        "atomic": "panel"
      },
      "command_unit": "issue",
      "word_count_range": [
        2000,
        5000
      ],
      "page_range": [
        22,
        32
      ],
      "unit_count_range": [
        1,
        6
      ],
      "unit_word_range": [
        500,
        1500
      ],
      "unit_page_range": [
        22,
        32
      ]
    },
    "graphic_novel": {
      "label": "Graphic Novel",
      "group": "visual",
      "hierarchy": {
        "top": "volume",
        "mid": "chapter",
        "atomic": "panel"
      },
      "command_unit": "chapter",
      "word_count_range": [
        5000,
        20000
      ],
      "page_range": [
        80,
        200
      ],
      "unit_count_range": [
        5,
        12
      ],
      "unit_word_range": [
        500,
        2500
      ],
      "unit_page_range": [
        10,
        25
      ]
    },
    "childrens_book": {
      "label": "Children's Book",
      "group": "visual",
      "hierarchy": {
        "top": null,
        "mid": "spread",
        "atomic": "page"
      },
      "command_unit": "spread",
      "word_count_range": [
        500,
        5000
      ],
      "page_range": [
        24,
        48
      ],
      "unit_count_range": [
        12,
        24
      ],
      "unit_word_range": [
        20,
        200
      ],
      "unit_page_range": [
        2,
        2
      ]
    },
    "picture_book": {
      "label": "Picture Book",
      "group": "visual",
      "hierarchy": {
        "top": null,
        "mid": "spread",
        "atomic": "illustration_text"
      },
      "command_unit": "spread",
      "word_count_range": [
        200,
        1000
      ],
      "page_range": [
        24,
        40
      ],
      "unit_count_range": [
        12,
        20
      ],
      "unit_word_range": [
        10,
        60
      ],
      "unit_page_range": [
        2,
        2
      ]
    },
    "interactive_fiction": {
      "label": "Interactive Fiction",
      "group": "interactive",
      "hierarchy": {
        "top": null,
        "mid": "node",
        "atomic": "choice_branch"
      },
      "command_unit": "node",
      "word_count_range": [
        20000,
        100000
      ],
      "page_range": [
        80,
        400
      ],
      "unit_count_range": [
        20,
        100
      ],
      "unit_word_range": [
        500,
        2000
      ],
      "unit_page_range": [
        2,
        8
      ]
    },
    "game_narrative": {
      "label": "Game Narrative",
      "group": "interactive",
      "hierarchy": {
        "top": "act",
        "mid": "quest",
        "atomic": "dialogue_tree"
      },
      "command_unit": "quest",
      "word_count_range": [
        30000,
        150000
      ],
      "page_range": [
        120,
        600
      ],
      "unit_count_range": [
        10,
        40
      ],
      "unit_word_range": [
        2000,
        5000
      ],
      "unit_page_range": [
        8,
        20
      ]
    },
    "speech": {
      "label": "Speech",
      "group": "speech_song",
      "hierarchy": {
        "top": null,
        "mid": "section",
        "atomic": "beat"
      },
      "command_unit": "section",
      "word_count_range": [
        500,
        5000
      ],
      "page_range": [
        2,
        20
      ],
      "unit_count_range": [
        3,
        6
      ],
      "unit_word_range": [
        150,
        1000
      ],
      "unit_page_range": [
        1,
        4
      ]
    },
    "scripture_biblical": {
      "label": "Scripture (Biblical)",
      "group": "sacred",
      "hierarchy": {
        "top": "testament",
        "mid": "book",
        "atomic": "verse"
      },
      "command_unit": "book",
      "config_defaults": {
        "verse_numbering_system": "masoretic",
        "calendar_system": "gregorian"
      },
      "word_count_range": null,
      "page_range": null,
      "unit_count_range": [
        39,
        66
      ],
      "unit_word_range": [
        1000,
        50000
      ],
      "unit_page_range": [
        4,
        200
      ],
      "_note": "Varies by scope -- full Bible vs single book. No meaningful total range."
    },
    "scripture_quranic": {
      "label": "Scripture (Quranic)",
      "group": "sacred",
      "hierarchy": {
        "top": null,
        "mid": "surah",
        "atomic": "ayah"
      },
      "command_unit": "surah",
      "config_defaults": {
        "verse_numbering_system": "quranic_hafs",
        "calendar_system": "hijri"
      },
      "word_count_range": null,
      "page_range": null,
      "unit_count_range": [
        1,
        114
      ],
      "unit_word_range": [
        50,
        12000
      ],
      "unit_page_range": [
        1,
        48
      ],
      "_note": "Varies by scope -- full Quran vs single surah. No meaningful total range."
    },
    "scripture_torah": {
      "label": "Scripture (Torah)",
      "group": "sacred",
      "hierarchy": {
        "top": "chumash",
        "mid": "parashah",
        "atomic": "pasuk"
      },
      "command_unit": "parashah",
      "config_defaults": {
        "verse_numbering_system": "masoretic",
        "calendar_system": "hebrew"
      },
      "word_count_range": null,
      "page_range": null,
      "unit_count_range": [
        1,
        54
      ],
      "unit_word_range": [
        1000,
        8000
      ],
      "unit_page_range": [
        4,
        32
      ],
      "_note": "Varies by scope -- full Torah vs single parashah."
    },
    "scripture_vedic": {
      "label": "Scripture (Vedic)",
      "group": "sacred",
      "hierarchy": {
        "top": "veda",
        "mid": "mandala",
        "atomic": "sukta"
      },
      "command_unit": "mandala",
      "config_defaults": {
        "calendar_system": "vikram_samvat"
      },
      "word_count_range": null,
      "page_range": null,
      "unit_count_range": [
        1,
        10
      ],
      "unit_word_range": [
        2000,
        20000
      ],
      "unit_page_range": [
        8,
        80
      ],
      "_note": "Varies by scope -- single Veda vs collection."
    },
    "scripture_buddhist": {
      "label": "Scripture (Buddhist)",
      "group": "sacred",
      "hierarchy": {
        "top": "pitaka",
        "mid": "nikaya",
        "atomic": "sutta"
      },
      "command_unit": "sutta",
      "config_defaults": {
        "calendar_system": "buddhist_era"
      },
      "word_count_range": null,
      "page_range": null,
      "unit_count_range": [
        1,
        50
      ],
      "unit_word_range": [
        500,
        10000
      ],
      "unit_page_range": [
        2,
        40
      ],
      "_note": "Varies by scope -- single sutta vs full nikaya."
    },
    "scripture_generic": {
      "label": "Scripture (Generic)",
      "group": "sacred",
      "hierarchy": {
        "top": "testament",
        "mid": "book",
        "atomic": "verse"
      },
      "command_unit": "book",
      "word_count_range": null,
      "page_range": null,
      "unit_count_range": [
        1,
        100
      ],
      "unit_word_range": [
        500,
        30000
      ],
      "unit_page_range": [
        2,
        120
      ],
      "_note": "Varies by tradition and scope."
    },
    "commentary": {
      "label": "Commentary / Exegesis",
      "group": "sacred",
      "hierarchy": {
        "top": null,
        "mid": "section",
        "atomic": "annotation_block"
      },
      "command_unit": "section",
      "word_count_range": [
        20000,
        150000
      ],
      "page_range": [
        80,
        600
      ],
      "unit_count_range": [
        5,
        30
      ],
      "unit_word_range": [
        2000,
        8000
      ],
      "unit_page_range": [
        8,
        32
      ]
    },
    "devotional": {
      "label": "Devotional",
      "group": "sacred",
      "hierarchy": {
        "top": null,
        "mid": "theme",
        "atomic": "entry"
      },
      "command_unit": "entry",
      "word_count_range": [
        15000,
        50000
      ],
      "page_range": [
        60,
        200
      ],
      "unit_count_range": [
        30,
        366
      ],
      "unit_word_range": [
        200,
        800
      ],
      "unit_page_range": [
        1,
        3
      ]
    },
    "liturgical": {
      "label": "Liturgical Text",
      "group": "sacred",
      "hierarchy": {
        "top": "rite",
        "mid": "section",
        "atomic": "rubric"
      },
      "command_unit": "section",
      "word_count_range": [
        5000,
        30000
      ],
      "page_range": [
        20,
        120
      ],
      "unit_count_range": [
        5,
        20
      ],
      "unit_word_range": [
        500,
        3000
      ],
      "unit_page_range": [
        2,
        12
      ]
    },
    "historical_chronicle": {
      "label": "Historical Chronicle",
      "group": "sacred",
      "hierarchy": {
        "top": "era",
        "mid": "chapter",
        "atomic": "event"
      },
      "command_unit": "chapter",
      "word_count_range": [
        50000,
        150000
      ],
      "page_range": [
        200,
        600
      ],
      "unit_count_range": [
        10,
        40
      ],
      "unit_word_range": [
        3000,
        6000
      ],
      "unit_page_range": [
        12,
        24
      ]
    },
    "historical_account": {
      "label": "Historical Account",
      "group": "sacred",
      "hierarchy": {
        "top": "part",
        "mid": "chapter",
        "atomic": "scene"
      },
      "command_unit": "chapter",
      "word_count_range": [
        40000,
        100000
      ],
      "page_range": [
        160,
        400
      ],
      "unit_count_range": [
        10,
        30
      ],
      "unit_word_range": [
        3000,
        5000
      ],
      "unit_page_range": [
        12,
        20
      ]
    },
    "mythological_collection": {
      "label": "Mythological Collection",
      "group": "sacred",
      "hierarchy": {
        "top": "cycle",
        "mid": null,
        "atomic": "tale"
      },
      "command_unit": "tale",
      "word_count_range": [
        30000,
        100000
      ],
      "page_range": [
        120,
        400
      ],
      "unit_count_range": [
        10,
        50
      ],
      "unit_word_range": [
        1500,
        5000
      ],
      "unit_page_range": [
        6,
        20
      ]
    },
    "religious_epic": {
      "label": "Religious Epic",
      "group": "sacred",
      "hierarchy": {
        "top": "book",
        "mid": "canto",
        "atomic": "verse"
      },
      "command_unit": "canto",
      "word_count_range": [
        50000,
        300000
      ],
      "page_range": [
        200,
        1200
      ],
      "unit_count_range": [
        10,
        100
      ],
      "unit_word_range": [
        2000,
        8000
      ],
      "unit_page_range": [
        8,
        32
      ]
    },
    "sermon": {
      "label": "Sermon / Homily",
      "group": "sacred",
      "hierarchy": {
        "top": null,
        "mid": "movement",
        "atomic": "beat"
      },
      "command_unit": "sermon",
      "word_count_range": [
        1500,
        4000
      ],
      "page_range": [
        6,
        16
      ],
      "unit_count_range": [
        3,
        5
      ],
      "unit_word_range": [
        400,
        1000
      ],
      "unit_page_range": [
        2,
        4
      ]
    },
    "homiletic_collection": {
      "label": "Homiletic Collection",
      "group": "sacred",
      "hierarchy": {
        "top": "liturgical_year",
        "mid": null,
        "atomic": "sermon"
      },
      "command_unit": "sermon",
      "word_count_range": [
        50000,
        150000
      ],
      "page_range": [
        200,
        600
      ],
      "unit_count_range": [
        30,
        60
      ],
      "unit_word_range": [
        1500,
        4000
      ],
      "unit_page_range": [
        6,
        16
      ]
    }
  },
  "commands": {
    "new-work": {
      "category": "core",
      "available": [
        "all"
      ],
      "description": "Initialize a new creative work"
    },
    "discuss": {
      "category": "core",
      "available": [
        "all"
      ],
      "renames_by_unit": true,
      "description": "Shape the next unit before planning"
    },
    "plan": {
      "category": "core",
      "available": [
        "all"
      ],
      "renames_by_unit": true,
      "description": "Research and plan the next unit"
    },
    "draft": {
      "category": "core",
      "available": [
        "all"
      ],
      "renames_by_unit": true,
      "description": "Draft the planned unit"
    },
    "editor-review": {
      "category": "core",
      "available": [
        "all"
      ],
      "adapted": {
        "academic": {
          "rename": "peer-review"
        },
        "technical": {
          "rename": "technical-review"
        },
        "sacred": {
          "rename": "scholarly-review"
        }
      },
      "description": "Manual review of drafted unit and editor-writer collaboration workflow",
      "collaboration_flags": [
        "--proposal",
        "--notes",
        "--respond"
      ],
      "collaboration_artifacts": [
        "proposals/",
        "editor-notes/",
        "decisions.json"
      ]
    },
    "submit": {
      "category": "core",
      "available": [
        "all"
      ],
      "renames_by_unit": true,
      "description": "Package and finalize unit"
    },
    "next": {
      "category": "navigation",
      "available": [
        "all"
      ],
      "description": "Auto-detect and run the next workflow step"
    },
    "first-run": {
      "category": "navigation",
      "available": [
        "all"
      ],
      "description": "Guided first-run path through proof, demo, runtime checks, and starter choices"
    },
    "do": {
      "category": "navigation",
      "available": [
        "all"
      ],
      "description": "Natural language router for free-text commands"
    },
    "help": {
      "category": "navigation",
      "available": [
        "all"
      ],
      "description": "Show available commands grouped by stage"
    },
    "progress": {
      "category": "navigation",
      "available": [
        "all"
      ],
      "description": "Show current state and next step"
    },
    "demo": {
      "category": "navigation",
      "available": [
        "all"
      ],
      "description": "Launch pre-built sample project sandbox"
    },
    "import": {
      "category": "navigation",
      "available": [
        "all"
      ],
      "description": "Import existing manuscript into Scriveno structure"
    },
    "map-manuscript": {
      "category": "navigation",
      "available": [
        "all"
      ],
      "description": "Analyze existing manuscript structure, voice, characters, and themes"
    },
    "voice-test": {
      "category": "quality",
      "available": [
        "all"
      ],
      "description": "Voice calibration before first draft using a work-type-aware sample"
    },
    "new-people": {
      "category": "character_world",
      "available": [
        "prose",
        "script",
        "visual",
        "interactive",
        "sacred"
      ],
      "hidden": [
        "academic",
        "technical",
        "poetry",
        "speech_song"
      ],
      "description": "Build a people (race, faction, culture, nation) as a collective entity, the tier above individual characters"
    },
    "new-character": {
      "category": "character_world",
      "available": [
        "prose",
        "script",
        "visual",
        "interactive"
      ],
      "adapted": {
        "academic": {
          "rename": "new-concept",
          "behavior": "academic_concept"
        },
        "sacred": {
          "rename": "new-figure",
          "behavior": "sacred_figure"
        }
      },
      "hidden": [
        "poetry",
        "speech_song"
      ],
      "requires": [
        "WORK.md"
      ],
      "description": "Build a complete character profile through guided interactive interview."
    },
    "character-sheet": {
      "category": "character_world",
      "available": [
        "prose",
        "script",
        "visual",
        "interactive"
      ],
      "adapted": {
        "academic": {
          "rename": "concept-sheet"
        },
        "sacred": {
          "rename": "figure-sheet"
        }
      },
      "hidden": [
        "poetry",
        "speech_song"
      ],
      "requires": [
        "CHARACTERS.md"
      ],
      "description": "Display or edit a specific character's full profile."
    },
    "character-touch": {
      "category": "character_world",
      "available": [
        "prose",
        "script",
        "visual",
        "interactive",
        "sacred"
      ],
      "adapted": {
        "sacred": {
          "rename": "figure-touch"
        }
      },
      "hidden": [
        "academic",
        "poetry",
        "speech_song"
      ],
      "requires": [
        "CHARACTERS.md",
        "draft_exists"
      ],
      "description": "Update a character's evolving state (emotional position, knowledge, possessions, relationships) after a unit lands."
    },
    "relationship-map": {
      "category": "character_world",
      "available": [
        "prose",
        "script",
        "visual",
        "interactive"
      ],
      "adapted": {
        "sacred": {
          "rename": "lineage-map"
        }
      },
      "hidden": [
        "academic",
        "poetry",
        "speech_song"
      ],
      "requires": [
        "CHARACTERS.md",
        {
          "min_characters": 2
        }
      ],
      "description": "Generate an ASCII relationship graph between cast entries."
    },
    "build-world": {
      "category": "character_world",
      "available": [
        "prose",
        "script",
        "technical",
        "visual",
        "interactive"
      ],
      "adapted": {
        "technical": {
          "rename": "map-system"
        },
        "sacred": {
          "rename": "build-cosmology"
        }
      },
      "hidden": [
        "academic",
        "poetry",
        "speech_song"
      ],
      "description": "Generate or refine the world document through progressive questioning."
    },
    "new-place": {
      "category": "character_world",
      "available": [
        "prose",
        "script",
        "academic",
        "technical",
        "visual",
        "interactive",
        "sacred"
      ],
      "hidden": [
        "poetry",
        "speech_song"
      ],
      "requires": [
        "WORK.md"
      ],
      "description": "Create a confirmed place profile in PLACES.md through guided questions"
    },
    "place-touch": {
      "category": "character_world",
      "available": [
        "prose",
        "script",
        "academic",
        "technical",
        "visual",
        "interactive",
        "sacred"
      ],
      "hidden": [
        "poetry",
        "speech_song"
      ],
      "requires": [
        "WORLD.md"
      ],
      "description": "Update a place's evolving geography, appearances, research status, or continuity rules"
    },
    "geography-map": {
      "category": "character_world",
      "available": [
        "prose",
        "script",
        "academic",
        "technical",
        "visual",
        "interactive",
        "sacred"
      ],
      "hidden": [
        "poetry",
        "speech_song"
      ],
      "requires": [
        "WORLD.md"
      ],
      "description": "Render or regenerate the derived geography map from PLACES.md and the world surface"
    },
    "cast-list": {
      "category": "character_world",
      "available": [
        "prose",
        "script",
        "visual",
        "interactive"
      ],
      "adapted": {
        "sacred": {
          "rename": "figures-list"
        }
      },
      "hidden": [
        "academic",
        "poetry",
        "speech_song"
      ],
      "description": "Display the roster of all cast entries with roles and brief descriptions."
    },
    "character-arc": {
      "category": "character_world",
      "available": [
        "prose",
        "script",
        "visual",
        "interactive"
      ],
      "adapted": {
        "sacred": {
          "rename": "figure-arc"
        }
      },
      "hidden": [
        "academic",
        "poetry",
        "speech_song"
      ],
      "description": "Visualize a character's emotional and growth arc across the story."
    },
    "character-voice-sample": {
      "category": "character_world",
      "available": [
        "prose",
        "script",
        "visual",
        "interactive"
      ],
      "adapted": {
        "sacred": {
          "rename": "register-sample"
        }
      },
      "hidden": [
        "academic",
        "poetry",
        "speech_song"
      ],
      "description": "Generate a dialogue sample to preview a character's voice before drafting."
    },
    "climax": {
      "category": "structure",
      "available": [
        "prose",
        "script",
        "visual",
        "interactive",
        "sacred"
      ],
      "hidden": [
        "poetry",
        "speech_song",
        "academic",
        "technical"
      ],
      "requires": [
        "OUTLINE.md"
      ],
      "description": "Generate and pressure-test the story's climax where the central conflict, the crisis, character arcs, and planted payoffs converge"
    },
    "plot-graph": {
      "category": "structure",
      "available": [
        "prose",
        "script",
        "technical",
        "visual",
        "interactive"
      ],
      "adapted": {
        "academic": {
          "rename": "argument-map"
        },
        "technical": {
          "rename": "procedure-map"
        },
        "sacred": {
          "rename": "theological-arc"
        }
      },
      "hidden": [
        "poetry",
        "speech_song"
      ],
      "requires": [
        "OUTLINE.md"
      ],
      "description": "Visualize and manage the narrative arc structure of the story."
    },
    "timeline": {
      "category": "structure",
      "available": [
        "prose",
        "script",
        "academic",
        "visual",
        "interactive"
      ],
      "adapted": {
        "sacred": {
          "rename": "chronology"
        }
      },
      "hidden": [
        "poetry",
        "speech_song"
      ],
      "description": "Generate a chronological event timeline from the outline."
    },
    "theme-tracker": {
      "category": "structure",
      "available": [
        "prose",
        "script",
        "visual",
        "poetry",
        "interactive"
      ],
      "adapted": {
        "academic": {
          "rename": "research-questions"
        },
        "sacred": {
          "rename": "doctrine-tracker"
        }
      },
      "hidden": [
        "speech_song"
      ],
      "description": "Track thematic threads across the work with auto-detection suggestions."
    },
    "subject-touch": {
      "category": "structure",
      "available": [
        "all"
      ],
      "adapted": {
        "academic": {
          "rename": "concept-touch"
        },
        "technical": {
          "rename": "procedure-touch"
        },
        "sacred": {
          "rename": "doctrine-touch"
        }
      },
      "description": "Update evolving subject, concept, procedure, doctrine, object, image, or reader-state movement",
      "requires": [
        "THEMES.md",
        "draft_exists"
      ]
    },
    "subplot-map": {
      "category": "structure",
      "available": [
        "prose",
        "script",
        "interactive"
      ],
      "adapted": {
        "sacred": {
          "rename": "narrative-threads"
        }
      },
      "hidden": [
        "academic",
        "visual",
        "poetry",
        "speech_song"
      ],
      "description": "Visualize subplot threads and their intersections across the work."
    },
    "outline": {
      "category": "structure",
      "available": [
        "prose",
        "script",
        "academic",
        "technical",
        "visual",
        "interactive",
        "sacred"
      ],
      "adapted": {},
      "hidden": [
        "poetry",
        "speech_song"
      ],
      "requires": [
        "OUTLINE.md"
      ],
      "description": "Display or edit the structural outline of the work."
    },
    "add-unit": {
      "category": "structure_management",
      "available": [
        "prose",
        "script",
        "academic",
        "technical",
        "visual",
        "interactive",
        "sacred"
      ],
      "adapted": {},
      "hidden": [
        "poetry",
        "speech_song"
      ],
      "requires": [
        "OUTLINE.md"
      ],
      "description": "Add a new unit to the end of the outline."
    },
    "insert-unit": {
      "category": "structure_management",
      "available": [
        "prose",
        "script",
        "academic",
        "technical",
        "visual",
        "interactive",
        "sacred"
      ],
      "adapted": {},
      "hidden": [
        "poetry",
        "speech_song"
      ],
      "requires": [
        "OUTLINE.md"
      ],
      "description": "Insert a new unit at a specific position in the outline."
    },
    "remove-unit": {
      "category": "structure_management",
      "available": [
        "prose",
        "script",
        "academic",
        "technical",
        "visual",
        "interactive",
        "sacred"
      ],
      "adapted": {},
      "hidden": [
        "poetry",
        "speech_song"
      ],
      "requires": [
        "OUTLINE.md"
      ],
      "description": "Remove a unit from the outline with draft safety checks."
    },
    "split-unit": {
      "category": "structure_management",
      "available": [
        "prose",
        "script",
        "academic",
        "technical",
        "visual",
        "interactive",
        "sacred"
      ],
      "adapted": {},
      "hidden": [
        "poetry",
        "speech_song"
      ],
      "requires": [
        "OUTLINE.md"
      ],
      "description": "Split one unit into two at a specified point."
    },
    "merge-units": {
      "category": "structure_management",
      "available": [
        "prose",
        "script",
        "academic",
        "technical",
        "visual",
        "interactive",
        "sacred"
      ],
      "adapted": {},
      "hidden": [
        "poetry",
        "speech_song"
      ],
      "requires": [
        "OUTLINE.md"
      ],
      "description": "Merge two adjacent units into one."
    },
    "reorder-units": {
      "category": "structure_management",
      "available": [
        "prose",
        "script",
        "academic",
        "technical",
        "visual",
        "interactive",
        "sacred"
      ],
      "adapted": {},
      "hidden": [
        "poetry",
        "speech_song"
      ],
      "requires": [
        "OUTLINE.md"
      ],
      "description": "Reorder units in the outline by moving a unit to a new position."
    },
    "continuity-check": {
      "category": "review",
      "available": [
        "prose",
        "script",
        "technical",
        "visual",
        "interactive"
      ],
      "adapted": {
        "academic": {
          "rename": "citation-check"
        },
        "technical": {
          "rename": "consistency-check"
        },
        "sacred": {
          "rename": "doctrinal-check"
        }
      },
      "hidden": [
        "poetry",
        "speech_song"
      ],
      "requires": [
        "draft_exists"
      ],
      "description": "Automated continuity verification to scan for narrative contradictions across the manuscript."
    },
    "voice-check": {
      "category": "review",
      "available": [
        "all"
      ],
      "adapted": {
        "sacred": {
          "rename": "register-check"
        }
      },
      "requires": [
        "draft_exists",
        "STYLE-GUIDE.md"
      ],
      "description": "Compare drafted prose against STYLE-GUIDE.md to detect voice drift."
    },
    "sensitivity-review": {
      "category": "review",
      "available": [
        "all"
      ],
      "adapted": {
        "academic": {
          "rename": "ethics-review"
        },
        "sacred": {
          "rename": "interfaith-review"
        }
      },
      "requires": [
        "draft_exists"
      ],
      "description": "Flag potential sensitivity issues with context, suggest alternatives, and note intentional craft."
    },
    "pacing-analysis": {
      "category": "review",
      "available": [
        "prose",
        "script",
        "academic",
        "visual",
        "interactive",
        "sacred"
      ],
      "hidden": [
        "poetry",
        "speech_song"
      ],
      "requires": [
        "draft_exists"
      ],
      "description": "Generate a structure-aware pacing report analyzing scene tempo and narrative flow."
    },
    "bridge": {
      "category": "review",
      "available": [
        "prose",
        "script",
        "academic",
        "visual",
        "interactive",
        "sacred"
      ],
      "hidden": [
        "poetry",
        "speech_song"
      ],
      "requires": [
        "draft_exists"
      ],
      "description": "Diagnose a weak seam between two units and offer transition fixes in the writer's voice."
    },
    "dialogue-audit": {
      "category": "review",
      "available": [
        "prose",
        "script",
        "interactive"
      ],
      "adapted": {
        "visual": {
          "behavior": "balloon_text"
        }
      },
      "hidden": [
        "academic",
        "poetry",
        "speech_song",
        "sacred"
      ],
      "requires": [
        "draft_exists"
      ],
      "description": "Audit dialogue for character voice differentiation, attribution clarity, and talking-head detection."
    },
    "beta-reader": {
      "category": "review",
      "description": "Simulate a beta reader's experience of the manuscript using a fresh-context reader persona (same model, not a second or external AI).",
      "available": [
        "all"
      ],
      "adapted": {
        "academic": {
          "rename": "reviewer-simulation"
        },
        "technical": {
          "rename": "usability-review"
        },
        "sacred": {
          "rename": "theological-review"
        }
      },
      "requires": [
        "draft_exists"
      ]
    },
    "originality-check": {
      "category": "review",
      "available": [
        "all"
      ],
      "requires": [
        "draft_exists"
      ],
      "description": "Scan drafted prose for AI-generated patterns and unintentional similarity to published works."
    },
    "line-edit": {
      "category": "quality",
      "available": [
        "all"
      ],
      "requires": [
        "draft_exists"
      ],
      "description": "Perform a line-level prose quality pass with inline annotations."
    },
    "copy-edit": {
      "category": "quality",
      "available": [
        "all"
      ],
      "requires": [
        "draft_exists"
      ],
      "description": "Perform a correctness pass for grammar, spelling, punctuation, and consistency."
    },
    "polish": {
      "category": "quality",
      "available": [
        "all"
      ],
      "requires": [
        "draft_exists",
        "STYLE-GUIDE.md"
      ],
      "description": "Chain line-edit, copy-edit, and voice-check for comprehensive prose polish."
    },
    "quick-write": {
      "category": "quality",
      "available": [
        "all"
      ],
      "description": "Write a scene, passage, or chapter outside the full planning workflow."
    },
    "cover-art": {
      "category": "illustration",
      "available": [
        "prose",
        "visual",
        "poetry",
        "sacred"
      ],
      "hidden": [
        "script",
        "academic",
        "interactive",
        "speech_song"
      ],
      "requires": [
        "WORK.md"
      ],
      "description": "Generate structured cover art prompts and delivery briefs for ebook, paperback, and hardcover covers."
    },
    "illustrate-scene": {
      "category": "illustration",
      "available": [
        "prose",
        "visual",
        "interactive",
        "sacred"
      ],
      "hidden": [
        "script",
        "academic",
        "poetry",
        "speech_song"
      ],
      "requires": [
        "ART-DIRECTION.md",
        "draft_exists"
      ],
      "description": "Generate a scene-specific illustration prompt with character visuals, setting, and mood."
    },
    "character-ref": {
      "category": "illustration",
      "available": [
        "prose",
        "script",
        "visual",
        "interactive"
      ],
      "adapted": {
        "sacred": {
          "rename": "figure-ref"
        }
      },
      "hidden": [
        "academic",
        "poetry",
        "speech_song"
      ],
      "description": "Generate a character visual reference sheet prompt for illustration consistency."
    },
    "art-direction": {
      "category": "illustration",
      "available": [
        "prose",
        "visual",
        "interactive",
        "sacred"
      ],
      "hidden": [
        "script",
        "academic",
        "poetry",
        "speech_song"
      ],
      "description": "Generate or refine the visual style bible for illustrations and cover art."
    },
    "chapter-header": {
      "category": "illustration",
      "available": [
        "prose",
        "sacred"
      ],
      "hidden": [
        "script",
        "academic",
        "visual",
        "poetry",
        "interactive",
        "speech_song"
      ],
      "description": "Generate decorative chapter header/ornament design prompts."
    },
    "map-illustration": {
      "category": "illustration",
      "available": [
        "prose",
        "visual",
        "interactive",
        "sacred"
      ],
      "hidden": [
        "script",
        "academic",
        "poetry",
        "speech_song"
      ],
      "requires": [
        "WORLD.md"
      ],
      "description": "Generate world or regional map illustration prompts from WORLD.md geographic content."
    },
    "spread-layout": {
      "category": "illustration",
      "available": [
        "visual"
      ],
      "hidden": [
        "prose",
        "script",
        "academic",
        "poetry",
        "interactive",
        "speech_song",
        "sacred"
      ],
      "description": "Generate children's book page spread layouts with text and illustration zones."
    },
    "panel-layout": {
      "category": "illustration",
      "available": [
        "visual"
      ],
      "constraint": "comic_only",
      "hidden": [
        "prose",
        "script",
        "academic",
        "poetry",
        "interactive",
        "speech_song",
        "sacred"
      ],
      "description": "Generate comic panel layouts with composition notes and balloon placement."
    },
    "storyboard": {
      "category": "illustration",
      "available": [
        "script",
        "visual"
      ],
      "hidden": [
        "prose",
        "academic",
        "poetry",
        "interactive",
        "speech_song",
        "sacred"
      ],
      "description": "Generate storyboard frames for script and visual work types with camera direction."
    },
    "front-matter": {
      "category": "publishing",
      "available": [
        "prose",
        "script",
        "academic",
        "visual",
        "sacred"
      ],
      "adapted": {
        "academic": {
          "behavior": "academic_front_matter"
        },
        "sacred": {
          "behavior": "sacred_front_matter"
        }
      },
      "hidden": [
        "poetry",
        "interactive",
        "speech_song"
      ],
      "requires": [
        "complete-draft"
      ],
      "description": "Generate publication-ready front matter elements in Chicago Manual of Style order."
    },
    "back-matter": {
      "category": "publishing",
      "available": [
        "prose",
        "script",
        "academic",
        "visual",
        "sacred"
      ],
      "adapted": {
        "academic": {
          "behavior": "academic_back_matter"
        },
        "sacred": {
          "behavior": "sacred_back_matter"
        }
      },
      "hidden": [
        "poetry",
        "interactive",
        "speech_song"
      ],
      "requires": [
        "complete-draft"
      ],
      "description": "Generate publication-ready back matter elements."
    },
    "blurb": {
      "category": "publishing",
      "available": [
        "prose",
        "script",
        "visual",
        "poetry",
        "interactive",
        "sacred"
      ],
      "hidden": [
        "academic",
        "speech_song"
      ],
      "requires": [
        "complete-draft"
      ],
      "description": "Generate marketing blurb in three variations for back cover and retailer listings."
    },
    "synopsis": {
      "category": "publishing",
      "available": [
        "prose",
        "script",
        "visual"
      ],
      "hidden": [
        "academic",
        "poetry",
        "interactive",
        "speech_song",
        "sacred"
      ],
      "requires": [
        "complete-draft"
      ],
      "description": "Generate plot synopsis at specified length for query and submission packages."
    },
    "query-letter": {
      "category": "publishing",
      "available": [
        "prose",
        "script",
        "sacred"
      ],
      "hidden": [
        "academic",
        "visual",
        "poetry",
        "interactive",
        "speech_song"
      ],
      "requires": [
        "blurb",
        "synopsis"
      ],
      "description": "Generate agent query letter adapted to genre conventions."
    },
    "book-proposal": {
      "category": "publishing",
      "available": [
        "prose",
        "sacred"
      ],
      "constraint": "nonfiction_only",
      "hidden": [
        "script",
        "academic",
        "visual",
        "poetry",
        "interactive",
        "speech_song"
      ],
      "requires": [
        "synopsis"
      ],
      "description": "Generate nonfiction book proposal for agent or publisher submission."
    },
    "discussion-questions": {
      "category": "publishing",
      "available": [
        "prose"
      ],
      "adapted": {
        "sacred": {
          "rename": "study-questions"
        }
      },
      "hidden": [
        "script",
        "academic",
        "visual",
        "poetry",
        "interactive",
        "speech_song"
      ],
      "requires": [
        "complete-draft"
      ],
      "description": "Generate reading group discussion questions exploring themes, characters, and craft."
    },
    "prepublish-review": {
      "category": "publishing",
      "available": [
        "all"
      ],
      "description": "Run a final editorial go/no-go review before export or publishing",
      "requires": [
        "complete-draft"
      ]
    },
    "compliance-check": {
      "category": "publishing",
      "available": [
        "all"
      ],
      "description": "Check platform policies, copyright diligence, and AI-disclosure duties before upload",
      "requires": [
        "complete-draft"
      ]
    },
    "publish": {
      "category": "publishing",
      "available": [
        "all"
      ],
      "description": "Publishing wizard or preset-driven pipeline. Chains export commands based on destination and enforces final compliance gates for retail, print, and distributor packages."
    },
    "export": {
      "category": "publishing",
      "available": [
        "all"
      ],
      "description": "Compile and export manuscript to publication-ready and review formats (markdown, docx, pdf, review PDF, epub, fountain, fdx, latex, packages)",
      "requires": [
        "complete-draft"
      ]
    },
    "autopilot-publish": {
      "category": "publishing",
      "available": [
        "all"
      ],
      "description": "Run full publishing pipeline unattended with quality gate",
      "requires": [
        "complete-draft"
      ]
    },
    "build-ebook": {
      "category": "publishing",
      "available": [
        "prose",
        "visual",
        "poetry",
        "interactive",
        "sacred"
      ],
      "description": "Build EPUB with platform-aware accessibility guardrails (Pandoc + EAA compliance)",
      "requires": [
        "complete-draft"
      ]
    },
    "build-print": {
      "category": "publishing",
      "available": [
        "prose",
        "visual",
        "poetry",
        "sacred",
        "academic",
        "script"
      ],
      "description": "Build print-ready PDF with platform trim sizes and page-count guardrails (Pandoc + Typst), and academic publisher class wrappers for IEEE, ACM, Springer LNCS, Elsevier, and APA7 (Pandoc + LaTeX).",
      "requires": [
        "complete-draft"
      ]
    },
    "build-smashwords": {
      "category": "publishing",
      "available": [
        "prose",
        "visual"
      ],
      "description": "Build Smashwords/D2D-compliant DOCX via Pandoc --reference-doc (no tabs, first-line indent via style, auto-TOC)",
      "requires": [
        "complete-draft"
      ]
    },
    "build-poetry-submission": {
      "category": "publishing",
      "available": [
        "poetry"
      ],
      "description": "Build poetry submission manuscript DOCX (one poem per page, 12pt Times/Garamond, title page, TOC)",
      "requires": [
        "complete-draft"
      ]
    },
    "translate": {
      "category": "translation",
      "available": [
        "all"
      ],
      "description": "Translate manuscript per-unit using fresh-context-per-unit pattern with glossary and translation memory",
      "requires": [
        "complete-draft"
      ]
    },
    "translation-glossary": {
      "category": "translation",
      "available": [
        "all"
      ],
      "description": "Create and manage bilingual term glossary for consistent translation"
    },
    "translation-memory": {
      "category": "translation",
      "available": [
        "all"
      ],
      "description": "Build and manage translation memory from completed translations"
    },
    "cultural-adaptation": {
      "category": "translation",
      "available": [
        "all"
      ],
      "description": "Flag idioms, humor, customs, and cultural references that need localization",
      "requires": [
        "translate"
      ]
    },
    "back-translate": {
      "category": "translation",
      "available": [
        "all"
      ],
      "description": "Translate translation back to source language for side-by-side verification",
      "requires": [
        "translate"
      ]
    },
    "multi-publish": {
      "category": "translation",
      "available": [
        "all"
      ],
      "description": "Export translated editions in all target formats with localized front/back matter",
      "requires": [
        "translate"
      ]
    },
    "autopilot-translate": {
      "category": "translation",
      "available": [
        "all"
      ],
      "description": "Run multi-language translation pipeline unattended with glossary, translation, and publishing",
      "requires": [
        "complete-draft"
      ]
    },
    "sacred:concordance": {
      "category": "sacred_exclusive",
      "available": [
        "sacred"
      ],
      "hidden": [
        "prose",
        "script",
        "academic",
        "visual",
        "poetry",
        "interactive",
        "speech_song"
      ],
      "requires": [
        "draft_exists"
      ],
      "description": "Build or search a concordance of key terms, names, and phrases across the sacred text. Essential for cross-referencing and intertextual study."
    },
    "sacred:cross-reference": {
      "category": "sacred_exclusive",
      "available": [
        "sacred"
      ],
      "hidden": [
        "prose",
        "script",
        "academic",
        "visual",
        "poetry",
        "interactive",
        "speech_song"
      ],
      "requires": [
        "draft_exists"
      ],
      "description": "Map connections between passages -- parallel accounts, prophetic fulfillments, intertextual echoes, typological links."
    },
    "sacred:genealogy": {
      "category": "sacred_exclusive",
      "available": [
        "sacred"
      ],
      "hidden": [
        "prose",
        "script",
        "academic",
        "visual",
        "poetry",
        "interactive",
        "speech_song"
      ],
      "requires": [
        "FIGURES.md",
        {
          "min_figures": 2
        }
      ],
      "description": "Build and verify genealogical trees and lineages for figures in the text. Catches contradictions across chapters."
    },
    "sacred:chronology": {
      "category": "sacred_exclusive",
      "available": [
        "sacred"
      ],
      "hidden": [
        "prose",
        "script",
        "academic",
        "visual",
        "poetry",
        "interactive",
        "speech_song"
      ],
      "description": "Timeline management with era-appropriate dating systems. Handles overlapping calendars and disputed dates."
    },
    "sacred:annotation-layer": {
      "category": "sacred_exclusive",
      "available": [
        "sacred"
      ],
      "hidden": [
        "prose",
        "script",
        "academic",
        "visual",
        "poetry",
        "interactive",
        "speech_song"
      ],
      "requires": [
        "draft_exists"
      ],
      "description": "Add or manage a commentary/exegetical layer alongside the primary sacred text. Support multiple annotation traditions simultaneously."
    },
    "sacred:verse-numbering": {
      "category": "sacred_exclusive",
      "available": [
        "sacred"
      ],
      "hidden": [
        "prose",
        "script",
        "academic",
        "visual",
        "poetry",
        "interactive",
        "speech_song"
      ],
      "requires": [
        "draft_exists"
      ],
      "description": "Manage verse/ayah/pasuk numbering systems. Handles differences between traditions (Masoretic vs. Septuagint numbering, Hafs vs. Warsh Quranic numbering, etc.)"
    },
    "sacred-numbering-format": {
      "category": "sacred_exclusive",
      "available": [
        "sacred"
      ],
      "hidden": [
        "prose",
        "script",
        "academic",
        "visual",
        "poetry",
        "interactive",
        "speech_song"
      ],
      "requires": [
        "config.tradition"
      ],
      "description": "Show verse numbering format for the active sacred tradition."
    },
    "sacred:source-tracking": {
      "category": "sacred_exclusive",
      "available": [
        "sacred"
      ],
      "hidden": [
        "prose",
        "script",
        "academic",
        "visual",
        "poetry",
        "interactive",
        "speech_song"
      ],
      "description": "Track primary sources, oral traditions, manuscript variants, and source attributions. For historical and critical editions."
    },
    "sacred:doctrinal-check": {
      "category": "sacred_exclusive",
      "available": [
        "sacred"
      ],
      "hidden": [
        "prose",
        "script",
        "academic",
        "visual",
        "poetry",
        "interactive",
        "speech_song"
      ],
      "requires": [
        "draft_exists",
        "DOCTRINES.md"
      ],
      "description": "Verify internal theological and doctrinal consistency across the text. Flag contradictions in doctrine, moral teaching, or cosmological claims."
    },
    "manager": {
      "category": "utility",
      "available": [
        "all"
      ],
      "description": "Interactive command center for managing multiple writing projects"
    },
    "health": {
      "category": "utility",
      "available": [
        "all"
      ],
      "description": "Diagnose and repair common project state issues"
    },
    "surface": {
      "category": "utility",
      "available": [
        "all"
      ],
      "description": "Inspect or change the installed Scriveno command profile"
    },
    "proof-unit": {
      "category": "core",
      "available": [
        "all"
      ],
      "description": "Run one manuscript unit through a proof path from voice profile to export readiness",
      "requires": [
        "profile-writer"
      ]
    },
    "scan": {
      "category": "utility",
      "available": [
        "all"
      ],
      "description": "Detect drift between recorded state (STATE.md, OUTLINE.md, config.json) and what is on disk"
    },
    "sync": {
      "category": "utility",
      "available": [
        "all"
      ],
      "description": "Synchronize installed Scriveno runtime commands, skills, and agents with the current source"
    },
    "cleanup": {
      "category": "utility",
      "available": [
        "all"
      ],
      "description": "Strip template scaffold markers from draft files"
    },
    "validate": {
      "category": "utility",
      "available": [
        "all"
      ],
      "description": "Scan manuscript for unresolved scaffold markers before export"
    },
    "fast": {
      "category": "utility",
      "available": [
        "all"
      ],
      "description": "Make a quick inline edit without full planning overhead"
    },
    "research": {
      "category": "utility",
      "available": [
        "all"
      ],
      "description": "Add sourced advisory research notes for any topic without changing project canon"
    },
    "add-note": {
      "category": "utility",
      "available": [
        "all"
      ],
      "description": "Add a quick note or reminder to the project notes file"
    },
    "check-notes": {
      "category": "utility",
      "available": [
        "all"
      ],
      "description": "Review all project notes"
    },
    "plant-seed": {
      "category": "utility",
      "available": [
        "all"
      ],
      "description": "Plant a creative seed -- an idea, image, or fragment for future use"
    },
    "troubleshoot": {
      "category": "utility",
      "available": [
        "all"
      ],
      "description": "Diagnose why something isn't working and suggest fixes"
    },
    "thread": {
      "category": "utility",
      "available": [
        "all"
      ],
      "description": "Start or continue a focused conversation thread on a specific topic"
    },
    "settings": {
      "category": "utility",
      "available": [
        "all"
      ],
      "description": "View or modify project settings."
    },
    "profile-writer": {
      "category": "utility",
      "available": [
        "all"
      ],
      "description": "Build or refine the writer's Voice DNA profile through questionnaire, sample analysis, or reference authors."
    },
    "save": {
      "category": "session",
      "available": [
        "all"
      ],
      "description": "Save your current work. Auto-generates a descriptive save message from context."
    },
    "history": {
      "category": "session",
      "available": [
        "all"
      ],
      "description": "See the timeline of your saves. Shows when you saved and what you were working on."
    },
    "compare": {
      "category": "session",
      "available": [
        "all"
      ],
      "description": "Compare your current work with a previous save. Shows changes in plain prose, not code diff."
    },
    "versions": {
      "category": "session",
      "available": [
        "all"
      ],
      "description": "List your draft versions with readable labels."
    },
    "undo": {
      "category": "session",
      "available": [
        "all"
      ],
      "description": "Undo your last save and go back to the previous version."
    },
    "pause-work": {
      "category": "session",
      "available": [
        "all"
      ],
      "description": "Pause your work session. Captures where you are and what you were thinking so you can pick up later."
    },
    "resume-work": {
      "category": "session",
      "available": [
        "all"
      ],
      "description": "Pick up where you left off. Reads your last session and tells you what's next."
    },
    "session-report": {
      "category": "session",
      "available": [
        "all"
      ],
      "description": "See what you accomplished this session. Shows units drafted, words written, and time spent."
    },
    "track": {
      "category": "collaboration",
      "description": "Manage revision tracks -- create, switch, compare, merge, and propose changes",
      "subcommands": [
        "create",
        "list",
        "switch",
        "compare",
        "merge",
        "propose"
      ],
      "available": [
        "prose",
        "script",
        "academic",
        "technical",
        "visual",
        "sacred",
        "poetry",
        "interactive",
        "speech_song"
      ],
      "hidden": [],
      "requires": [],
      "co_writing": true
    },
    "manuscript-stats": {
      "category": "navigation",
      "available": [
        "all"
      ],
      "description": "Show manuscript word count, chapter count, estimated page count, and reading time."
    },
    "complete-draft": {
      "category": "core",
      "available": [
        "all"
      ],
      "description": "Mark the entire manuscript draft as complete."
    },
    "new-revision": {
      "category": "core",
      "available": [
        "all"
      ],
      "description": "Start a new revision of the manuscript. Archives the current draft and begins a fresh pass."
    },
    "autopilot": {
      "category": "core",
      "available": [
        "all"
      ],
      "description": "Run the full drafting pipeline autonomously. Choose guided, supervised, or full-auto profiles."
    },
    "cycle": {
      "category": "core",
      "available": [
        "all"
      ],
      "description": "Run one unit through the full pipeline -- discuss, plan, draft, editor-review, line-edit, submit, save. Guided by default."
    },
    "series-bible": {
      "category": "core",
      "available": [
        "all"
      ],
      "description": "Create, view, or check the series bible -- a persistent cross-book knowledge base for multi-volume works (novel series, TV seasons, comic runs, sequel trilogies, multi-book commentaries)."
    }
  },
  "exports": {
    "markdown": {
      "available": [
        "all"
      ]
    },
    "docx_manuscript": {
      "available": [
        "prose",
        "script",
        "academic",
        "technical",
        "poetry",
        "speech_song",
        "sacred"
      ]
    },
    "docx_formatted": {
      "available": [
        "prose",
        "academic",
        "technical",
        "poetry",
        "speech_song",
        "sacred"
      ]
    },
    "pdf_manuscript": {
      "available": [
        "prose",
        "script",
        "academic",
        "technical",
        "visual",
        "poetry",
        "speech_song",
        "sacred"
      ]
    },
    "pdf_review": {
      "available": [
        "prose",
        "script",
        "academic",
        "technical",
        "visual",
        "poetry",
        "speech_song",
        "sacred"
      ]
    },
    "pdf_print_ready": {
      "available": [
        "prose",
        "visual",
        "poetry",
        "sacred"
      ]
    },
    "fountain": {
      "available": [
        "script"
      ]
    },
    "fdx": {
      "available": [
        "script"
      ],
      "constraint": "screenplay_or_tv_only"
    },
    "latex": {
      "available": [
        "academic",
        "sacred"
      ],
      "note_for_sacred": "critical editions"
    },
    "epub": {
      "available": [
        "prose",
        "visual",
        "poetry",
        "interactive",
        "sacred"
      ]
    },
    "build_ebook": {
      "available": [
        "prose",
        "visual",
        "poetry",
        "interactive",
        "sacred"
      ]
    },
    "build_print": {
      "available": [
        "prose",
        "visual",
        "poetry",
        "sacred",
        "academic",
        "script"
      ]
    },
    "mobi": {
      "available": [
        "prose",
        "visual",
        "sacred"
      ]
    },
    "kdp_package": {
      "available": [
        "prose",
        "visual",
        "poetry",
        "sacred"
      ]
    },
    "ingram_package": {
      "available": [
        "prose",
        "visual",
        "poetry",
        "sacred"
      ]
    },
    "query_package": {
      "available": [
        "prose",
        "script",
        "sacred"
      ]
    },
    "submission_package": {
      "available": [
        "prose",
        "script",
        "sacred"
      ]
    },
    "apa_mla_chicago": {
      "available": [
        "academic"
      ]
    },
    "bibtex": {
      "available": [
        "academic"
      ]
    }
  },
  "dependencies": {
    "core_chain": [
      {
        "command": "new-work",
        "requires": []
      },
      {
        "command": "discuss",
        "requires": [
          "OUTLINE.md"
        ]
      },
      {
        "command": "plan",
        "requires": [
          "{N}-CONTEXT.md"
        ]
      },
      {
        "command": "draft",
        "requires": [
          ".manuscript/plans/{N}-*-PLAN.md"
        ]
      },
      {
        "command": "editor-review",
        "requires": [
          ".manuscript/drafts/body/{N}-*-DRAFT.md"
        ]
      },
      {
        "command": "submit",
        "requires": [
          ".manuscript/reviews/{N}-REVIEW.md"
        ]
      },
      {
        "command": "complete-draft",
        "requires": [
          "all_units_submitted"
        ]
      },
      {
        "command": "new-revision",
        "requires": [
          "archived_draft"
        ]
      }
    ],
    "feature_prerequisites": {
      "relationship-map": [
        "CHARACTERS.md",
        {
          "min_characters": 2
        }
      ],
      "subplot-map": [
        "OUTLINE.md",
        {
          "min_threads": 2
        }
      ],
      "character-arc": [
        "CHARACTERS.md"
      ],
      "character-voice-sample": [
        "CHARACTERS.md",
        "STYLE-GUIDE.md"
      ],
      "plot-graph": [
        "OUTLINE.md"
      ],
      "timeline": [
        "OUTLINE.md"
      ],
      "theme-tracker": [
        "THEMES.md"
      ],
      "subject-touch": [
        "THEMES.md",
        "draft_exists"
      ],
      "continuity-check": [
        "draft_exists"
      ],
      "voice-check": [
        "draft_exists",
        "STYLE-GUIDE.md"
      ],
      "pacing-analysis": [
        "draft_exists"
      ],
      "dialogue-audit": [
        "draft_exists_with_dialogue"
      ],
      "beta-reader": [
        "draft_exists"
      ],
      "line-edit": [
        "draft_exists"
      ],
      "copy-edit": [
        "draft_exists"
      ],
      "sensitivity-review": [
        "draft_exists"
      ],
      "originality-check": [
        "draft_exists"
      ],
      "polish": [
        "draft_exists",
        "STYLE-GUIDE.md"
      ],
      "illustrate-scene": [
        "ART-DIRECTION.md",
        "scene_drafted"
      ],
      "character-ref": [
        "CHARACTERS.md"
      ],
      "cover-art": [
        "WORK.md"
      ],
      "map-illustration": [
        "WORLD.md"
      ],
      "sacred:concordance": [
        "draft_exists"
      ],
      "sacred:cross-reference": [
        "draft_exists"
      ],
      "sacred:genealogy": [
        "FIGURES.md",
        {
          "min_figures": 2
        }
      ],
      "sacred:chronology": [
        "OUTLINE.md"
      ],
      "sacred:annotation-layer": [
        "draft_exists"
      ],
      "sacred:verse-numbering": [
        "draft_exists"
      ],
      "sacred:source-tracking": [
        "WORK.md"
      ],
      "sacred:doctrinal-check": [
        "draft_exists",
        "DOCTRINES.md"
      ],
      "outline": [
        "OUTLINE.md"
      ],
      "add-unit": [
        "OUTLINE.md"
      ],
      "insert-unit": [
        "OUTLINE.md"
      ],
      "remove-unit": [
        "OUTLINE.md"
      ],
      "split-unit": [
        "OUTLINE.md"
      ],
      "merge-units": [
        "OUTLINE.md"
      ],
      "reorder-units": [
        "OUTLINE.md"
      ]
    },
    "publishing_prerequisites": {
      "front-matter": [
        "complete-draft"
      ],
      "back-matter": [
        "complete-draft"
      ],
      "blurb": [
        "complete-draft"
      ],
      "synopsis": [
        "complete-draft"
      ],
      "query-letter": [
        "blurb",
        "synopsis"
      ],
      "book-proposal": [
        "synopsis",
        "sample_chapter"
      ],
      "discussion-questions": [
        "complete-draft"
      ],
      "prepublish-review": [
        "complete-draft"
      ],
      "compliance-check": [
        "complete-draft"
      ],
      "export": [
        "complete-draft"
      ],
      "kdp-package": [
        "front-matter",
        "back-matter",
        "export"
      ],
      "translate": [
        "complete-draft"
      ],
      "translation-glossary": [],
      "translation-memory": [
        "translate"
      ],
      "cultural-adaptation": [
        "translate"
      ],
      "back-translate": [
        "translate"
      ],
      "multi-publish": [
        "translate",
        "kdp-package"
      ],
      "autopilot-translate": [
        "complete-draft"
      ]
    },
    "soft_prerequisites": {
      "draft": {
        "recommended": [
          "discuss"
        ],
        "without_it": "Uses defaults from STYLE-GUIDE.md"
      },
      "plan": {
        "recommended": [
          "research_enabled"
        ],
        "without_it": "Plans without genre research"
      },
      "cover-art": {
        "recommended": [
          "CHARACTERS.md",
          "ART-DIRECTION.md"
        ],
        "without_it": "Generates from WORK.md alone"
      },
      "translate": {
        "recommended": [
          "translation-glossary"
        ],
        "without_it": "Translates without term consistency"
      },
      "cultural-adaptation": {
        "recommended": [
          "translation-glossary"
        ],
        "without_it": "Flags issues without glossary context"
      },
      "back-translate": {
        "recommended": [
          "cultural-adaptation"
        ],
        "without_it": "Verifies without cultural adaptation context"
      },
      "multi-publish": {
        "recommended": [
          "back-translate",
          "cultural-adaptation"
        ],
        "without_it": "Publishes without quality verification"
      },
      "autopilot-translate": {
        "recommended": [
          "translation-glossary"
        ],
        "without_it": "Creates glossary automatically during pipeline"
      },
      "autopilot": {
        "recommended": [
          "profile-writer"
        ],
        "without_it": "Uses config defaults"
      }
    }
  },
  "command_adaptations": {
    "academic": {
      "copy-edit": {
        "adapted_name": "citation-check",
        "additional_focus": "citation format, bibliography consistency"
      },
      "beta-reader": {
        "adapted_name": "peer-review",
        "additional_focus": "methodology critique, argument strength"
      },
      "export": {
        "adapted_name": "journal-submit",
        "additional_presets": [
          "apa",
          "mla",
          "chicago"
        ]
      }
    },
    "technical": {
      "build-world": {
        "adapted_name": "map-system",
        "description": "System boundaries, environments, and operating context"
      },
      "plot-graph": {
        "adapted_name": "procedure-map",
        "description": "Procedure flow, escalation path, and task sequence"
      },
      "editor-review": {
        "adapted_name": "technical-review",
        "description": "Accuracy, clarity, and audience-fit review"
      },
      "beta-reader": {
        "adapted_name": "usability-review",
        "description": "Operator or reader trial for task completion"
      },
      "continuity-check": {
        "adapted_name": "consistency-check",
        "description": "Terminology, procedure, and version consistency"
      }
    },
    "sacred": {
      "new-character": {
        "adapted_name": "new-figure",
        "description": "Create figure profile"
      },
      "character-sheet": {
        "adapted_name": "figure-sheet",
        "description": "View/edit figure profile"
      },
      "character-arc": {
        "adapted_name": "figure-arc",
        "description": "Spiritual/historical arc"
      },
      "cast-list": {
        "adapted_name": "figures-list",
        "description": "Roster of all figures"
      },
      "relationship-map": {
        "adapted_name": "lineage-map",
        "description": "Genealogical/covenantal relationships"
      },
      "build-world": {
        "adapted_name": "build-cosmology",
        "description": "Sacred geography, cosmological framework"
      },
      "character-voice-sample": {
        "adapted_name": "register-sample",
        "description": "Voice register sample"
      },
      "voice-check": {
        "adapted_name": "register-check",
        "description": "Voice register consistency"
      },
      "plot-graph": {
        "adapted_name": "theological-arc",
        "description": "Salvation history or dharmic cycle"
      },
      "theme-tracker": {
        "adapted_name": "doctrine-tracker",
        "description": "Doctrinal threads"
      },
      "subplot-map": {
        "adapted_name": "narrative-threads",
        "description": "Narrative threads across text"
      },
      "character-ref": {
        "adapted_name": "figure-ref",
        "description": "Visual figure reference for sacred art"
      },
      "discussion-questions": {
        "adapted_name": "study-questions",
        "description": "Study/reflection questions"
      },
      "editor-review": {
        "adapted_name": "scholarly-review",
        "description": "Academic review"
      },
      "beta-reader": {
        "adapted_name": "theological-review",
        "description": "Doctrinal/pastoral review"
      },
      "sensitivity-review": {
        "adapted_name": "interfaith-review",
        "description": "Sensitivity across traditions"
      }
    }
  },
  "file_adaptations": {
    "default": {
      "BRIEF.md": "BRIEF.md",
      "RECORD.md": "RECORD.md",
      "PROGRESS.md": "PROGRESS.md",
      "CHARACTERS.md": "CHARACTERS.md",
      "RELATIONSHIPS.md": "RELATIONSHIPS.md",
      "WORLD.md": "WORLD.md",
      "PLOT-GRAPH.md": "PLOT-GRAPH.md",
      "THEMES.md": "THEMES.md",
      "PEOPLES.md": "PEOPLES.md"
    },
    "academic": {
      "BRIEF.md": "PROPOSAL.md",
      "RECORD.md": "RECORD.md",
      "PROGRESS.md": "PROGRESS.md",
      "CHARACTERS.md": "CONCEPTS.md",
      "WORLD.md": "CONTEXT.md",
      "PLOT-GRAPH.md": "ARGUMENT-MAP.md",
      "THEMES.md": "QUESTIONS.md"
    },
    "technical": {
      "BRIEF.md": "DOC-BRIEF.md",
      "RECORD.md": "RECORD.md",
      "PROGRESS.md": "PROGRESS.md",
      "CHARACTERS.md": "AUDIENCE.md",
      "RELATIONSHIPS.md": "DEPENDENCIES.md",
      "WORLD.md": "SYSTEM.md",
      "PLOT-GRAPH.md": "PROCEDURES.md",
      "THEMES.md": "REFERENCES.md"
    },
    "sacred": {
      "BRIEF.md": "FRAMEWORK.md",
      "RECORD.md": "RECORD.md",
      "PROGRESS.md": "PROGRESS.md",
      "CHARACTERS.md": "FIGURES.md",
      "RELATIONSHIPS.md": "LINEAGES.md",
      "WORLD.md": "COSMOLOGY.md",
      "PLOT-GRAPH.md": "THEOLOGICAL-ARC.md",
      "THEMES.md": "DOCTRINES.md"
    }
  },
  "sacred_config_schema": {
    "tradition": {
      "values": [
        "catholic",
        "orthodox",
        "tewahedo",
        "protestant",
        "jewish",
        "islamic-hafs",
        "islamic-warsh",
        "pali",
        "tibetan",
        "sanskrit"
      ],
      "required_when": "work_type.group == sacred",
      "description": "The specific sacred tradition profile slug for the work"
    },
    "verse_numbering_system": {
      "values": [
        "masoretic",
        "septuagint",
        "quranic_hafs",
        "quranic_warsh",
        "pali_canon",
        "custom"
      ],
      "default": null,
      "description": "Verse/passage numbering convention for the tradition"
    },
    "calendar_system": {
      "values": [
        "gregorian",
        "hebrew",
        "hijri",
        "vikram_samvat",
        "buddhist_era",
        "regnal",
        "multiple"
      ],
      "default": "gregorian",
      "description": "Calendar system used for dates and chronology"
    },
    "translation_philosophy": {
      "values": [
        "formal_equivalence",
        "dynamic_equivalence",
        "paraphrase",
        "interlinear"
      ],
      "default": "formal_equivalence",
      "description": "Approach to sacred text translation"
    },
    "canonical_alignment": {
      "type": "string",
      "examples": [
        "kjv",
        "nrsv",
        "niv",
        "sahih_international",
        "yusuf_ali"
      ],
      "default": null,
      "description": "Canonical translation to align vocabulary and phrasing with"
    },
    "annotation_traditions": {
      "type": "array",
      "examples": [
        "catholic",
        "reformed",
        "orthodox",
        "sunni",
        "shia",
        "theravada",
        "mahayana"
      ],
      "default": [],
      "description": "Annotation traditions to apply or reference"
    },
    "doctrinal_framework": {
      "type": "string",
      "examples": [
        "nicene_creed",
        "westminster_confession",
        "augsburg_confession",
        "aqidah_tahawiyya"
      ],
      "default": null,
      "description": "Doctrinal framework guiding interpretation"
    },
    "preserve_source_terms": {
      "type": "array",
      "default": [],
      "description": "Terms that should never be translated, kept in source language with transliteration"
    },
    "transliteration_style": {
      "values": [
        "academic",
        "popular",
        "tradition_standard"
      ],
      "default": "popular",
      "description": "Style of transliteration for non-Latin script terms"
    }
  },
  "surface_applicability": {
    "_description": "Decision tree for the variable .manuscript context surfaces (BRIEF, CHARACTERS, RELATIONSHIPS, WORLD, PLOT-GRAPH, THEMES, PEOPLES). Canonical names map to adapted filenames via file_adaptations. Universal files (WORK, OUTLINE, RECORD, STATE, PROGRESS, STYLE-GUIDE, WRITING-RULES) are always created and are not governed here. /scr:new-work creates every surface marked required or optional and skips not_applicable; /scr:help surfaces which apply. by_group is the default per work-type group; work_type_overrides is a partial patch over the group default for a specific type (a surface named in an override moves to that tier and is removed from the others).",
    "by_group": {
      "prose": {
        "required": [
          "BRIEF.md",
          "CHARACTERS.md",
          "WORLD.md",
          "PLOT-GRAPH.md",
          "THEMES.md"
        ],
        "optional": [
          "RELATIONSHIPS.md",
          "PEOPLES.md"
        ],
        "not_applicable": []
      },
      "script": {
        "required": [
          "BRIEF.md",
          "CHARACTERS.md",
          "WORLD.md",
          "PLOT-GRAPH.md",
          "THEMES.md"
        ],
        "optional": [
          "RELATIONSHIPS.md",
          "PEOPLES.md"
        ],
        "not_applicable": []
      },
      "academic": {
        "required": [
          "BRIEF.md",
          "CHARACTERS.md",
          "THEMES.md"
        ],
        "optional": [
          "WORLD.md",
          "PLOT-GRAPH.md"
        ],
        "not_applicable": [
          "RELATIONSHIPS.md",
          "PEOPLES.md"
        ]
      },
      "technical": {
        "required": [
          "BRIEF.md",
          "CHARACTERS.md",
          "WORLD.md",
          "PLOT-GRAPH.md",
          "THEMES.md"
        ],
        "optional": [
          "RELATIONSHIPS.md"
        ],
        "not_applicable": [
          "PEOPLES.md"
        ]
      },
      "visual": {
        "required": [
          "BRIEF.md",
          "CHARACTERS.md",
          "WORLD.md",
          "PLOT-GRAPH.md",
          "THEMES.md"
        ],
        "optional": [
          "RELATIONSHIPS.md",
          "PEOPLES.md"
        ],
        "not_applicable": []
      },
      "poetry": {
        "required": [
          "BRIEF.md",
          "THEMES.md"
        ],
        "optional": [],
        "not_applicable": [
          "CHARACTERS.md",
          "RELATIONSHIPS.md",
          "WORLD.md",
          "PLOT-GRAPH.md",
          "PEOPLES.md"
        ]
      },
      "interactive": {
        "required": [
          "BRIEF.md",
          "CHARACTERS.md",
          "WORLD.md",
          "PLOT-GRAPH.md",
          "THEMES.md"
        ],
        "optional": [
          "RELATIONSHIPS.md",
          "PEOPLES.md"
        ],
        "not_applicable": []
      },
      "speech_song": {
        "required": [
          "BRIEF.md",
          "THEMES.md"
        ],
        "optional": [],
        "not_applicable": [
          "CHARACTERS.md",
          "RELATIONSHIPS.md",
          "WORLD.md",
          "PLOT-GRAPH.md",
          "PEOPLES.md"
        ]
      },
      "sacred": {
        "required": [
          "BRIEF.md",
          "CHARACTERS.md",
          "WORLD.md",
          "PLOT-GRAPH.md",
          "THEMES.md"
        ],
        "optional": [
          "RELATIONSHIPS.md",
          "PEOPLES.md"
        ],
        "not_applicable": []
      }
    },
    "work_type_overrides": {
      "essay": {
        "optional": [
          "CHARACTERS.md",
          "PLOT-GRAPH.md"
        ],
        "not_applicable": [
          "WORLD.md",
          "PEOPLES.md"
        ]
      },
      "essay_collection": {
        "optional": [
          "CHARACTERS.md",
          "PLOT-GRAPH.md"
        ],
        "not_applicable": [
          "WORLD.md",
          "PEOPLES.md"
        ]
      },
      "journal_article": {
        "optional": [
          "CHARACTERS.md",
          "PLOT-GRAPH.md"
        ],
        "not_applicable": [
          "WORLD.md"
        ]
      },
      "white_paper": {
        "optional": [
          "CHARACTERS.md",
          "PLOT-GRAPH.md"
        ],
        "not_applicable": [
          "WORLD.md"
        ]
      },
      "memoir": {
        "optional": [
          "WORLD.md"
        ]
      },
      "single_poem": {
        "required": [
          "BRIEF.md"
        ],
        "optional": [
          "THEMES.md"
        ],
        "not_applicable": [
          "CHARACTERS.md",
          "RELATIONSHIPS.md",
          "WORLD.md",
          "PLOT-GRAPH.md"
        ]
      }
    }
  },
  "architectural_profiles": {
    "_description": "Phase 29 v1.7: valid values + work-type defaults for the project-spec tradition and platform keys. The runtime validator cross-checks these values against the templates/sacred/ and templates/platforms/ directory listings -- the intersection is the accepted set, so new contributor-dropped manifests are picked up at load time without editing this file.",
    "_render_variants": {
      "_note": "How templates/WORK.md {{PROFILE_BLOCK}} is rendered per work-type group by /scr:new-work. Wiring of new-work substitution lands in a later phase.",
      "sacred": "- **Tradition:** {{TRADITION}}\n- **Platform:** {{PLATFORM}}",
      "prose": "- **Platform:** {{PLATFORM}}",
      "visual": "- **Platform:** {{PLATFORM}}",
      "poetry": "- **Platform:** {{PLATFORM}}",
      "script": "Not applicable for this work type.",
      "academic": "Not applicable for this work type.",
      "technical": "Not applicable for this work type.",
      "interactive": "Not applicable for this work type.",
      "speech_song": "Not applicable for this work type."
    },
    "traditions": {
      "_seeded": [
        "catholic",
        "orthodox",
        "tewahedo",
        "protestant",
        "jewish",
        "islamic-hafs",
        "islamic-warsh",
        "pali",
        "tibetan",
        "sanskrit"
      ],
      "_note": "This array seeds the initial set. The authoritative runtime value list is the intersection of _seeded with directory names under templates/sacred/ that contain a manifest.yaml. A contributor dropping templates/sacred/<new-tradition>/manifest.yaml extends the accepted set without editing this file."
    },
    "platforms": {
      "_seeded": [
        "kdp",
        "ingram",
        "d2d",
        "apple",
        "kobo",
        "google",
        "bn",
        "smashwords"
      ],
      "_note": "This array seeds the initial set. The authoritative runtime value list is the intersection of _seeded with directory names under templates/platforms/ that contain a manifest.yaml. A contributor dropping templates/platforms/<new-platform>/manifest.yaml extends the accepted set without editing this file."
    },
    "applies_to_groups": {
      "tradition": [
        "sacred"
      ],
      "platform": [
        "prose",
        "visual",
        "poetry",
        "sacred"
      ]
    },
    "defaults_by_work_type": {
      "_description": "Per-work-type defaults applied by the runtime when the project spec omits the key. The value MUST be one of the seeded traditions/platforms above. An unlisted work type MUST NOT receive a default (runtime returns null).",
      "tradition": {
        "scripture_biblical": "catholic",
        "scripture_quranic": "islamic-hafs",
        "scripture_torah": "jewish",
        "scripture_buddhist": "pali",
        "scripture_vedic": "sanskrit",
        "scripture_generic": null,
        "commentary": null,
        "devotional": null,
        "liturgical": null,
        "historical_chronicle": null,
        "historical_account": null,
        "mythological_collection": null,
        "religious_epic": null,
        "sermon": null,
        "homiletic_collection": null
      },
      "platform": {
        "novel": "kdp",
        "novella": "kdp",
        "short_story": "kdp",
        "flash_fiction": "kdp",
        "memoir": "kdp",
        "creative_nonfiction": "kdp",
        "biography": "kdp",
        "essay": "kdp",
        "essay_collection": "kdp",
        "poetry_collection": "kdp",
        "single_poem": "kdp",
        "song_lyric": "kdp",
        "comic": "kdp",
        "graphic_novel": "kdp",
        "childrens_book": "kdp",
        "picture_book": "kdp",
        "scripture_biblical": "kdp",
        "scripture_quranic": "kdp",
        "scripture_torah": "kdp",
        "scripture_vedic": "kdp",
        "scripture_buddhist": "kdp",
        "scripture_generic": "kdp",
        "commentary": "kdp",
        "devotional": "kdp",
        "liturgical": "kdp",
        "historical_chronicle": "kdp",
        "historical_account": "kdp",
        "mythological_collection": "kdp",
        "religious_epic": "kdp",
        "sermon": "kdp",
        "homiletic_collection": "kdp"
      }
    }
  },
  "messages": {
    "command_hidden": "The `{command}` command is designed for {available_groups}. Your {work_type} uses `{alternative}` instead.",
    "prerequisite_missing": "You need to run `{prerequisite}` before `{command}`. Want me to run it now?",
    "prerequisite_file_missing": "The `{command}` command needs `{file}` which doesn't exist yet. Run `{generator_command}` first.",
    "command_adapted": "Note: in your {work_type} project, `{original}` is called `{adapted}`. Both names work."
  }
}
