Skip to content

Open-source Python skill that audits and optimizes MarkdownFlow teaching prompts for OpenClaw, Claude, and Codex.

License

Notifications You must be signed in to change notification settings

ai-shifu/mdf-teaching-optimizer

mdf-teaching-optimizer

中文文档

Audit and optimize existing MarkdownFlow teaching prompts to improve coverage alignment, interaction effectiveness, and syntax stability.

Use Cases

  • 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.

Boundaries

  • 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.

Quickstart (3 minutes)

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 40

Minimal Runnable Example

Input:

Output includes:

  • summary
  • findings (risk level, checks, recommendations)
  • optimized_prompt

Architecture: Skill Core + Adapters

Multi-Agent Compatibility

AI-Shifu Ecosystem

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

Development

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

About

Open-source Python skill that audits and optimizes MarkdownFlow teaching prompts for OpenClaw, Claude, and Codex.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Languages