A lesson is one self-contained HTML file that teaches one concept, starting from the problem that forces the concept to exist. The reader finishes it in one sitting and can explain the concept afterwards.
Steps
-
Scope. Name the one concept. If the request holds several (e.g. "all of OAuth"), propose a numbered series of lessons, ask which one to write, and wait for the answer. Done when one concept is chosen.
-
Research. Read the material the user passed, then find 1–3 primary sources (official docs, the paper, the creator's own post). Never trust parametric knowledge: every claim in the lesson traces to a source you read this session. Done when you hold the sources and the one concrete example the lesson will run on.
-
Write
./lessons/<slug>/lesson.html, in the language of the request (or--lang), styled bySTYLE.md. Light by default;--darkuses its dark theme.Open with the map: one diagram, right under the title, showing the world the concept lives in (a system, a process, a team) with the concept highlighted as the piece it adds. 4–7 elements, labels only, readable at a glance. The map orients; the ladder explains.
Then climb the ladder, one rung per section:
- a real, simple scenario;
- what breaks, shown on the concrete example (names, values, what happens at each step);
- why it breaks;
- only now, the technical name;
- how it is solved, saying which part of the problem each fix removes.
Each rung gets a diagram when a picture shows it better than prose. Then add:
- Terms: every technical term the lesson used, a one-line definition each (what it IS), with
Avoid:for weaker synonyms. - Check: 3–5 questions that make the reader apply the concept to a new case, answer hidden behind a click.
- Sources: the primary sources, one marked as the next thing to read or watch.
-
Open the file in the browser (
open/xdg-open). Done when the reader has it on screen.


