Document Structure

Skill id: document-structure

Generated from JSON Schema — do not edit by hand. Run bun run cat-harness/scripts/gen-schema-docs.ts.

Input

Input schema for the document-structure skill: add, remove or reorder chapters and sections.

FieldTypeRequiredDescription
documentstringyesDocument slug under content/.
operation"add-chapter" | "add-section" | "reorder-chapters" | "reorder-sections"yesStructural change to make. Reordering edits the manifest only — directories are never renamed, because labels, uses[], feedback and QA sidecars all key on names.
chapterstringnoChapter directory name. Required for every operation except reorder-chapters.
titlestringnoHuman-readable title, for the add-* operations.
positionintegernoZero-based index to insert at. Appends when omitted.
orderarraynoThe complete new order, for the reorder-* operations. Must be a permutation of the existing entries.

Raw schema · ✎ Edit

Output

FieldTypeRequiredDescription
manifestsChangedarrayyes
chaptersarraynoChapter directory names in their new reading order.
forwardReferencesarraynoLabels whose uses[] now points forward in reading order. A real finding after a reorder, not a mechanical detail.

Raw schema · ✎ Edit


folio-assistant — code under the Apache License 2.0, documentation under CC BY 3.0. Generated schema and API references are rebuilt from source on every push to main.

deployed dev