The complete prompt templates for pipeline and file agents, variable substitution, and quality instructions — annotated and explained
The pipeline agent receives a complete context from the orchestrator about the audience variant to generate. Here is the full template with annotations.
The pipeline agent prompt contains everything needed to generate a complete audience variant: audience context (name, emoji, suffix, max depth), HS thresholds per level, integration mode, output directory, naming pattern, the pre-computed curriculum tree (only topics relevant for this audience), and language settings. The pipeline agent does not need to compute HS scores — that was done by the orchestrator.
The file agent generates one single HTML file. Its prompt contains everything relevant for exactly that page — from filename to quality gates.
The file agent prompt is the most granular template. It contains the exact filename and path, audience context, level, theme, HS score, content description, full breadcrumb path, deep-dive targets, sibling pages for bottom navigation, language partner filename, audience switch placeholder, and quality gates. The file agent needs no global view — it receives exactly the information needed for its one file, enabling parallel execution.
The orchestrator fills template variables with concrete values. The naming convention is critical — a wrong slug breaks all cross-links.
Naming Convention: [slug][suffix]_[lang].html
| Step | Operation | Example |
|---|---|---|
| 1. Take title | German theme title | "Ueberblick & Architektur" |
| 2. Lowercase | Convert to lowercase | "ueberblick & architektur" |
| 3. Replace umlauts | ae, oe, ue, ss | "ueberblick & architektur" |
| 4. Remove specials | Keep only [a-z0-9-] | "ueberblick architektur" |
| 5. Spaces to hyphens | Spaces become - | "ueberblick-architektur" |
| 6. Append suffix | Audience suffix + language | "ueberblick-architektur_dev_en.html" |
Slug derivation follows a fixed schema: German title is lowercased, umlauts become ae/oe/ue/ss, special characters are removed, spaces become hyphens. The result is a URL-safe slug. Special case: L0 overview pages always use "index" as their slug.
Every file agent receives a quality rules section that must be reflected in the generated HTML. Here is the complete quality gate template.
Quality gates are mandatory rules every file agent must follow:
WCAG contrast: No white text on light surfaces. On the dark hero, white is fine. On white or beige backgrounds, text must be dark (#1A1A2E).
No level labels: Page titles must not start with "L2:". The level is communicated through breadcrumbs and level dots.
Max 10: More than 10 pages per level makes navigation unwieldy. Overflow topics become paragraphs on the parent page.
No dead links: Every internal link must point to an actually generated file. The most common error source during generation.
In the naming convention, what suffix does the first/most general audience get?