Adding templates and sections
Add a template or a section to a workspace with template-kit new / new-section.
A workspace starts with one template (templates/starter/). Add more without
duplicating any shared context — templates are plain folders, and the kit,
configs, and docs stay at the workspace root.
template-kit new <template>
Section titled “template-kit new <template>”Creates templates/<template>/ with a working starter section (a text slot, an
image slot, a fact-bound slot, an option, fixtures, a fill spec, a nested
components/ folder, and a "use client" island), plus theme.ts/theme.css
and a manifest.json. It passes check as-is; edit it into your template.
template-kit new-section <template>/<section>
Section titled “template-kit new-section <template>/<section>”Adds templates/<template>/sections/<section>/ — the four reserved contract
files (Renderer.tsx, schema.ts, fill-spec.ts, fixtures.ts), no island.
Reference the new section by name in the template’s manifest.json.
Both refuse to overwrite an existing folder.