Skip to content

Open-source Python skill that generates runnable MarkdownFlow lesson scripts from structured lesson inputs for OpenClaw, Claude, and Codex.

License

Notifications You must be signed in to change notification settings

ai-shifu/mdf-teaching-script-generator

mdf-teaching-script-generator

中文文档

Generate runnable lesson-level MarkdownFlow teaching scripts from structured lesson materials with controlled interaction and reusable variable flow.

Use Cases

  • Generate per-lesson MarkdownFlow prompts from pre-segmented course materials.
  • Keep script structure stable while adapting content to each lesson.
  • Reuse variables across lesson flow with explicit interaction checkpoints.

Boundaries

  • This component generates lesson scripts only, not full course packaging.
  • It does not rewrite source facts or change canonical teaching intent from upstream materials.
  • It expects structured lesson input (already adapted/segmented).

Quickstart (3 minutes)

python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
mdf-teaching-script-generator --input examples/lesson_input.json --output output/lesson_output.json
python -m json.tool output/lesson_output.json | head -n 40

Minimal Runnable Example

Input: examples/lesson_input.json

Output includes:

  • lesson_id
  • lesson_title
  • mdf_script
  • used_variables
  • depends_on_lessons

Architecture: Skill Core + Adapters

Multi-Agent Compatibility

AI-Shifu Ecosystem

This repository is one reusable component in AI-Shifu's course production workflow.

Development

pip install -e ".[dev]"
ruff check .
pytest -q

About

Open-source Python skill that generates runnable MarkdownFlow lesson scripts from structured lesson inputs for OpenClaw, Claude, and Codex.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Languages