Document Designer
Design the editable document source and its presentation intent. Preserve facts, uncertainty,
citations, code, and semantic meaning; do not fill content gaps with invented claims.
Design
- Identify audience, reading goal, document type, required sections, language, target medium,
and provided brand constraints. Treat missing visual preferences as reversible design choices.
- Read only the references needed for the document:
- typography.md for hierarchy, readable type roles, and multilingual
fallback.
- page-layout.md for spacing, page flow, figures, and print intent.
- tables-and-callouts.md for dense data, warnings, notes,
and code.
- design-tokens.md when defining or selecting reusable tokens.
- Establish the information hierarchy before styling. Keep one H1, use ordered heading levels,
lead with the outcome, group related evidence, and remove decorative repetition.
- Create or revise
source.md as the semantic source of truth. Use Markdown structure rather
than visual spacing characters, manual line wrapping, or embedded presentation hacks.
- Create
document-design.yaml beside the source when the publisher needs explicit choices.
Include document_type, audience, language, target, theme, density, toc,
page_break_hints, font_fallback, and accessibility_notes. Mark unprovided constraints as
assumptions, not facts.
- Hand both files to
markdown-publisher. Do not render HTML or PDF here.
Source contract
- Preserve a stable editable source; never make HTML or PDF the only copy.
- Keep headings, lists, tables, code fences, links, alt text, captions, and callout meaning
machine-readable.
- Prefer a short table for repeated-field comparisons and a diagram only when relationships or
sequence are materially clearer visually.
- Keep tables narrow enough for the target page. Split wide tables or move detail to an
appendix; do not solve overflow by shrinking all text.
- Give every informative image or diagram alt text and a useful caption. Mark decorative images
as decorative.
- Specify font fallback that covers every used script, including Korean when present. Do not
bundle or fetch fonts without explicit authorization.
- Keep design tokens reusable and publisher-neutral. Avoid renderer-specific CSS in
source.md.
Validation and handoff
Before handoff, verify that heading order is valid, links and references are preserved, table
columns are bounded, code fences are balanced, and no fact was introduced without a source.
Report the source path, design-spec path, assumptions, publisher target, and any content or font
blocker. Rendering and visual inspection remain downstream completion gates.
1---2name: document-designer3description: Turn supplied content into a polished, accessible, editable Markdown document with clear structure, typography roles, information hierarchy, tables, callouts, captions, and page-aware layout intent. Use for reports, PRDs, technical documents, memos, and other Markdown-first publications before HTML or PDF rendering. Do not use to render HTML/PDF or to invent missing content.4---56# Document Designer78Design the editable document source and its presentation intent. Preserve facts, uncertainty,9citations, code, and semantic meaning; do not fill content gaps with invented claims.1011## Design12131. Identify audience, reading goal, document type, required sections, language, target medium,14 and provided brand constraints. Treat missing visual preferences as reversible design choices.152. Read only the references needed for the document:16 - [typography.md](references/typography.md) for hierarchy, readable type roles, and multilingual17 fallback.18 - [page-layout.md](references/page-layout.md) for spacing, page flow, figures, and print intent.19 - [tables-and-callouts.md](references/tables-and-callouts.md) for dense data, warnings, notes,20 and code.21 - [design-tokens.md](references/design-tokens.md) when defining or selecting reusable tokens.223. Establish the information hierarchy before styling. Keep one H1, use ordered heading levels,23 lead with the outcome, group related evidence, and remove decorative repetition.244. Create or revise `source.md` as the semantic source of truth. Use Markdown structure rather25 than visual spacing characters, manual line wrapping, or embedded presentation hacks.265. Create `document-design.yaml` beside the source when the publisher needs explicit choices.27 Include `document_type`, `audience`, `language`, `target`, `theme`, `density`, `toc`,28 `page_break_hints`, `font_fallback`, and `accessibility_notes`. Mark unprovided constraints as29 assumptions, not facts.306. Hand both files to `markdown-publisher`. Do not render HTML or PDF here.3132## Source contract3334- Preserve a stable editable source; never make HTML or PDF the only copy.35- Keep headings, lists, tables, code fences, links, alt text, captions, and callout meaning36 machine-readable.37- Prefer a short table for repeated-field comparisons and a diagram only when relationships or38 sequence are materially clearer visually.39- Keep tables narrow enough for the target page. Split wide tables or move detail to an40 appendix; do not solve overflow by shrinking all text.41- Give every informative image or diagram alt text and a useful caption. Mark decorative images42 as decorative.43- Specify font fallback that covers every used script, including Korean when present. Do not44 bundle or fetch fonts without explicit authorization.45- Keep design tokens reusable and publisher-neutral. Avoid renderer-specific CSS in `source.md`.4647## Validation and handoff4849Before handoff, verify that heading order is valid, links and references are preserved, table50columns are bounded, code fences are balanced, and no fact was introduced without a source.51Report the source path, design-spec path, assumptions, publisher target, and any content or font52blocker. Rendering and visual inspection remain downstream completion gates.