Linotype Structure
This document explains the folder structure and key artefacts.
Core artefacts
docs/domain/ or docs/context/
Product/domain snapshot (docs/domain/index.md ships by default). Treat it as the authoritative lookup for agents:
- Link every module from the index (e.g.
docs/domain/auth.md). - Split entries once they exceed ~40 lines; avoid monolith files.
- Galley run sheets include a Domain updates section so every change records which module docs moved (or why nothing changed).
You can add optional capability registries under
docs/capabilities/.
docs/work/
Galley workflow stages: planning/, optional queue/, doing/, review/, done/. Each stage contains galley folders (e.g. yyyymmdd-<name>/). Inside a galley: README.md, optional context.md, review.md, run-sheet.md, slugs (e.g. slugs/*.md), and the required Domain updates section inside the run sheet. Move galleys with cli/linotype galley move <galley-name> <stage>.
Optional release references:
docs/work/releases/<release-id>/galleys.txt(ordered galley IDs)- optional
run-sheet.md,status.mdfor release-level coordination - required
docs/work/releases/<version>.md(one per version, movie-named release notes)
docs/learning/ (v5)
Learning layer for capturing signals, reflections, and context across the product lifecycle:
inbox/— raw reflections dropped by humans/systems (any format)signals/— normalised signals with status trackingproposals/— clustered suggestions (advisory)snapshots/— compiled context for ChatGPT/agents_templates/— templates for consistent structure
File naming: YYYY-MM-DD__app__area__type__slug.md
CLI: cli/linotype signal add, cli/linotype bundle snapshot
docs/ai/
Agent contract: _agent-rules.md (authoritative; focus, optimise, roles, scope). Repo root AGENTS.md adapts Linotype to the repo (min reading order, commands, conventions).
Optional artefacts
docs/overview.md
High-level navigation guide. Keep minimal; expand only when it adds clarity.
docs/architecture.md
Thin, stable architectural overview. Avoid implementation detail.
docs/glossary.md
Shared terms and definitions.
docs/shared-standards.md
Conventions that apply across modules.
Workflow automation
cli/linotype (or cli/linotype.sh)
Galley-centric commands: galley new, galley move <name> <stage>, galley list, galley auto; optionally slug new. Stages: planning, (queue), doing, review, done. Use from repo root.
cli/linoloop
Execution wrapper for executor briefs:
cli/linoloop <galley-name>cli/linoloop <release-id>(readsdocs/work/releases/<release-id>/galleys.txt)- runs a loop runner if available; otherwise prints brief for manual use
Bootstrap
Skeleton provides cli/linotype-bootstrap.sh, docs/ai/_agent-rules.md, and root AGENTS.md template. Copy or run bootstrap to create work dirs, templates, and agent rules.
Release scaffolding:
cli/linotype release init <version> <movie>generatesdocs/work/releases/<version>.md, blocking duplicate movie names (v0.6 = “Casablanca”).cli/linotype release note <version> "<summary>"appends bullets under Highlights.
Principles
- Reality-driven - Docs reflect what exists, not what’s planned
- Minimal by default - Start thin, expand only when needed
- Coherence over time - Structure preserves understanding as product evolves
- Delegable work - Slugs have clear boundaries and can be handed off
- Coordinated change - Galleys group related slugs without forcing hierarchy