King Klown Logo
King Klown& KOA

Schema Templates

Architectural Lineage (Credits):
SwarmCraft is an architectural fork and deep rewrite of the multi-agent swarm engine created by Mojomast in mojomast/swarmussy.
SwarmCraft’s deterministic “Architect-style” layering is also derived from the meta-structure of Abstract Wiki Architect (AWA).
Full details: Credits & Lineage

POWERED BY GROK

Templates define the shape and pacing rules of the Story Scaffold.

A template file lives at:

It defines:

Story scaffold overview: Story Scaffold


1) Design Goals

Templates MUST support:

Templates SHOULD:


{
  "template_id": "novel.default",
  "name": "Novel (Default)",
  "version": 1,

  "threads": [
    "Plot",
    "Character Development",
    "Conflict",
    "Themes",
    "World-Building",
    "Emotion",
    "Symbolism and Imagery",
    "Structure",
    "Relationships"
  ],

  "parts_per_chapter": {
    "default": 3,
    "min": 1,
    "max": 6
  },

  "cadence": {
    "per_part_required_threads": ["Plot", "Conflict"],
    "per_chapter_required_threads": ["Character Development", "Themes"],
    "soft_threads": ["Symbolism and Imagery", "World-Building"],
    "min_non_empty_cells_per_part": 3
  },

  "prompting": {
    "target_reading_level": "adult",
    "tone": ["clear", "cinematic"],
    "pov": "third_limited",
    "tense": "past",
    "hard_constraints_refs": [
      "constraints/hard_rules.md",
      "constraints/style_guide.md"
    ]
  }
}

Notes:


3) Field Semantics

3.1 template_id (required)

Stable identifier used by the project config and Story Bible.

3.2 threads (required)

Ordered list of thread names.

3.3 parts_per_chapter (required)

Defines allowed splitting:

Cadence is enforcement guidance for PLAN/REVIEW.

Recommended keys:

Cadence is a rule set for scaffold completeness; it does not guarantee prose quality.

3.5 prompting (optional)

Reusable prompt constraints and references:

If present, prompt hydration can include these in every Part slice.


4) Template Variants (Examples)

4.1 children.picturebook.json

Typical guidance:

4.2 novel.default.json

Typical guidance:

4.3 screenplay.default.json

Typical guidance:


A validator SHOULD enforce:


6) Relationship to Outline and Grid

Related: