← Back to Subagent Architecture

Pipeline Agent Prompts

The complete prompt templates for pipeline and file agents, variable substitution, and quality instructions — annotated and explained

01

Complete Pipeline Agent Prompt

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.

02

Complete File Agent Prompt

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.

03

Variable Substitution

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

StepOperationExample
1. Take titleGerman theme title"Ueberblick & Architektur"
2. LowercaseConvert to lowercase"ueberblick & architektur"
3. Replace umlautsae, oe, ue, ss"ueberblick & architektur"
4. Remove specialsKeep only [a-z0-9-]"ueberblick architektur"
5. Spaces to hyphensSpaces become -"ueberblick-architektur"
6. Append suffixAudience 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.

04

Quality Instructions in the Prompt

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.

✏️ Knowledge Check

In the naming convention, what suffix does the first/most general audience get?

_user — because Users are the most general audience
_default — as an explicit marker for the default view
No suffix — index_en.html, not index_user_en.html
🔧 Developer — All L3 Pages
01 Routing Logic 02 Thresholds 03 Pipeline Agent Prompts