Audit and optimize existing MarkdownFlow teaching prompts to improve coverage alignment, interaction effectiveness, and syntax stability.
- Review existing lesson prompts against source materials to detect missing or weakly taught points.
- Improve teaching logic flow and interaction quality without rewriting the entire course.
- Reduce runtime risks from variable misuse and unstable MarkdownFlow syntax.
- This component optimizes existing prompts; it is not a from-scratch course generator.
- It does not replace human instructional judgment for domain-specific pedagogy.
- It outputs optimization suggestions and revised prompt text, not final publishing assets.
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
mdf-teaching-optimizer --prompt examples/input_prompt.md --source examples/source_material.md --output output/result.json
python -m json.tool output/result.json | head -n 40Input:
Output includes:
summaryfindings(risk level, checks, recommendations)optimized_prompt
- Skill Core:
src/mdf_teaching_optimizer/core.py- Platform-agnostic audit + optimization logic.
- CLI Adapter:
src/mdf_teaching_optimizer/cli.py- Local executable interface for pipelines.
- OpenClaw Adapter:
adapters/openclaw - Claude Adapter:
adapters/claude - Codex Adapter:
adapters/codex
- OpenClaw example:
examples/openclaw_call.md - Claude example:
examples/claude_call.md - Codex example:
examples/codex_call.md
This repository is one reusable optimization component in AI-Shifu's course production workflow.
- Website: https://ai-shifu.com
pip install -e ".[dev]"
ruff check .
pytest -q