Browse documentation

Spine Instruction Book

This directory is the instruction book shipped with the spine-framework npm package. It is written for two readers: developers building on Spine, and agents (human or AI) operating a Spine deployment. Every file must pass npm run docs:lint — see docs/audit/docs-spec.md in the repo for the authoring spec.

Structure

SectionKindContents
guide/guideEnd-to-end walkthroughs (install, first app, deploy).
concepts/conceptMental models — tenancy, permissions, types, runtime vs config.
tasks/taskSingle-goal procedures with prerequisites and verification steps.
reference/referenceExhaustive lookups — env vars, CLI commands, API endpoints, schema enums.
operations/uiAdmin-UI pages and operational runbooks.
internal/*Repo-only/internal docs; exempt from the archived-docs and CIL-tooling reference rules.
(root)entityOne file per Spine entity (types, apps, roles, …).

Reading order — developers

  1. guide/ getting-started, then concepts/ tenancy & permissions.
  2. The entity files for the types you will create (types.md first).
  3. tasks/ for the specific job at hand; reference/ for exact spellings.

Reading order — agents

  1. concepts/ — know what a Spine account, type, and record are.
  2. entity files — the 7-section template below tells you what each entity is for, its fields, minimal/full configuration, a worked example, the core files, and agent-specific cautions.
  3. operations/ — how to drive the admin UI; internal/ — repo-only notes.

The 7-section entity template

Every entity or ui doc uses the same seven ## sections, in order:

  1. ## What this is for
  2. ## Fields and settings
  3. ## Minimal configuration
  4. ## Full configuration
  5. ## Example
  6. ## Core files
  7. ## Agent notes

docs-lint enforces the heading set verbatim. entity pages also carry ## Why it exists — the primitive's 5-whys rationale, migrated from the archived reference tree at 0.6.1 (long-form narrative: docs/articles/).

Key pages

internal/ — the doctrine

internal/docs-contract.md is the editorial contract for this book — the test rule (every miss is a doc bug), the capture contract (docs are part of every code change, core and custom), the layer taxonomy, and the cold-agent acceptance matrix that regression-tests the book. Read it before adding or restructuring pages.

Framework documentation — Verified November 20, 2026 · source revision 35992a9.

Was this page helpful? Ask a question · Report a documentation problem