Skip to content

Authoring a course

If you haven’t seen a minimal course yet, start with Build your first course. This guide covers day-to-day authoring with an AI agent, personalizing existing courses, and publishing reference sites.

  1. Define Level Outcomes (level.yaml): observable capabilities expected by the end of a level.
  2. Sequence Tasks (tasks.yaml): concrete, bounded scenarios serving those outcomes.
  3. Select or add Concepts and Skills: reuse entries from the shared language library (uses_library), and add any course-specific items in local_concepts.yaml.
  4. Author Lessons, Weaving, and Optional Vocab Packs (tasks/<slug>.yaml, vocab_packs/<slug>.yaml): Core presentations and utterances (weaving closed compositional sets like numbers, days, and clock times across Spine tasks within the 4–7 target budget) leading into perform, role_play, or listening, plus optional off-spine vocab_packs (topical or exam) for non-essential domain or exam-wordlist breadth.

With the MCP server connected (Getting started), describe the learners, language, and goal:

Create a short French course for English-speaking beginners visiting a café. Teach them to order a drink, ask its price, and pay. Use English explanations. Propose the learning goals and Tasks, then build the first Task for review.

Use the agent’s MCP authoring tools for:

  • Inventory edits (adding Concepts, managing Concept Sets and Skills)
  • Structural changes (reordering Tasks, moving teaching targets between lessons)
  • Material edits (explanations, examples, dialogues, and annotations)

All inventory edits are checked against the latest file state so stale or conflicting writes are rejected automatically. Use Git to diff, commit, and revert versions as you iterate.

Because prerequisites and teaching placements are explicit, you can fork a general course and adapt it for a specific audience:

  • Move domain-relevant Tasks earlier in tasks.yaml.
  • Add workplace vocabulary or expressions in local_concepts.yaml.
  • Run openl2 validate COURSE_DIR to see which prerequisites, Exercises, or prior reviews need to move with your changes.

Generate a static multi-page reference site to review lessons, dialogues, and annotations in a browser:

Terminal window
openl2 site course COURSE_DIR --out dist/site

Agents can inspect the same rendered sequence via the MCP tools render_course_material and render_presentation_progression, and run check_course_health to triage validation findings and stale audits.

  • Anki: openl2 anki --help
  • Jetway: openl2 jetway publish COURSE_DIR --visibility private

See Integrating OpenL2 for exporter details.