Prompt Engineer a Lesson Plan¶
| Category | Prompt Engineering |
| Status | โ Completed |
| Repo | nextwork-prompt-engineer-a-lesson-plan |
| Original NextWork guide | nextwork.ai |
Learning project
Practice work following a NextWork guide, separate from my production projects.
๐ NextWork learning project. This is a practice project I built while working through NextWork's Prompt Engineer a Lesson Plan guide. It is part of my Learning portfolio and is fully separate from my production projects.
Category: Learning โบ Prompt Engineering
Status: โ
Completed
Overview¶
The iteration log shows how each technique changes the output: a one-line request, then role prompting, then XML tags that separate instructions from inputs. That ends in a fill-in-the-blanks template. The secret mission asks for three difficulty levels in one go.
Summary¶
The iteration log (basic โ role โ XML tags โ template), the reusable XML-tagged template, and the differentiated three-level version (secret mission) all ran, and the template's lesson plan is rendered as a standalone HTML page (artifact/lesson-plan.html), the equivalent of the guide's Claude Artifact. The model is a local open model instead of Claude.
The checks behind this are in docs/verification.txt.
Skills & tools¶
Role prompting, XML-tagged prompts, Iterative refinement, Prompt templates, Instructional design
What I built¶
prompts/1-basic.mdโprompts/3-xml.md: the iteration log.prompts/4-template.md: the reusable template, filled in for a cloud-computing lesson.prompts/5-differentiated.md: three levels (secret mission).run_prompts.py: runs every prompt (including multi-turn follow-ups) on a local model.outputs/: the real responses from the verification run.render_artifact.pyโartifact/lesson-plan.html: the lesson plan as a standalone page, standing in for the Claude Artifact.
How to run¶
ollama pull qwen2.5:3b
pip install ollama
MODEL=qwen2.5:3b python run_prompts.py # writes outputs/*.md
prompts/ (turns are separated by ---FOLLOWUP---).
Verification¶
I ran the verification command on 2026-12-02. The full output is in docs/verification.txt.
rm -rf outputs && PATH=/workspace/nextwork-portfolio/.venv/bin:$PATH python run_prompts.py && python3 check_outputs.py Exit Ticket && python3 render_artifact.py && grep -qi 'objective' artifact/lesson-plan.html && echo 'OK artifact rendered'
Notes¶
Model substitution: the guide runs these prompts in Claude. I don't have an account there, so every prompt ran on a local open model (qwen2.5:3b via Ollama). The prompts and techniques are the deliverable and work the same in any chat model; paste the files from prompts/ into Claude to use them there. A 3B model's answers are weaker than a frontier model's, so judge the outputs as evidence that each technique was run, not as expert content.
Original project: https://nextwork.ai/projects/f0040df9-b0f8-5424-88c8-d3668ad8bd2e ยท Part of my NextWork Learning portfolio (hub).
Verification output¶
From docs/verification.txt:
$ rm -rf outputs && PATH=/workspace/nextwork-portfolio/.venv/bin:$PATH python run_prompts.py && python3 check_outputs.py Exit Ticket && python3 render_artifact.py && grep -qi 'objective' artifact/lesson-plan.html && echo 'OK artifact rendered'
wrote outputs/1-basic.md (1 turn(s))
wrote outputs/2-role.md (1 turn(s))
wrote outputs/3-xml.md (1 turn(s))
wrote outputs/4-template.md (1 turn(s))
wrote outputs/5-differentiated.md (1 turn(s))
OK 1-basic.md: 533 words
OK 2-role.md: 571 words
OK 3-xml.md: 583 words
OK 4-template.md: 597 words
OK 5-differentiated.md: 517 words
OK some output mentions 'Exit': 2-role.md
OK some output mentions 'Ticket': 2-role.md
wrote artifact/lesson-plan.html 4318 bytes
OK artifact rendered
[exit code 0]