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
| Section | Kind | Contents |
|---|---|---|
guide/ | guide | End-to-end walkthroughs (install, first app, deploy). |
concepts/ | concept | Mental models — tenancy, permissions, types, runtime vs config. |
tasks/ | task | Single-goal procedures with prerequisites and verification steps. |
reference/ | reference | Exhaustive lookups — env vars, CLI commands, API endpoints, schema enums. |
operations/ | ui | Admin-UI pages and operational runbooks. |
internal/ | * | Repo-only/internal docs; exempt from the archived-docs and CIL-tooling reference rules. |
| (root) | entity | One file per Spine entity (types, apps, roles, …). |
Reading order — developers
guide/getting-started, thenconcepts/tenancy & permissions.- The
entityfiles for the types you will create (types.mdfirst). tasks/for the specific job at hand;reference/for exact spellings.
Reading order — agents
concepts/— know what a Spine account, type, and record are.entityfiles — 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.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:
## What this is for## Fields and settings## Minimal configuration## Full configuration## Example## Core files## 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
- Building frontend: Frontend SDK (
@core) — every importable module, contract-ordered by real usage. - Registering/mounting apps: tasks/register-an-app + Mounting.
- App-shipped docs/skills: tasks/document-your-app.
- Shipping/promoting: tasks/declare-your-environments (the
## Environmentsladder) + thespine-shipskill. - Operating a deployment:
spine-operateskill + tasks/set-up-monitoring, tasks/rotate-an-api-key, operations/recovery. Upgrading across many projects: tasks/upgrade-many-projects
- operations/versioning. Support: support.spine-framework.com (+
doctor --ticketfor diagnostics).
- operations/versioning. Support: support.spine-framework.com (+
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.