- Introduce publish-document skill with Epistemic Invariance Contract (Content & Weight) - Add layout principles, visual defect resolution order, and two-stage quality checklist - Implement verify_content_integrity.py to detect text omissions or semantic drift - Register skill in .agents/SKILLS.md and link from communicate-findings hand-off - Publish output/cuestionario-presencia-externa.typ and compile single-page PDF deliverable
2.5 KiB
2.5 KiB
Document Layout Principles
Objective
Deliver readable, professional, publication-grade documents (PDF) that communicate approved findings clearly without altering their meaning.
Semantic Units and Page Flow
A layout must keep semantically coupled information intact:
- Findings and Bounds: Never let a page break sever a finding from its direct limitation, uncertainty bound, or cited evidence.
- Prompts and Probes: In questionnaires and conversation guides, keep a primary question and its subordinate clarification probes inside the same visual block (
breakable: falsewhere appropriate). - Headings and Body: Never allow orphan headings (a heading placed near the bottom of a page without at least 3-4 lines of subsequent content).
- Tables: If a table spans multiple pages, repeat the header row on every subsequent page.
Defect Resolution Order
When resolving layout collisions, overflow, or awkward breaks, adjust parameters in this strict hierarchical sequence:
-
Geometry:
- Adjust page margins (e.g. from 2.2cm to 1.8cm).
- Adjust component padding and gutter spacing (e.g. card inset from 10pt to 7pt).
- Adjust paragraph spacing and leading (
par(leading: 0.52em)).
-
Structural Breaks:
- Insert explicit page breaks (
#pagebreak()) to keep cohesive sections together. - Adjust table column distributions and alignment.
- Rebalance block grouping without altering content order or semantic relationships.
- Insert explicit page breaks (
-
Typography:
- Adjust body font size within a bounded readable range (e.g. 8.5pt to 10.5pt).
- Adjust heading sizes proportionally.
-
Never Copy-Fit:
- Never trim words, rephrase sentences, or delete bullet points to fit a page.
- If a layout cannot be reconciled through geometry, structure, and typography, escalate to human decision.
Visual Styling Guidelines (Typst)
- Typography: Prefer clear, high-legibility sans-serif typefaces (e.g.
Inter). Set Spanish language rules (lang: "es"). - Color Palette: Professional, subdued slate and neutral palette (e.g.
#0f172atext,#475569muted text,#e2e8f0borders,#f8fafccard backgrounds,#2563ebprimary accents). - Header & Footer: Include running header with document title and context, and footer with project identification and dynamic page counter (
Página X de Y). - Cards & Callouts: Use subtle borders, left accent strokes, and rounded corners (3-4pt) to demarcate question cards or facilitator notes.