DOCS_SYSTEM (Visual + Export Standard)
🎛️
Documentation Visual System (canonical). This page defines the visual + structural standards for the entire spec pack (headings, callouts, diagrams, tables, placeholders) and the rules for mirroring/exporting to /docs and clean HTML.
đź”’
Source of Truth. This page is the authoritative “documentation design system”. When a page’s formatting conflicts with this system, update the page to match (unless a higher-authority spec forbids it).
Executive summary
This doc standardizes how every spec page is written so the pack is:
- visually rich (Notion-native)
- deterministic to export (Markdown →
/docsand clean HTML)
- easy for Cursor + Claude Code to consume
- consistent across authors and roles
What this page controls
- The required Spec Page Chrome (standard sections every page must have).
- The callout palette and when to use each color.
- Diagram centralization rules (Option 1): link to the canonical diagrams page.
- Export conventions: anchors, filenames, placeholders, and lint checks.
Who should read this
- Everyone who edits specs, especially Docs lead, Product architect, Developer-tooling lead.
Source of Truth status
- Authority: Reference
- Status: Approved
- Primary sync targets:
docs/DOCS_SYSTEM.md
Dependencies / related pages
- Master hub (SoT rules): 🛠️AI-Coding-Agent-Workspace-Spec-Pack
- Canonical diagrams: đź§ARCHITECTURE_DIAGRAMS (Canonical)
1) Spec Page Chrome (required sections)
Every major spec page must contain these sections in this order (even if brief):
- Executive summary
- What this page controls
- Who should read this
- Source of Truth status
- Dependencies / related specs
- System diagrams (Mermaid) — link to canonical diagrams unless the diagram is truly page-local
- Contracts / interfaces (tables + code blocks)
- Implementation notes
- Validation checklist
- Risks / gotchas
- Done means
- Cursor / Claude Code instructions
2) Callout palette
- Blue: summary / what this is
- Red: locked / forbidden / supersedes
- Purple: architecture / cross-cutting / canonical systems
- Orange: implementation guidance / runbooks
- Green: acceptance criteria / “ready” checks
- Gray: reference / notes / glossary / backlog
3) Diagrams (Option 1: centralized)
- The canonical Mermaid set lives here: đź§ARCHITECTURE_DIAGRAMS (Canonical).
- Other pages should:
- link to specific diagram headings (e.g. “See D-03 RAG indexing pipeline”)
- avoid duplicating Mermaid blocks unless the diagram is specific to that page only
- If a local diagram exists, it must be tagged at the top with:
Local diagram (do not copy; consider moving to canonical set).
4) Image / screenshot placeholders (export-safe)
Use machine-detectable placeholders:
<!-- IMAGE:START id=IMG-<short> -->
**Screenshot:** <title>
**Purpose:** <why it exists>
**Source:** <where to capture it>
**Status:** placeholder
<!-- IMAGE:END -->5) Clean HTML export conventions
- Headings must be stable (no emoji prefixes in headings; emoji belongs in page icon).
- Each heading must be unique within a page (exporters rely on anchor stability).
- Code blocks must specify language when known.
- Mermaid blocks must be lint-clean (exporter should fail or warn on invalid Mermaid).
- Use tables for structured contracts.
6) Cursor / Claude Code instructions (required section)
Every page must end with:
- Mirror path(s) under
docs/
- Owned files/globs (sync targets)
- “When editing this spec” rules
- “When implementing this spec” checks/commands
Validation checklist
- Every major page contains the Spec Page Chrome sections.
- Pages link to the canonical diagrams page instead of duplicating.
- Placeholders use the standard IMAGE marker format.
- Export rules are not violated (unique headings, language-tagged code).
Done means
- The spec pack is consistent enough that a repo mirror + HTML export can be fully automated without manual cleanup per page.