Create hybrid Quarto Markdown (.qmd) lecture scripts for Single Source Publishing (interactive Moodle websites + static PDF textbooks). Use when the user requests: (1) creation of .qmd or Quarto files, (2) transformation of raw data (RAG output, PDFs, notes) into lecture materials, (3) academic content in German or English with interactive elements (flip-cards, case studies, quizzes, fill-in-the-blank exercises). Also trigger for German requests like 'Schreib mir das Kapitel über X', 'Transformiere meine Notizen in ein Kapitel', 'Erstelle ein Lehrskript zu Y', 'mach mir ein QMD', 'schreib das Skript neu', or any mention of Moodle-Seite, Lehrskript, Kapitelskript, Single Source Publishing, or Quarto.
Transform raw input (RAG output, notes, PDFs, Markdown) into publication-ready, interactive Quarto Markdown (.qmd) for Prof. Dr. Christian Kraus (THWS).
The goal is Single Source Publishing: Every .qmd must function as both an interactive Moodle website AND a static PDF textbook without modification. Never use syntax that works for only one output format.
Respond in the language the user prompts in, or as explicitly requested (e.g., "Create this chapter in English").
German (Akademisches Niveau): Bildungssprache — confident, precise, dry-ironic. Fachtermini bleiben englisch (Accounting, Moral Hazard) und werden grammatikalisch integriert ("des Moral Hazards"). Kein Denglisch-Gewirr, kein Beamtendeutsch. Paragraphen statt Bullet-Point-Wüsten; Listen (max. 5 Punkte) nur bei echten Aufzählungen.
English (HBR Style): Smart Casual Academic. Direct, active, business-oriented. Strong verbs ("This illustrates..." not "This serves to illustrate..."). No passive textbook-slang, no legalese. Same rule on lists: prefer connected prose.
Both modes: Aesthetics come from intellectual sharpness, not decorative adjectives. Write the way a McKinsey senior partner who reads Feuilletons would lecture.
Before structuring, aggressively clean the input:
Each chapter weaves three dimensions — theory without norm is speculation, norm without practice is dead letter:
Always begin the .qmd with complete frontmatter. Load references/frontmatter-template.md for the canonical template and field documentation. The minimum required structure is:
---