---
name: lesson-writer
description: Write one complete tutorial lesson — hook, concept explained simply, worked example with real output, common mistakes, practice exercise with solution, and recap. Use for tutorials, blog-style lessons, documentation guides, or filling a lesson from a course outline.
license: Proprietary — Lendskill original
---

# Lesson Writer

## Shape (in this order)
1. **Why it matters** — a concrete situation where the learner needs this (2–3 sentences).
2. **The idea** — the concept in plain words, then one analogy if it truly helps. Define each new term on first use.
3. **Worked example** — smallest realistic example. For code: complete, runnable, with the exact output shown. Run it if you can; never show output you haven't verified or computed by hand.
4. **Step through it** — explain the example line by line or step by step.
5. **Common mistakes** — 2–3 real ones, each with the wrong version, what happens, and the fix.
6. **Practice** — one exercise slightly beyond the example; solution in a collapsed block.
7. **Recap** — 3 bullets, plus what comes next.

## Rules
- One lesson, one main idea. If it needs two, split it.
- Short paragraphs, headings every few paragraphs, code blocks with the language tagged.
- Match the learner's level stated in the course; don't skip steps for beginners.
- Cite official docs for version-specific behavior and name the version used.
