{"name":"coding-teacher","title":"Coding teacher","description":"Teach how a project's technologies and architecture work, in plain language, to someone from another field: ask or infer the learner's background, explain each idea with a comparison from their own work whose mechanism matches and that says where it stops matching, ground every claim about the project in its real files, and go one level deeper each time they ask. On request it builds an illustrated lesson page: one plain question per component, inline SVG diagrams with restrained motion that respects reduced motion, the big picture, and a one-line glossary. Symptoms: explain this to me, teach me how this works, what is X and why do we use it, I don't get it, what does this error mean, I'm not a developer, onboard a colleague from outside engineering, a visual lesson of how it all fits, coding teacher. It explains and changes nothing: no code, settings or data. For an evidence-backed answer a developer will act on use investigate-codebase; for the documentation a repository keeps, layer-repository-docs.","compatibility":"Any repository the agent can read; nothing to install. Strongest with the project's own docs and web access to official documentation; read-only access to the project's live state is optional. Answers are chat. A lesson page is one self-contained HTML file built from the carried template, published wherever the harness publishes pages or written outside the repository. Nothing in the project changes.","allowedTools":"Read Grep Glob Bash WebFetch","license":"MIT","kind":"general","useWhen":"someone outside the technology needs this project's parts, words or errors explained in plain language, or an illustrated lesson of how it fits together","group":"workflow","lifecycle":"release","version":"1.0.0","author":"crissmoldovan","install":["npx skills add crissmoldovan/agent-skills --skill coding-teacher"],"asks":["Explain how this project works to me. I'm a nurse, I've never written code, and I've just been\nasked to look after the patient-booking site.","What is a database migration, and why does this repo have so many of them? Then go one level deeper.","Make me an illustrated lesson page of how all the parts of this project fit together: one question\nper part, then the big picture and a glossary. I'm an accountant, so compare things to bookkeeping\nwhere it helps.","What does \"permission denied for table orders\" mean? I saw it in the admin screen this morning."],"commands":[],"documents":[{"path":"references/learner-and-comparisons.md","slug":"learner-and-comparisons","title":"Learner and comparisons","body":"# Learner and comparisons\n\nHow to settle who is learning (B1), and how to build the comparison that carries an idea across\nfrom their field (H5). `SKILL.md` holds the rules; this file holds the method and worked examples.\n\n## Settling who is learning\n\nMost of B1 is already in what the learner has written. Read for:\n\n- **Their field.** The examples they reach for, the job title they give, the words they use without\n  explaining them (*handover*, *reconciliation*, *pick list*, *rehearsal*).\n- **What they have seen of code.** *I've never touched it* and *I can read Python but not this* are\n  different learners. A word they use correctly (*API*, *deploy*, *branch*) is a word you may use.\n- **What they need to be able to do.** Talk to the developers, approve a change, run the admin\n  screens, explain the system to their own team, debug a simple problem on their own. The goal\n  decides how deep level 1 goes.\n\nWhen that leaves the profile unclear, ask **one question** before the first answer, and make it\neasy to answer in a line:\n\n> Before I start: what do you do, and how much code have you seen — none, a little, or some but\n> not this?\n\nThen keep the profile for the rest of the run. Adjust it from what they show, in both directions:\nwhen they use a term correctly, stop explaining it; when a word you assumed visibly lost them,\nexplain it now and avoid assuming the next one.\n\nNever ask them to rate themselves on a scale, and never ask a second question before the first\nanswer. A learner who wanted a lesson and got a questionnaire leaves.\n\n## Building a comparison\n\nA comparison is a loan from what they already understand. It is worth making only when the\nmechanism matches, because the learner will reason from it afterwards, and everything they infer\nfrom a mismatched comparison is wrong.\n\n1. **Name the job.** Not what the thing *is*, but what it *does*: holds orders until someone is\n   free to take them; checks who is asking before letting them in; keeps a ready copy so the answer\n   is quick.\n2. **Find who or what does that job in their work.** The ticket rail, the ward's handover sheet,\n   the warehouse's goods-in desk, the accountant's month-end close.\n3. **Test the mechanism.** Ask of both sides: what goes in, what comes out, who decides, what\n   happens when it fails, and what happens when two things arrive at once. Two or three matching\n   answers make a comparison; one is a mood.\n4. **Write where it stops.** The sentence that starts *Unlike …* or *Where it stops matching:*.\n   It names the inference they would otherwise draw wrongly (*unlike the ticket rail, a failed job\n   can be retried automatically, so nobody has to notice it fell off*).\n5. **Keep one family across a course.** Once a server is *the pass* and a database is *the\n   reservations book*, every later lesson reuses them. A course that compares the database to\n   three different things leaves the learner with three wrong models of it.\n\nWhen their field has no honest match for a concept, use everyday life — the post office, a library,\na cloakroom ticket — and say so: *nothing in a kitchen does quite this, so think of a cloakroom.*\nA forced match from their own field is worse than a plain one from everyone's.\n\n## Worked comparisons\n\nExamples of the method, not answers to copy. Each matches on mechanism; the last column is the\nsentence that keeps it honest.\n\n| Concept | Kitchen | Hospital ward | Warehouse | Where it stops |\n| --- | --- | --- | --- | --- |\n| Server answering a request | The pass: an order goes in, a plate comes out | The pharmacy hatch: a prescription in, the drug out | The goods-out desk: a pick list in, a parcel out | A server answers thousands at once in under a second, and forgets each asker unless something reminds it |\n| Database | The reservations book | The patient record | The stock system | Many people write at once without overwriting each other, and a question about any of it is answered in moments |\n| Cache | Sauces made before service | The ward's stock cupboard, refilled from pharmacy | The fast-pick shelf by the packing bench | A stale copy looks exactly like a fresh one, so each cache needs a rule for when to throw it away |\n| Queue and background job | The ticket rail: orders wait in turn | The list of tasks handed over at shift change | The pick queue on the scanners | A job that fails can be retried automatically, and nobody has to be watching for it to start |\n| Logging in, and permissions | The staff door, then which stations you may work | The ID badge, then which drugs you may give | The site pass, then which zones you may enter | Proving who you are and what you may do are separate checks, and the second runs on every single request |\n| Migration | Changing the menu card's layout, in numbered revisions | A change to the record's form, signed off and versioned | Re-labelling the racking, aisle by aisle, in order | Each one runs exactly once, in order, and is never edited after it has run |\n| Deploy | Changing the menu at the start of service | A new protocol going live on the ward | A new picking route going live on a shift | A deploy can usually be rolled back in minutes, and on most platforms the old version keeps serving until the new one is ready |\n| Branch and pull request | Trying a new dish as a special before it joins the menu | A draft protocol, reviewed before it is adopted | A trial layout in one aisle before the whole site | The draft and the live version exist side by side, and joining them shows every line that changed |\n| Environment variable, secret | The safe combination, kept off the recipe card | The controlled-drugs key, signed out, never written on the chart | The alarm code, held by the manager | A secret in code is copied everywhere the code goes, so it is kept outside the code entirely |\n\n## Register\n\nPlain sentences, mostly short. The learner's spelling and language (B2). Bold a word where it is\nexplained, not elsewhere. No *simply*, *just* or *obviously*: each tells a learner who did not find\nit simple that the fault is theirs.\n","bodyHtml":"<h2 id=\"learner-and-comparisons\">Learner and comparisons</h2>\n<p>How to settle who is learning (B1), and how to build the comparison that carries an idea across\nfrom their field (H5). <code>SKILL.md</code> holds the rules; this file holds the method and worked examples.</p>\n<h3 id=\"settling-who-is-learning\">Settling who is learning</h3>\n<p>Most of B1 is already in what the learner has written. Read for:</p>\n<ul>\n<li><strong>Their field.</strong> The examples they reach for, the job title they give, the words they use without\nexplaining them (<em>handover</em>, <em>reconciliation</em>, <em>pick list</em>, <em>rehearsal</em>).</li>\n<li><strong>What they have seen of code.</strong> <em>I&#39;ve never touched it</em> and <em>I can read Python but not this</em> are\ndifferent learners. A word they use correctly (<em>API</em>, <em>deploy</em>, <em>branch</em>) is a word you may use.</li>\n<li><strong>What they need to be able to do.</strong> Talk to the developers, approve a change, run the admin\nscreens, explain the system to their own team, debug a simple problem on their own. The goal\ndecides how deep level 1 goes.</li>\n</ul>\n<p>When that leaves the profile unclear, ask <strong>one question</strong> before the first answer, and make it\neasy to answer in a line:</p>\n<blockquote>\n<p>Before I start: what do you do, and how much code have you seen — none, a little, or some but\nnot this?</p>\n</blockquote>\n<p>Then keep the profile for the rest of the run. Adjust it from what they show, in both directions:\nwhen they use a term correctly, stop explaining it; when a word you assumed visibly lost them,\nexplain it now and avoid assuming the next one.</p>\n<p>Never ask them to rate themselves on a scale, and never ask a second question before the first\nanswer. A learner who wanted a lesson and got a questionnaire leaves.</p>\n<h3 id=\"building-a-comparison\">Building a comparison</h3>\n<p>A comparison is a loan from what they already understand. It is worth making only when the\nmechanism matches, because the learner will reason from it afterwards, and everything they infer\nfrom a mismatched comparison is wrong.</p>\n<ol>\n<li><strong>Name the job.</strong> Not what the thing <em>is</em>, but what it <em>does</em>: holds orders until someone is\nfree to take them; checks who is asking before letting them in; keeps a ready copy so the answer\nis quick.</li>\n<li><strong>Find who or what does that job in their work.</strong> The ticket rail, the ward&#39;s handover sheet,\nthe warehouse&#39;s goods-in desk, the accountant&#39;s month-end close.</li>\n<li><strong>Test the mechanism.</strong> Ask of both sides: what goes in, what comes out, who decides, what\nhappens when it fails, and what happens when two things arrive at once. Two or three matching\nanswers make a comparison; one is a mood.</li>\n<li><strong>Write where it stops.</strong> The sentence that starts <em>Unlike …</em> or <em>Where it stops matching:</em>.\nIt names the inference they would otherwise draw wrongly (<em>unlike the ticket rail, a failed job\ncan be retried automatically, so nobody has to notice it fell off</em>).</li>\n<li><strong>Keep one family across a course.</strong> Once a server is <em>the pass</em> and a database is <em>the\nreservations book</em>, every later lesson reuses them. A course that compares the database to\nthree different things leaves the learner with three wrong models of it.</li>\n</ol>\n<p>When their field has no honest match for a concept, use everyday life — the post office, a library,\na cloakroom ticket — and say so: <em>nothing in a kitchen does quite this, so think of a cloakroom.</em>\nA forced match from their own field is worse than a plain one from everyone&#39;s.</p>\n<h3 id=\"worked-comparisons\">Worked comparisons</h3>\n<p>Examples of the method, not answers to copy. Each matches on mechanism; the last column is the\nsentence that keeps it honest.</p>\n<table>\n<thead>\n<tr>\n<th>Concept</th>\n<th>Kitchen</th>\n<th>Hospital ward</th>\n<th>Warehouse</th>\n<th>Where it stops</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>Server answering a request</td>\n<td>The pass: an order goes in, a plate comes out</td>\n<td>The pharmacy hatch: a prescription in, the drug out</td>\n<td>The goods-out desk: a pick list in, a parcel out</td>\n<td>A server answers thousands at once in under a second, and forgets each asker unless something reminds it</td>\n</tr>\n<tr>\n<td>Database</td>\n<td>The reservations book</td>\n<td>The patient record</td>\n<td>The stock system</td>\n<td>Many people write at once without overwriting each other, and a question about any of it is answered in moments</td>\n</tr>\n<tr>\n<td>Cache</td>\n<td>Sauces made before service</td>\n<td>The ward&#39;s stock cupboard, refilled from pharmacy</td>\n<td>The fast-pick shelf by the packing bench</td>\n<td>A stale copy looks exactly like a fresh one, so each cache needs a rule for when to throw it away</td>\n</tr>\n<tr>\n<td>Queue and background job</td>\n<td>The ticket rail: orders wait in turn</td>\n<td>The list of tasks handed over at shift change</td>\n<td>The pick queue on the scanners</td>\n<td>A job that fails can be retried automatically, and nobody has to be watching for it to start</td>\n</tr>\n<tr>\n<td>Logging in, and permissions</td>\n<td>The staff door, then which stations you may work</td>\n<td>The ID badge, then which drugs you may give</td>\n<td>The site pass, then which zones you may enter</td>\n<td>Proving who you are and what you may do are separate checks, and the second runs on every single request</td>\n</tr>\n<tr>\n<td>Migration</td>\n<td>Changing the menu card&#39;s layout, in numbered revisions</td>\n<td>A change to the record&#39;s form, signed off and versioned</td>\n<td>Re-labelling the racking, aisle by aisle, in order</td>\n<td>Each one runs exactly once, in order, and is never edited after it has run</td>\n</tr>\n<tr>\n<td>Deploy</td>\n<td>Changing the menu at the start of service</td>\n<td>A new protocol going live on the ward</td>\n<td>A new picking route going live on a shift</td>\n<td>A deploy can usually be rolled back in minutes, and on most platforms the old version keeps serving until the new one is ready</td>\n</tr>\n<tr>\n<td>Branch and pull request</td>\n<td>Trying a new dish as a special before it joins the menu</td>\n<td>A draft protocol, reviewed before it is adopted</td>\n<td>A trial layout in one aisle before the whole site</td>\n<td>The draft and the live version exist side by side, and joining them shows every line that changed</td>\n</tr>\n<tr>\n<td>Environment variable, secret</td>\n<td>The safe combination, kept off the recipe card</td>\n<td>The controlled-drugs key, signed out, never written on the chart</td>\n<td>The alarm code, held by the manager</td>\n<td>A secret in code is copied everywhere the code goes, so it is kept outside the code entirely</td>\n</tr>\n</tbody></table>\n<h3 id=\"register\">Register</h3>\n<p>Plain sentences, mostly short. The learner&#39;s spelling and language (B2). Bold a word where it is\nexplained, not elsewhere. No <em>simply</em>, <em>just</em> or <em>obviously</em>: each tells a learner who did not find\nit simple that the fault is theirs.</p>\n","words":1121},{"path":"references/learning-library.md","slug":"learning-library","title":"A learning library","body":"# A learning library\n\nThe shape of a lasting library a project can keep for the people who are learning it. The teaching\nskill reads one where it exists (B3). It never creates one on its own: building or changing a\nlibrary is a change to the repository, offered only when the learner asks for something lasting,\nand made as its own task the way B9 says, or through B11 when the change is to documentation the\nrepository already keeps.\n\n## Why keep one\n\nChat answers vanish with the session. A library keeps the explanations that worked, in the words\nthe team already uses, so the next learner starts from them and every answer builds on the same\nvocabulary instead of inventing its own.\n\n## What it holds\n\nOne folder, conventionally `docs/learn/`, with an index:\n\n| File | What it is |\n| --- | --- |\n| `README.md` | The index: what each file is for, and the order to read them in |\n| The lessons page | The illustrated course (an HTML page, built as [lesson pages](lesson-pages.md) describes) — lesson zero for every later answer |\n| `map.md` | The whole system on one page: every piece, what it does, what talks to what, and which key or pass each uses (names only) |\n| One guide per technology | Short answer, the comparison from the learners' field, how it works, *in this project* with real paths, and a closing table of the official pages it was written from |\n| `glossary.md` | Every word in one line, each linking to the guide that explains it |\n| Saved official pages (optional) | A folder of official documentation saved page by page, with an index per source, fetched by a script and kept out of git |\n\n## Rules that keep it useful\n\n- **Only material that helps someone understand how things work.** No project status, plans,\n  progress logs, runbooks, credentials or decisions: those have homes of their own, and a library\n  that mixes them stops being read.\n- **Every guide names what it was checked against:** the revision or version, and the date.\n- **The code wins.** When a guide is found out of date, the learner is told what changed, and the\n  guide is corrected in a change of its own (B11).\n- **When the stack changes, the library changes with it**, in the same change: a new service, a\n  renamed setting, a removed component means the map, the affected guide, the lessons page, the\n  glossary and the list of saved sources all move together.\n- **Saved official pages are refreshed, not edited.** The script that fetches them is the only\n  thing that writes there.\n","bodyHtml":"<h2 id=\"a-learning-library\">A learning library</h2>\n<p>The shape of a lasting library a project can keep for the people who are learning it. The teaching\nskill reads one where it exists (B3). It never creates one on its own: building or changing a\nlibrary is a change to the repository, offered only when the learner asks for something lasting,\nand made as its own task the way B9 says, or through B11 when the change is to documentation the\nrepository already keeps.</p>\n<h3 id=\"why-keep-one\">Why keep one</h3>\n<p>Chat answers vanish with the session. A library keeps the explanations that worked, in the words\nthe team already uses, so the next learner starts from them and every answer builds on the same\nvocabulary instead of inventing its own.</p>\n<h3 id=\"what-it-holds\">What it holds</h3>\n<p>One folder, conventionally <code>docs/learn/</code>, with an index:</p>\n<table>\n<thead>\n<tr>\n<th>File</th>\n<th>What it is</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code>README.md</code></td>\n<td>The index: what each file is for, and the order to read them in</td>\n</tr>\n<tr>\n<td>The lessons page</td>\n<td>The illustrated course (an HTML page, built as <a href=\"lesson-pages.md\">lesson pages</a> describes) — lesson zero for every later answer</td>\n</tr>\n<tr>\n<td><code>map.md</code></td>\n<td>The whole system on one page: every piece, what it does, what talks to what, and which key or pass each uses (names only)</td>\n</tr>\n<tr>\n<td>One guide per technology</td>\n<td>Short answer, the comparison from the learners&#39; field, how it works, <em>in this project</em> with real paths, and a closing table of the official pages it was written from</td>\n</tr>\n<tr>\n<td><code>glossary.md</code></td>\n<td>Every word in one line, each linking to the guide that explains it</td>\n</tr>\n<tr>\n<td>Saved official pages (optional)</td>\n<td>A folder of official documentation saved page by page, with an index per source, fetched by a script and kept out of git</td>\n</tr>\n</tbody></table>\n<h3 id=\"rules-that-keep-it-useful\">Rules that keep it useful</h3>\n<ul>\n<li><strong>Only material that helps someone understand how things work.</strong> No project status, plans,\nprogress logs, runbooks, credentials or decisions: those have homes of their own, and a library\nthat mixes them stops being read.</li>\n<li><strong>Every guide names what it was checked against:</strong> the revision or version, and the date.</li>\n<li><strong>The code wins.</strong> When a guide is found out of date, the learner is told what changed, and the\nguide is corrected in a change of its own (B11).</li>\n<li><strong>When the stack changes, the library changes with it</strong>, in the same change: a new service, a\nrenamed setting, a removed component means the map, the affected guide, the lessons page, the\nglossary and the list of saved sources all move together.</li>\n<li><strong>Saved official pages are refreshed, not edited.</strong> The script that fetches them is the only\nthing that writes there.</li>\n</ul>\n","words":450},{"path":"references/lesson-pages.md","slug":"lesson-pages","title":"Lesson pages","body":"# Lesson pages\n\nHow to build an illustrated lesson page: a short course, one page long, that takes a learner from\nzero to reading the whole system map. Build one only when asked (S7). Start from the model B6\nnames — the project's own lessons page when it has one, so every new lesson looks like part of the\nsame course, and otherwise the carried template, `assets/lesson-page.html`, which has every part\nbelow working and a made-up sample course to replace.\n\n## Before writing\n\n1. **Load the harness's page guidance**, if it has any — a design or diagramming skill, a page\n   contract for published pages. Its rules on title, theming, libraries, size and phone layout\n   apply on top of these.\n2. **Plan the course from the repository**, not from memory: list the components from the\n   manifest, the folder layout, the deploy config, the services the code calls and the people who\n   use the system. Read each before it goes on the page (H3).\n3. **Settle the scope with the learner** when it is unclear: one concept as one lesson, a short\n   series, or the whole system.\n4. **Draw the map first.** Every component, every line between them, and for each the lesson that\n   introduces it. The map is what the course builds towards; the lessons are its pieces in order.\n\n## The course\n\n**One plain question per component**, in the learner's words: *What happens when you open a\nwebsite?*, *What is a database?*, *Where does the code live?*, *What is a background job?* Not\n*Understanding the persistence layer*. A question tells them what they will be able to answer.\n\n**Order from what they touch, outward.** Start with what the learner sees and does — the page, the\nscreen they use — then what that talks to, then what that depends on, then how changes reach it.\nEach lesson may use only words earlier lessons explained.\n\nThe page, top to bottom:\n\n| Part | Content |\n| --- | --- |\n| Lesson bar | Sticky: a dot per lesson that follows the reader as they scroll, a count of quick checks answered right, and the **Pause motion** button |\n| Hero | What the course covers, how long it takes, *no experience needed*; how each lesson works; and the **whole map**, with a caption that admits it looks like a jumble now and promises they will read every box by the end |\n| Lessons | One per component, below |\n| The big picture | The finished map with whole journeys travelling across it, step by step, and a final check |\n| Glossary | Every word the course introduced, **one line each**, alphabetical, each linking to its lesson |\n| Footer | How to go further — ask the coding teacher, read the library (B3) — and what the facts were checked against, with the date; a note that example data in the pictures is illustrative |\n\n## One lesson\n\nEvery lesson has the same parts in the same order, so the learner knows where to look:\n\n| Part | Content |\n| --- | --- |\n| Kicker | *Lesson 3 of 8* |\n| Title | The question, in the learner's words |\n| New words | Chips for each term this lesson introduces, and no others |\n| Picture | An inline SVG on the dark panel, with a caption of one or two sentences saying what moves and why |\n| Short answer | One or two bold sentences. If they read nothing else, this is enough |\n| More | Two short paragraphs. Each new word in bold, explained where it appears |\n| Pair | *In their terms* (the comparison, with where it stops) beside *In this project* (real names and paths) |\n| Quick check | One question, three options, feedback for right and wrong that says why |\n| Map so far | The system map up to this lesson, with the new piece lit, and one line saying what is new |\n\n**One idea per lesson.** If the picture needs more than a sentence or two of caption, or the short\nanswer needs a third sentence, split the lesson.\n\n## The big picture\n\nThe last lesson shows the finished map and two or three **journeys** across it — *a visitor reads\na page*, *a member of staff does the main task*, *someone changes the code*. Each journey is a list\nof short steps; the current step lights its boxes and sends a dot along its line. The reader can\npick a journey, pause, step forward, or click any step. End with a final check that needs the whole\nmap to answer, such as *why can't visitors see the thing you added yesterday?*\n\n## Visual language\n\n- **Panels.** Pictures sit on a dark panel in light and dark themes alike, so the highlight colours\n  read the same everywhere. Each colour has one job across the whole course:\n\n  | Role | Used for |\n  | --- | --- |\n  | Subject | The thing this lesson explains |\n  | Flow | Data, requests and anything moving |\n  | Pick | A selected row or item |\n  | OK | Success, *live*, allowed |\n  | No | Refused, not allowed, failed |\n\n- **Dress it in their world where that helps.** The panel and colours can borrow from the learner's\n  field — a dark stage for people who work in theatres, a ledger page for accountants — as long as\n  the roles stay fixed.\n- **Fonts** that read easily at body size, with nothing thin; a monospace for labels, paths and code.\n- **Light and dark.** Colours are tokens on `:root`, redefined for dark under\n  `prefers-color-scheme` (guarded so an explicit light theme wins) and under an explicit dark theme.\n  The body has its own background.\n- **Phone width.** A 16-pixel side gutter; a wide picture scrolls sideways inside its panel, never\n  the page.\n\n## Motion\n\nMotion shows the **mechanism** — a request travelling, a row being checked, a job leaving the\nqueue — and nothing else. A picture that would be as clear standing still stands still.\n\n- **Restrained:** a few looping movements per picture, slow enough to follow, nothing that flashes.\n- **Reduced motion is respected twice:** a `prefers-reduced-motion` media query stops every CSS\n  animation and transition, and the script reads the same setting before moving anything itself.\n- **Pause motion** in the lesson bar stops everything for anyone, whatever their setting, and says\n  whether motion is on (`aria-pressed`).\n- **Revealing sections as they scroll in** is optional, and never hides content from a reader whose\n  script did not run: the hidden starting state applies only once the script has marked the page.\n- Inline SVG and CSS only: no animation library, no video, no external script.\n\n## Accessibility\n\n- Every picture is an inline `<svg>` with `role=\"img\"` and an `aria-label` that says what it shows;\n  purely decorative ones are `aria-hidden=\"true\"`.\n- The caption says in words what the motion shows, so a reader who cannot see it loses nothing.\n- Quick-check options are real buttons; feedback is announced and says why, right or wrong.\n- Visible focus on everything that takes it; journeys' steps work from the keyboard.\n\n## Content rules\n\n- Every project fact is checked against the repository, exactly as for a chat answer (H3, H6).\n- Comparisons match the mechanism and say where they stop (H5); one family across the course.\n- Example topics, names and addresses in pictures are labelled as examples in the caption.\n- What B7 excludes stays out of examples; no secret value appears anywhere, pictures included (H2).\n\n## Handing it over\n\nThe finished page goes where B8 says: a private page where the harness publishes pages, or one\nHTML file outside the repository, with its path given to the learner. Offer once to save it into\nthe project's library (B3) so the team has it; saving is a change to the repository, so it goes the\nway B9 says, as its own task, and adds the page to the library's index.\n\n## Checklist\n\n- [ ] One plain question per component, in the learner's words, ordered from what they touch outward.\n- [ ] Each lesson uses only words earlier lessons explained, and its new words are its chips.\n- [ ] Every lesson has its picture, short answer, more, pair, quick check and map so far.\n- [ ] The big picture has two or three journeys and a final check; the glossary has every word in one line.\n- [ ] Every project fact was read in the repository this session; examples are labelled as examples.\n- [ ] Motion shows a mechanism; reduced motion stops it in CSS and in the script; Pause motion works.\n- [ ] Every SVG is labelled or hidden; quick-check feedback is announced.\n- [ ] Light and dark both read; at phone width only pictures scroll sideways.\n- [ ] No secret value and nothing B7 excludes, anywhere on the page.\n","bodyHtml":"<h2 id=\"lesson-pages\">Lesson pages</h2>\n<p>How to build an illustrated lesson page: a short course, one page long, that takes a learner from\nzero to reading the whole system map. Build one only when asked (S7). Start from the model B6\nnames — the project&#39;s own lessons page when it has one, so every new lesson looks like part of the\nsame course, and otherwise the carried template, <code>assets/lesson-page.html</code>, which has every part\nbelow working and a made-up sample course to replace.</p>\n<h3 id=\"before-writing\">Before writing</h3>\n<ol>\n<li><strong>Load the harness&#39;s page guidance</strong>, if it has any — a design or diagramming skill, a page\ncontract for published pages. Its rules on title, theming, libraries, size and phone layout\napply on top of these.</li>\n<li><strong>Plan the course from the repository</strong>, not from memory: list the components from the\nmanifest, the folder layout, the deploy config, the services the code calls and the people who\nuse the system. Read each before it goes on the page (H3).</li>\n<li><strong>Settle the scope with the learner</strong> when it is unclear: one concept as one lesson, a short\nseries, or the whole system.</li>\n<li><strong>Draw the map first.</strong> Every component, every line between them, and for each the lesson that\nintroduces it. The map is what the course builds towards; the lessons are its pieces in order.</li>\n</ol>\n<h3 id=\"the-course\">The course</h3>\n<p><strong>One plain question per component</strong>, in the learner&#39;s words: <em>What happens when you open a\nwebsite?</em>, <em>What is a database?</em>, <em>Where does the code live?</em>, <em>What is a background job?</em> Not\n<em>Understanding the persistence layer</em>. A question tells them what they will be able to answer.</p>\n<p><strong>Order from what they touch, outward.</strong> Start with what the learner sees and does — the page, the\nscreen they use — then what that talks to, then what that depends on, then how changes reach it.\nEach lesson may use only words earlier lessons explained.</p>\n<p>The page, top to bottom:</p>\n<table>\n<thead>\n<tr>\n<th>Part</th>\n<th>Content</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>Lesson bar</td>\n<td>Sticky: a dot per lesson that follows the reader as they scroll, a count of quick checks answered right, and the <strong>Pause motion</strong> button</td>\n</tr>\n<tr>\n<td>Hero</td>\n<td>What the course covers, how long it takes, <em>no experience needed</em>; how each lesson works; and the <strong>whole map</strong>, with a caption that admits it looks like a jumble now and promises they will read every box by the end</td>\n</tr>\n<tr>\n<td>Lessons</td>\n<td>One per component, below</td>\n</tr>\n<tr>\n<td>The big picture</td>\n<td>The finished map with whole journeys travelling across it, step by step, and a final check</td>\n</tr>\n<tr>\n<td>Glossary</td>\n<td>Every word the course introduced, <strong>one line each</strong>, alphabetical, each linking to its lesson</td>\n</tr>\n<tr>\n<td>Footer</td>\n<td>How to go further — ask the coding teacher, read the library (B3) — and what the facts were checked against, with the date; a note that example data in the pictures is illustrative</td>\n</tr>\n</tbody></table>\n<h3 id=\"one-lesson\">One lesson</h3>\n<p>Every lesson has the same parts in the same order, so the learner knows where to look:</p>\n<table>\n<thead>\n<tr>\n<th>Part</th>\n<th>Content</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>Kicker</td>\n<td><em>Lesson 3 of 8</em></td>\n</tr>\n<tr>\n<td>Title</td>\n<td>The question, in the learner&#39;s words</td>\n</tr>\n<tr>\n<td>New words</td>\n<td>Chips for each term this lesson introduces, and no others</td>\n</tr>\n<tr>\n<td>Picture</td>\n<td>An inline SVG on the dark panel, with a caption of one or two sentences saying what moves and why</td>\n</tr>\n<tr>\n<td>Short answer</td>\n<td>One or two bold sentences. If they read nothing else, this is enough</td>\n</tr>\n<tr>\n<td>More</td>\n<td>Two short paragraphs. Each new word in bold, explained where it appears</td>\n</tr>\n<tr>\n<td>Pair</td>\n<td><em>In their terms</em> (the comparison, with where it stops) beside <em>In this project</em> (real names and paths)</td>\n</tr>\n<tr>\n<td>Quick check</td>\n<td>One question, three options, feedback for right and wrong that says why</td>\n</tr>\n<tr>\n<td>Map so far</td>\n<td>The system map up to this lesson, with the new piece lit, and one line saying what is new</td>\n</tr>\n</tbody></table>\n<p><strong>One idea per lesson.</strong> If the picture needs more than a sentence or two of caption, or the short\nanswer needs a third sentence, split the lesson.</p>\n<h3 id=\"the-big-picture\">The big picture</h3>\n<p>The last lesson shows the finished map and two or three <strong>journeys</strong> across it — <em>a visitor reads\na page</em>, <em>a member of staff does the main task</em>, <em>someone changes the code</em>. Each journey is a list\nof short steps; the current step lights its boxes and sends a dot along its line. The reader can\npick a journey, pause, step forward, or click any step. End with a final check that needs the whole\nmap to answer, such as <em>why can&#39;t visitors see the thing you added yesterday?</em></p>\n<h3 id=\"visual-language\">Visual language</h3>\n<ul>\n<li><p><strong>Panels.</strong> Pictures sit on a dark panel in light and dark themes alike, so the highlight colours\nread the same everywhere. Each colour has one job across the whole course:</p>\n<table>\n<thead>\n<tr>\n<th>Role</th>\n<th>Used for</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>Subject</td>\n<td>The thing this lesson explains</td>\n</tr>\n<tr>\n<td>Flow</td>\n<td>Data, requests and anything moving</td>\n</tr>\n<tr>\n<td>Pick</td>\n<td>A selected row or item</td>\n</tr>\n<tr>\n<td>OK</td>\n<td>Success, <em>live</em>, allowed</td>\n</tr>\n<tr>\n<td>No</td>\n<td>Refused, not allowed, failed</td>\n</tr>\n</tbody></table>\n</li>\n<li><p><strong>Dress it in their world where that helps.</strong> The panel and colours can borrow from the learner&#39;s\nfield — a dark stage for people who work in theatres, a ledger page for accountants — as long as\nthe roles stay fixed.</p>\n</li>\n<li><p><strong>Fonts</strong> that read easily at body size, with nothing thin; a monospace for labels, paths and code.</p>\n</li>\n<li><p><strong>Light and dark.</strong> Colours are tokens on <code>:root</code>, redefined for dark under\n<code>prefers-color-scheme</code> (guarded so an explicit light theme wins) and under an explicit dark theme.\nThe body has its own background.</p>\n</li>\n<li><p><strong>Phone width.</strong> A 16-pixel side gutter; a wide picture scrolls sideways inside its panel, never\nthe page.</p>\n</li>\n</ul>\n<h3 id=\"motion\">Motion</h3>\n<p>Motion shows the <strong>mechanism</strong> — a request travelling, a row being checked, a job leaving the\nqueue — and nothing else. A picture that would be as clear standing still stands still.</p>\n<ul>\n<li><strong>Restrained:</strong> a few looping movements per picture, slow enough to follow, nothing that flashes.</li>\n<li><strong>Reduced motion is respected twice:</strong> a <code>prefers-reduced-motion</code> media query stops every CSS\nanimation and transition, and the script reads the same setting before moving anything itself.</li>\n<li><strong>Pause motion</strong> in the lesson bar stops everything for anyone, whatever their setting, and says\nwhether motion is on (<code>aria-pressed</code>).</li>\n<li><strong>Revealing sections as they scroll in</strong> is optional, and never hides content from a reader whose\nscript did not run: the hidden starting state applies only once the script has marked the page.</li>\n<li>Inline SVG and CSS only: no animation library, no video, no external script.</li>\n</ul>\n<h3 id=\"accessibility\">Accessibility</h3>\n<ul>\n<li>Every picture is an inline <code>&lt;svg&gt;</code> with <code>role=&quot;img&quot;</code> and an <code>aria-label</code> that says what it shows;\npurely decorative ones are <code>aria-hidden=&quot;true&quot;</code>.</li>\n<li>The caption says in words what the motion shows, so a reader who cannot see it loses nothing.</li>\n<li>Quick-check options are real buttons; feedback is announced and says why, right or wrong.</li>\n<li>Visible focus on everything that takes it; journeys&#39; steps work from the keyboard.</li>\n</ul>\n<h3 id=\"content-rules\">Content rules</h3>\n<ul>\n<li>Every project fact is checked against the repository, exactly as for a chat answer (H3, H6).</li>\n<li>Comparisons match the mechanism and say where they stop (H5); one family across the course.</li>\n<li>Example topics, names and addresses in pictures are labelled as examples in the caption.</li>\n<li>What B7 excludes stays out of examples; no secret value appears anywhere, pictures included (H2).</li>\n</ul>\n<h3 id=\"handing-it-over\">Handing it over</h3>\n<p>The finished page goes where B8 says: a private page where the harness publishes pages, or one\nHTML file outside the repository, with its path given to the learner. Offer once to save it into\nthe project&#39;s library (B3) so the team has it; saving is a change to the repository, so it goes the\nway B9 says, as its own task, and adds the page to the library&#39;s index.</p>\n<h3 id=\"checklist\">Checklist</h3>\n<ul>\n<li><input disabled=\"\" type=\"checkbox\"> One plain question per component, in the learner&#39;s words, ordered from what they touch outward.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Each lesson uses only words earlier lessons explained, and its new words are its chips.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every lesson has its picture, short answer, more, pair, quick check and map so far.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The big picture has two or three journeys and a final check; the glossary has every word in one line.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every project fact was read in the repository this session; examples are labelled as examples.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Motion shows a mechanism; reduced motion stops it in CSS and in the script; Pause motion works.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every SVG is labelled or hidden; quick-check feedback is announced.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Light and dark both read; at phone width only pictures scroll sideways.</li>\n<li><input disabled=\"\" type=\"checkbox\"> No secret value and nothing B7 excludes, anywhere on the page.</li>\n</ul>\n","words":1508},{"path":"references/sources.md","slug":"sources","title":"Sources","body":"# Sources\n\nWhere each kind of fact in an answer comes from, how to find it, and how to cite it so the learner\ncan open it too. `SKILL.md` gives the order; this file gives the method.\n\n## The library first (B3)\n\nIf the project keeps plain-language material for learners — a `docs/learn/` folder, a glossary, a\nlessons page, per-technology guides — start there. It is written in words the learner may already\nhave met, so build on it, use the same words, and point to it for the basics rather than\nre-explaining them differently.\n\nA library is a claim about the code, not the code. Where it disagrees with the repository, **the\ncode wins** on what the project does: tell the learner, and offer to have the guide corrected\nthrough B11 once the explanation is done. [A learning library](learning-library.md) describes the\nshape of one, for a project that has none and asks for one.\n\n## The repository: the truth for *in this project*\n\nRead the file before naming it (H3). The places that usually answer *what does this project use,\nand where*:\n\n| Question | Where to look |\n| --- | --- |\n| Which technologies, at which versions | The manifest and its lock file (`package.json` and its lock, `pyproject.toml`, `go.mod`, `Gemfile.lock`, `Cargo.lock`) |\n| What runs where | Deploy and hosting config, container files, CI workflows, infrastructure folders |\n| How the pieces are laid out | The top-level folders, a workspace or monorepo config, the README, any architecture document |\n| Which outside services it talks to | Client libraries in the manifest, and environment variable **names** in example env files — never their values (H2) |\n| The shape of the data | Schema files, migrations, models, generated types |\n| The everyday commands | The manifest's scripts, a Makefile or task runner, the contributing guide |\n\nSay what you read: *(from `infra/deploy.yaml`)*. When something cannot be found, say that it was\nlooked for and where, rather than describing what projects usually have.\n\n## Official documentation (B4)\n\nEvery exact fact about a technology — what a setting does, a limit, a default, a definition — comes\nfrom its official documentation, read at the page itself, for the version the project installs.\nYour own memory of a technology is older than its documentation and may describe another version.\n\n1. **Find the installed version** in the lock file, not the manifest's range.\n2. **Find the page.** The project's own docs site for that technology, its versioned docs where they\n   exist, or the documentation shipped inside the installed package. For a word about the web\n   itself (*cookie*, *status code*, *CORS*), MDN's glossary is a good plain-language source.\n3. **Read the page** before explaining from it. Read past a docs site's component tags and\n   placeholders rather than quoting them.\n4. **Cite it** at the end of the answer, under **Read more**: the page's title and its address, and\n   the saved file too when the project keeps saved copies.\n\n**Saved copies.** Some projects save official pages into the repository or beside it, with an\nindex per source, so they can be read offline and searched. When B4 names such a copy, use it, and\ncheck its save date: a copy more than about a month old, or any price, plan limit or recently\nannounced feature, is checked against the live page as well. Saved copies are usually kept out of\ngit, so they exist only where someone has fetched them; when they are missing, say so and use the\nlive page.\n\n**When pages disagree.** The official page wins on how the technology works; the code wins on what\nthis project does; the library loses to both, and the learner is told.\n\n## Live state (B5)\n\nOnly for questions about now — *did the last deploy work*, *which migrations have run*, *is the\nbackground worker up* — and only through what B5 names. With B5 unbound, answer from the\nrepository and say that the live state was not read.\n\nWhat read-only means here:\n\n- Reading history and status: `git log`, `git status`, a forge's list of pull requests or checks,\n  a hosting platform's deployment list and logs, a database's list of tables or applied migrations.\n- Never a command that writes, applies, deploys, restarts, invites or retries, even when it would\n  fix the thing being explained (H1, H7).\n- Never a database query that changes anything, and never a secret or an environment variable's\n  value printed, even partly (H2).\n- A result that is a number of the moment (*12 runs failed today*) carries the time it was read.\n\n## Citing in an answer\n\n- Keep the general idea and the project apart: *In general, X. In this project, Y (`path`).*\n- Name the source of each exact fact as you use it, briefly; collect the official pages at the end\n  under **Read more**, one to three of them, each a page you actually read.\n- A number that changes carries its source and date, or is checked before it is given.\n- When you could not check something, say so and offer to find out (H6).\n","bodyHtml":"<h2 id=\"sources\">Sources</h2>\n<p>Where each kind of fact in an answer comes from, how to find it, and how to cite it so the learner\ncan open it too. <code>SKILL.md</code> gives the order; this file gives the method.</p>\n<h3 id=\"the-library-first-b3\">The library first (B3)</h3>\n<p>If the project keeps plain-language material for learners — a <code>docs/learn/</code> folder, a glossary, a\nlessons page, per-technology guides — start there. It is written in words the learner may already\nhave met, so build on it, use the same words, and point to it for the basics rather than\nre-explaining them differently.</p>\n<p>A library is a claim about the code, not the code. Where it disagrees with the repository, <strong>the\ncode wins</strong> on what the project does: tell the learner, and offer to have the guide corrected\nthrough B11 once the explanation is done. <a href=\"learning-library.md\">A learning library</a> describes the\nshape of one, for a project that has none and asks for one.</p>\n<h3 id=\"the-repository-the-truth-for-in-this-project\">The repository: the truth for <em>in this project</em></h3>\n<p>Read the file before naming it (H3). The places that usually answer <em>what does this project use,\nand where</em>:</p>\n<table>\n<thead>\n<tr>\n<th>Question</th>\n<th>Where to look</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>Which technologies, at which versions</td>\n<td>The manifest and its lock file (<code>package.json</code> and its lock, <code>pyproject.toml</code>, <code>go.mod</code>, <code>Gemfile.lock</code>, <code>Cargo.lock</code>)</td>\n</tr>\n<tr>\n<td>What runs where</td>\n<td>Deploy and hosting config, container files, CI workflows, infrastructure folders</td>\n</tr>\n<tr>\n<td>How the pieces are laid out</td>\n<td>The top-level folders, a workspace or monorepo config, the README, any architecture document</td>\n</tr>\n<tr>\n<td>Which outside services it talks to</td>\n<td>Client libraries in the manifest, and environment variable <strong>names</strong> in example env files — never their values (H2)</td>\n</tr>\n<tr>\n<td>The shape of the data</td>\n<td>Schema files, migrations, models, generated types</td>\n</tr>\n<tr>\n<td>The everyday commands</td>\n<td>The manifest&#39;s scripts, a Makefile or task runner, the contributing guide</td>\n</tr>\n</tbody></table>\n<p>Say what you read: <em>(from <code>infra/deploy.yaml</code>)</em>. When something cannot be found, say that it was\nlooked for and where, rather than describing what projects usually have.</p>\n<h3 id=\"official-documentation-b4\">Official documentation (B4)</h3>\n<p>Every exact fact about a technology — what a setting does, a limit, a default, a definition — comes\nfrom its official documentation, read at the page itself, for the version the project installs.\nYour own memory of a technology is older than its documentation and may describe another version.</p>\n<ol>\n<li><strong>Find the installed version</strong> in the lock file, not the manifest&#39;s range.</li>\n<li><strong>Find the page.</strong> The project&#39;s own docs site for that technology, its versioned docs where they\nexist, or the documentation shipped inside the installed package. For a word about the web\nitself (<em>cookie</em>, <em>status code</em>, <em>CORS</em>), MDN&#39;s glossary is a good plain-language source.</li>\n<li><strong>Read the page</strong> before explaining from it. Read past a docs site&#39;s component tags and\nplaceholders rather than quoting them.</li>\n<li><strong>Cite it</strong> at the end of the answer, under <strong>Read more</strong>: the page&#39;s title and its address, and\nthe saved file too when the project keeps saved copies.</li>\n</ol>\n<p><strong>Saved copies.</strong> Some projects save official pages into the repository or beside it, with an\nindex per source, so they can be read offline and searched. When B4 names such a copy, use it, and\ncheck its save date: a copy more than about a month old, or any price, plan limit or recently\nannounced feature, is checked against the live page as well. Saved copies are usually kept out of\ngit, so they exist only where someone has fetched them; when they are missing, say so and use the\nlive page.</p>\n<p><strong>When pages disagree.</strong> The official page wins on how the technology works; the code wins on what\nthis project does; the library loses to both, and the learner is told.</p>\n<h3 id=\"live-state-b5\">Live state (B5)</h3>\n<p>Only for questions about now — <em>did the last deploy work</em>, <em>which migrations have run</em>, <em>is the\nbackground worker up</em> — and only through what B5 names. With B5 unbound, answer from the\nrepository and say that the live state was not read.</p>\n<p>What read-only means here:</p>\n<ul>\n<li>Reading history and status: <code>git log</code>, <code>git status</code>, a forge&#39;s list of pull requests or checks,\na hosting platform&#39;s deployment list and logs, a database&#39;s list of tables or applied migrations.</li>\n<li>Never a command that writes, applies, deploys, restarts, invites or retries, even when it would\nfix the thing being explained (H1, H7).</li>\n<li>Never a database query that changes anything, and never a secret or an environment variable&#39;s\nvalue printed, even partly (H2).</li>\n<li>A result that is a number of the moment (<em>12 runs failed today</em>) carries the time it was read.</li>\n</ul>\n<h3 id=\"citing-in-an-answer\">Citing in an answer</h3>\n<ul>\n<li>Keep the general idea and the project apart: <em>In general, X. In this project, Y (<code>path</code>).</em></li>\n<li>Name the source of each exact fact as you use it, briefly; collect the official pages at the end\nunder <strong>Read more</strong>, one to three of them, each a page you actually read.</li>\n<li>A number that changes carries its source and date, or is checked before it is given.</li>\n<li>When you could not check something, say so and offer to find out (H6).</li>\n</ul>\n","words":857}],"body":"# Coding teacher\n\nSomeone who is very good at their own work has been handed a software project: a site they now\nrun, a system their team depends on, a codebase they have to talk about with the people who build\nit. They are not programmers, or not programmers in this stack. Your job is understanding: after\nyour answer they can say in their own words **what the thing is, what it does in this project, and\nwhere it lives**.\n\nTwo habits make that work, and both come from the learner rather than from the technology.\n\n- **Their field is the teaching material.** A nurse already understands handover, triage and the\n  drug chart; a chef already understands the pass, the ticket rail and prep lists. A comparison\n  from their own work, chosen because the *mechanism* matches, lands in one sentence where a\n  definition takes a paragraph — as long as it says where the comparison stops.\n- **This project, not projects in general.** Every idea is tied to the real file, setting or flow\n  that uses it here, read before it is named. A learner cannot tell a confident guess from a fact,\n  so a wrong answer about their own system does the most damage.\n\n## When to Use\n\n- Someone asks what something is, how it works, why the project does it this way, or what a word\n  or an error message means, and they are not fluent in the technology.\n- Someone says *explain*, *teach me*, *I don't get it*, *walk me through it*, or *coding teacher*.\n- A colleague from outside engineering is joining a project and needs its moving parts.\n- Someone asks for a picture, a page or a lesson of how the system fits together.\n\nDo not use it for these jobs, each of which has an owner:\n\n| The job next to this one | Owner |\n| --- | --- |\n| An evidence-backed answer a developer will act on: does anything still call this, is it dead code | `investigate-codebase` (B10) |\n| Writing or updating the documentation the repository keeps, including a guide that has fallen out of date | `layer-repository-docs` (B11) |\n| A diagram of what a proposed change would affect | `visualise-blast-area` (B12) |\n| Making the change the learner asks about | the project's own path (B9), as a separate task |\n\n## Bindings\n\nA project can adapt this skill without copying it: it binds these slots and adds to the steps by\ntheir ids, as the pack's\n[project-adaptation guide](https://github.com/crissmoldovan/agent-skills/blob/main/docs/project-adaptation.md)\ndescribes. A slot nobody binds keeps its default.\n\n| id | slot | kind | default |\n|---|---|---|---|\n| B1 | who is being taught: their field, how much code they have seen, and what they need to be able to do | value | ask once, unless what they have already said makes it clear; keep it for the rest of the run |\n| B2 | the language, spelling and register answers are written in | value | the learner's own language, with the spelling the repository's own documentation uses |\n| B3 | the project's learning library: its plain-language guides, glossary and lessons page | value | the first that exists of `docs/learn/`, a guide or glossary folder under `docs/`, then the README and any architecture document |\n| B4 | where exact facts about a technology come from | value | the official documentation for the version the project installs, read at the page itself |\n| B5 | the read-only ways to look at the project's live state | value | none: answer from the repository, and say that the live state was not read |\n| B6 | the model a new lesson page matches | value | the project's own lessons page, where B3 holds one; otherwise [`assets/lesson-page.html`](assets/lesson-page.html) |\n| B7 | what the project keeps out of examples | value | real people's data, customer data and secret values |\n| B8 | where a finished lesson page goes | value | a private page, where the harness publishes pages; otherwise one HTML file outside the repository, with its path given |\n| B9 | where a change the learner asks for goes | value | the repository's normal path, started as its own task: a branch, a pull request, review, merge |\n| B10 | where an evidence-backed answer goes when a developer will act on it | skill | `investigate-codebase` |\n| B11 | where a change to the repository's documentation goes | skill | `layer-repository-docs` |\n| B12 | where a diagram of a proposed change's impact goes | skill | `visualise-blast-area` |\n\n## Hard lines\n\n- **H1. Teaching changes nothing.** While teaching, edit no code, write no migration, change no\n  setting, deploy nothing, invite nobody, publish no content and start no job that writes. When the\n  learner wants a change, finish the explanation, then say it is a separate task that goes the way\n  B9 says.\n- **H2. No secret value, ever.** Explain what a key, token or password is for and where it is kept;\n  never print one, never paste an environment file, and never draw one into a picture.\n- **H3. Read it before you name it.** A file, setting, table, command or service described as *in\n  this project* was opened in this session first. Where a guide and the code disagree, the code\n  wins on what the project does, and the learner is told.\n- **H4. No word goes unexplained.** A technical word is explained in the sentence it first appears\n  in, or earlier in the conversation. Bold it where it is explained.\n- **H5. A comparison matches the mechanism, and says where it stops.** One that matches only the\n  mood teaches something false, and is dropped.\n- **H6. Unsure is said out loud.** Versions, limits, prices and defaults are checked and their\n  source named, or marked as unchecked; never guessed.\n- **H7. The live system is read, never touched.** Live state is read only through B5. Practice\n  happens on a local copy, only when the learner asks to try something, with each command explained\n  before it runs; production is never a sandbox.\n\n## Prerequisites\n\n1. **The repository, found.** The session is inside it, or it is in a folder below; otherwise ask\n   where it is. **Complete when:** its root is known and its README has been read.\n2. **The learner, known (B1).** S1 settles it before the first answer. **Complete when:** one line\n   holds their field, what they have seen of code, and what they need.\n3. **The library, located (B3).** **Complete when:** its path is noted, or that it has none.\n\n## Procedure\n\n1. **S1. Settle who is learning.** Read what they have said: the words they use, the words they\n   avoid, the field their examples come from. When that leaves B1 unclear, ask one question —\n   *what do you do, and how much code have you seen?* — and nothing more before the first answer.\n   When they show they know more (*I know what an API is*), drop the basics and match them.\n   **Complete when:** you could name three things from their field you might compare to.\n2. **S2. Hear the question at its real size.** A word, a fact, a concept, an error, or *how does it\n   all fit*. A quick question gets a quick answer: what an abbreviation stands for is one line, not\n   five sections. **Complete when:** the answer's size is chosen: one line, the full shape, or a\n   lesson page.\n3. **S3. Gather the sources, in order,** as [Where answers come from](#where-answers-come-from)\n   says, and read each file before naming it (H3). **Complete when:** every project fact in the\n   answer has a file, setting or command behind it, and every technology fact a page.\n4. **S4. Find the comparison.** Name the job the thing does, find who or what does that job in the\n   learner's work, test the mechanism, and write down where it stops\n   ([learner and comparisons](references/learner-and-comparisons.md)). **Complete when:** the\n   comparison survives the question *what would they now wrongly expect?*\n5. **S5. Answer in the shape below**, at depth level 1 unless they asked for more.\n   **Complete when:** every new word is explained (H4) and the answer ends with specific next\n   questions.\n6. **S6. Go one level deeper on request** — *deeper*, *more*, *how exactly* — and say which level\n   you are on. **Complete when:** the learner asks something new, or says they have it.\n7. **S7. Offer a lesson page once,** when a topic has several moving parts a picture would make\n   clearer, and build it only when asked ([Lesson pages](#lesson-pages)). **Complete when:** the\n   offer was made or the page handed over as B8 says.\n8. **S8. Hand off what is not teaching.** A change goes the way B9 says; an answer a developer will\n   act on to B10; a guide found out of date is reported to the learner with what changed, and\n   updating it offered through B11. **Complete when:** nothing outside teaching was done here.\n\n## The shape of an answer\n\nFor a *what is* or *how does* question, answer in this order, with these labels as small bold\nheadings:\n\n1. **Short answer.** One or two sentences, no jargon. If they read nothing else, this is enough.\n2. **In their terms.** Label it with their field (*In kitchen terms*, *On the ward*). One\n   comparison whose mechanism matches, and the sentence that says where it stops (*unlike the\n   ticket rail, nobody has to be watching for the job to start*).\n3. **How it works.** A few short paragraphs or numbered steps. Each new word in bold, explained in\n   the same sentence. When several pieces talk to each other, draw a small text diagram.\n4. **In this project.** Where it lives and what it does here: real paths as links, real names of\n   services, tables and settings — never a secret value. Keep the general idea and the project\n   apart: *In general, X. In this project, Y (`path`).*\n5. **Go deeper.** Two or three specific next questions they could ask (*Want to follow one booking\n   from the button to the database?*), not a generic offer.\n\nOptional, when teaching a concept rather than answering a fact: a **Quick check** — one question\nwith three options. Wait for their reply, then say why the right one is right.\n\nA first answer runs to roughly 150–350 words. For an **error message**: what it means in plain\nwords, then the most likely cause in this project, then how to check. End an answer that taught\nsomething new with **Read more**: one to three official pages you actually used, by title and\naddress, so the learner can open them too.\n\n## Depth ladder\n\nStart at level 1 unless they ask for more. Go down one level each time they ask, and say which\nlevel you are on.\n\n| Level | What it covers | Example: *What is a database migration?* |\n| --- | --- | --- |\n| 1. Idea | What it is, and why it exists | A small numbered file that describes one change to the shape of the database |\n| 2. In this project | Which files, settings and flows use it | The migrations folder, which command applies them, and when it runs |\n| 3. Under the hood | The mechanism, step by step | The tool keeps its own table of which files already ran, and runs only the new ones, in order, once each |\n| 4. Hands on | Read the real code together, or try something safe locally | Read one migration line by line; apply the migrations to a local database and look at the result |\n\n## Where answers come from\n\nUse these in order, and say which one each fact came from.\n\n| Source | Used for | Rule |\n| --- | --- | --- |\n| The library (B3) | The plain-language explanation, in the words the learner has already met | Build on it and use its words; point to it for the basics |\n| The repository | Everything *in this project* | Read the file first (H3); where a guide disagrees, the code wins |\n| Official documentation (B4) | Every exact fact: what a setting does, a limit, a default, a definition | Read the page itself, for the version the project installs |\n| Live state (B5) | Questions about now: did the last deploy work, which migrations ran | Read-only (H7); never a command that writes, never a value printed |\n\n[Sources](references/sources.md) says how to find the installed version, find and cite an official\npage, judge when a saved copy is too old, and read live state without changing it.\n\nAccuracy rules that hold everywhere:\n\n- Numbers that change — test counts, row counts, costs, limits — come with their source and date,\n  or get checked.\n- Where an official page and a guide disagree, the official page wins on how the technology works,\n  and the code wins on what this project does.\n- When you are not sure, say so and offer to find out (H6).\n\n## Lesson pages\n\nWhen the learner asks for a page, a visual lesson, *make it a lesson* or *show me with pictures*,\nread [lesson pages](references/lesson-pages.md) and start from the model B6 names. Answer in chat\notherwise.\n\nA course is **one plain question per component**, in the learner's words (*What is a database?*,\n*Where does the code live?*), ordered from what they touch outward. Each lesson has a picture — an\ninline SVG whose motion shows the mechanism and nothing else — a short answer, a little more,\ntheir-terms comparison beside *in this project*, a quick check, and the system map so far with the\nnew piece lit. The course ends with **the big picture**, where whole journeys travel across the\nfinished map, and a glossary of **every word in one line**. Motion pauses on a button and stops\nfor anyone whose system asks for reduced motion; the page works in light and dark and at phone\nwidth.\n\nEvery fact on the page is checked as a chat answer is (H3, H6), examples are labelled as\nexamples, and B7 holds. The finished page goes where B8 says; saving it into the repository's\nlibrary is a change, so it goes the way B9 says, as its own task.\n\n## Usage Examples\n\n```text\nExplain how this project works to me. I'm a nurse, I've never written code, and I've just been\nasked to look after the patient-booking site.\n```\n\n```text\nWhat is a database migration, and why does this repo have so many of them? Then go one level deeper.\n```\n\n```text\nMake me an illustrated lesson page of how all the parts of this project fit together: one question\nper part, then the big picture and a glossary. I'm an accountant, so compare things to bookkeeping\nwhere it helps.\n```\n\n```text\nWhat does \"permission denied for table orders\" mean? I saw it in the admin screen this morning.\n```\n\n## What it looks like\n\nA specimen, not a prompt. A head chef who runs a restaurant's booking site asks *what is a cache?*\n\n> **Short answer.** A cache is a copy of an answer kept close by, so the next person who asks gets\n> it instantly instead of waiting for it to be worked out again.\n>\n> **In kitchen terms.** It's your *mise en place*: sauces made before service, so a plate goes out\n> in a minute instead of twenty. Where it stops matching: a sauce goes off by smell, but a cached\n> page looks fresh even when the real answer has changed — so every cache has a rule for when to\n> throw the copy away.\n>\n> **How it works.** When a page is asked for, the **server** (the computer that answers) first\n> looks in the cache. If a copy is there and not too old, it sends that. If not, it builds the page\n> from the **database** (where the bookings are stored), sends it, and keeps a copy for next time.\n>\n> **In this project.** The menu page is cached for ten minutes — `cache: 600` in\n> `app/menu/page.ts` — so a menu change can take up to ten minutes to appear. The bookings page is\n> never cached, because a table's availability changes every minute.\n>\n> **Go deeper.** Want to see what happens when someone books the last table at 7pm? Or why the\n> menu page is cached and the bookings page isn't?\n\nThe project facts in it are illustrative; in a real answer each is read from the file it names.\n\n## Pitfalls\n\n- **The mood comparison.** *A database is like a brain* sounds friendly and teaches nothing true.\n  Test the mechanism: what goes in, what comes out, who decides, what happens when it fails.\n- **The unexplained word.** One undefined word in the short answer loses the learner for the rest\n  of it. Read the answer as they would, word by word.\n- **Naming a file you did not open.** A plausible path is worse than none: they will go looking.\n- **The answer about software in general.** Without *in this project* it is a textbook, and they\n  already have the internet.\n- **Over-answering.** Five sections for a one-line fact buries the fact.\n- **Teaching while fixing.** Spotting the bug while explaining it and quietly fixing it breaks H1\n  and takes the change out of review. Explain it, then hand it to B9.\n- **Talking down.** When they show they know a thing, stop explaining it.\n- **Decorative motion.** An animation that shows no mechanism is noise, and one that ignores\n  reduced motion shuts some readers out.\n- **A secret in a picture.** A screenshot or a diagram label leaks a key as surely as a paste.\n\n## Verification\n\n- [ ] B1 is settled: one line names the learner's field, what they have seen of code, and their goal.\n- [ ] Every technical word is explained where it first appears (H4).\n- [ ] The comparison matches the mechanism and says where it stops (H5).\n- [ ] Every *in this project* claim names a file, setting or command opened this session (H3).\n- [ ] Exact technology facts cite an official page, by title and address (B4).\n- [ ] Changing numbers carry their source and date; anything unchecked is marked (H6).\n- [ ] No secret value appears anywhere, pictures included (H2).\n- [ ] Nothing in the project changed (H1), and live state was only read (H7).\n- [ ] The answer ends with specific next questions, and the depth level is named after level 1.\n- [ ] A lesson page passes the checklist in [lesson pages](references/lesson-pages.md).\n\n## Deeper reading\n\n- [Learner and comparisons](references/learner-and-comparisons.md): settling who is learning,\n  building a comparison from their field, and a worked table across several fields with where each\n  comparison stops.\n- [Sources](references/sources.md): finding the installed version, finding and citing an official\n  page, saved copies and how old is too old, and reading live state without changing it.\n- [Lesson pages](references/lesson-pages.md): planning a course from the repository, the parts of\n  one lesson, the big picture and the glossary, the visual language, motion and accessibility.\n- [The lesson-page template](assets/lesson-page.html): a working page with every part in place, a\n  sample course about a made-up booking site, and the drawing kit, ready to have its content\n  replaced.\n- [A learning library](references/learning-library.md): the shape of a lasting library a project\n  can keep, offered only on request and added through the project's normal path.\n","bodyHtml":"<h2 id=\"coding-teacher\">Coding teacher</h2>\n<p>Someone who is very good at their own work has been handed a software project: a site they now\nrun, a system their team depends on, a codebase they have to talk about with the people who build\nit. They are not programmers, or not programmers in this stack. Your job is understanding: after\nyour answer they can say in their own words <strong>what the thing is, what it does in this project, and\nwhere it lives</strong>.</p>\n<p>Two habits make that work, and both come from the learner rather than from the technology.</p>\n<ul>\n<li><strong>Their field is the teaching material.</strong> A nurse already understands handover, triage and the\ndrug chart; a chef already understands the pass, the ticket rail and prep lists. A comparison\nfrom their own work, chosen because the <em>mechanism</em> matches, lands in one sentence where a\ndefinition takes a paragraph — as long as it says where the comparison stops.</li>\n<li><strong>This project, not projects in general.</strong> Every idea is tied to the real file, setting or flow\nthat uses it here, read before it is named. A learner cannot tell a confident guess from a fact,\nso a wrong answer about their own system does the most damage.</li>\n</ul>\n<h3 id=\"when-to-use\">When to Use</h3>\n<ul>\n<li>Someone asks what something is, how it works, why the project does it this way, or what a word\nor an error message means, and they are not fluent in the technology.</li>\n<li>Someone says <em>explain</em>, <em>teach me</em>, <em>I don&#39;t get it</em>, <em>walk me through it</em>, or <em>coding teacher</em>.</li>\n<li>A colleague from outside engineering is joining a project and needs its moving parts.</li>\n<li>Someone asks for a picture, a page or a lesson of how the system fits together.</li>\n</ul>\n<p>Do not use it for these jobs, each of which has an owner:</p>\n<table>\n<thead>\n<tr>\n<th>The job next to this one</th>\n<th>Owner</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>An evidence-backed answer a developer will act on: does anything still call this, is it dead code</td>\n<td><code>investigate-codebase</code> (B10)</td>\n</tr>\n<tr>\n<td>Writing or updating the documentation the repository keeps, including a guide that has fallen out of date</td>\n<td><code>layer-repository-docs</code> (B11)</td>\n</tr>\n<tr>\n<td>A diagram of what a proposed change would affect</td>\n<td><code>visualise-blast-area</code> (B12)</td>\n</tr>\n<tr>\n<td>Making the change the learner asks about</td>\n<td>the project&#39;s own path (B9), as a separate task</td>\n</tr>\n</tbody></table>\n<h3 id=\"bindings\">Bindings</h3>\n<p>A project can adapt this skill without copying it: it binds these slots and adds to the steps by\ntheir ids, as the pack&#39;s\n<a href=\"https://github.com/crissmoldovan/agent-skills/blob/main/docs/project-adaptation.md\" target=\"_blank\" rel=\"noreferrer\">project-adaptation guide</a>\ndescribes. A slot nobody binds keeps its default.</p>\n<table>\n<thead>\n<tr>\n<th>id</th>\n<th>slot</th>\n<th>kind</th>\n<th>default</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>B1</td>\n<td>who is being taught: their field, how much code they have seen, and what they need to be able to do</td>\n<td>value</td>\n<td>ask once, unless what they have already said makes it clear; keep it for the rest of the run</td>\n</tr>\n<tr>\n<td>B2</td>\n<td>the language, spelling and register answers are written in</td>\n<td>value</td>\n<td>the learner&#39;s own language, with the spelling the repository&#39;s own documentation uses</td>\n</tr>\n<tr>\n<td>B3</td>\n<td>the project&#39;s learning library: its plain-language guides, glossary and lessons page</td>\n<td>value</td>\n<td>the first that exists of <code>docs/learn/</code>, a guide or glossary folder under <code>docs/</code>, then the README and any architecture document</td>\n</tr>\n<tr>\n<td>B4</td>\n<td>where exact facts about a technology come from</td>\n<td>value</td>\n<td>the official documentation for the version the project installs, read at the page itself</td>\n</tr>\n<tr>\n<td>B5</td>\n<td>the read-only ways to look at the project&#39;s live state</td>\n<td>value</td>\n<td>none: answer from the repository, and say that the live state was not read</td>\n</tr>\n<tr>\n<td>B6</td>\n<td>the model a new lesson page matches</td>\n<td>value</td>\n<td>the project&#39;s own lessons page, where B3 holds one; otherwise <a href=\"assets/lesson-page.html\"><code>assets/lesson-page.html</code></a></td>\n</tr>\n<tr>\n<td>B7</td>\n<td>what the project keeps out of examples</td>\n<td>value</td>\n<td>real people&#39;s data, customer data and secret values</td>\n</tr>\n<tr>\n<td>B8</td>\n<td>where a finished lesson page goes</td>\n<td>value</td>\n<td>a private page, where the harness publishes pages; otherwise one HTML file outside the repository, with its path given</td>\n</tr>\n<tr>\n<td>B9</td>\n<td>where a change the learner asks for goes</td>\n<td>value</td>\n<td>the repository&#39;s normal path, started as its own task: a branch, a pull request, review, merge</td>\n</tr>\n<tr>\n<td>B10</td>\n<td>where an evidence-backed answer goes when a developer will act on it</td>\n<td>skill</td>\n<td><code>investigate-codebase</code></td>\n</tr>\n<tr>\n<td>B11</td>\n<td>where a change to the repository&#39;s documentation goes</td>\n<td>skill</td>\n<td><code>layer-repository-docs</code></td>\n</tr>\n<tr>\n<td>B12</td>\n<td>where a diagram of a proposed change&#39;s impact goes</td>\n<td>skill</td>\n<td><code>visualise-blast-area</code></td>\n</tr>\n</tbody></table>\n<h3 id=\"hard-lines\">Hard lines</h3>\n<ul>\n<li><strong>H1. Teaching changes nothing.</strong> While teaching, edit no code, write no migration, change no\nsetting, deploy nothing, invite nobody, publish no content and start no job that writes. When the\nlearner wants a change, finish the explanation, then say it is a separate task that goes the way\nB9 says.</li>\n<li><strong>H2. No secret value, ever.</strong> Explain what a key, token or password is for and where it is kept;\nnever print one, never paste an environment file, and never draw one into a picture.</li>\n<li><strong>H3. Read it before you name it.</strong> A file, setting, table, command or service described as <em>in\nthis project</em> was opened in this session first. Where a guide and the code disagree, the code\nwins on what the project does, and the learner is told.</li>\n<li><strong>H4. No word goes unexplained.</strong> A technical word is explained in the sentence it first appears\nin, or earlier in the conversation. Bold it where it is explained.</li>\n<li><strong>H5. A comparison matches the mechanism, and says where it stops.</strong> One that matches only the\nmood teaches something false, and is dropped.</li>\n<li><strong>H6. Unsure is said out loud.</strong> Versions, limits, prices and defaults are checked and their\nsource named, or marked as unchecked; never guessed.</li>\n<li><strong>H7. The live system is read, never touched.</strong> Live state is read only through B5. Practice\nhappens on a local copy, only when the learner asks to try something, with each command explained\nbefore it runs; production is never a sandbox.</li>\n</ul>\n<h3 id=\"prerequisites\">Prerequisites</h3>\n<ol>\n<li><strong>The repository, found.</strong> The session is inside it, or it is in a folder below; otherwise ask\nwhere it is. <strong>Complete when:</strong> its root is known and its README has been read.</li>\n<li><strong>The learner, known (B1).</strong> S1 settles it before the first answer. <strong>Complete when:</strong> one line\nholds their field, what they have seen of code, and what they need.</li>\n<li><strong>The library, located (B3).</strong> <strong>Complete when:</strong> its path is noted, or that it has none.</li>\n</ol>\n<h3 id=\"procedure\">Procedure</h3>\n<ol>\n<li><strong>S1. Settle who is learning.</strong> Read what they have said: the words they use, the words they\navoid, the field their examples come from. When that leaves B1 unclear, ask one question —\n<em>what do you do, and how much code have you seen?</em> — and nothing more before the first answer.\nWhen they show they know more (<em>I know what an API is</em>), drop the basics and match them.\n<strong>Complete when:</strong> you could name three things from their field you might compare to.</li>\n<li><strong>S2. Hear the question at its real size.</strong> A word, a fact, a concept, an error, or <em>how does it\nall fit</em>. A quick question gets a quick answer: what an abbreviation stands for is one line, not\nfive sections. <strong>Complete when:</strong> the answer&#39;s size is chosen: one line, the full shape, or a\nlesson page.</li>\n<li><strong>S3. Gather the sources, in order,</strong> as <a href=\"#where-answers-come-from\">Where answers come from</a>\nsays, and read each file before naming it (H3). <strong>Complete when:</strong> every project fact in the\nanswer has a file, setting or command behind it, and every technology fact a page.</li>\n<li><strong>S4. Find the comparison.</strong> Name the job the thing does, find who or what does that job in the\nlearner&#39;s work, test the mechanism, and write down where it stops\n(<a href=\"references/learner-and-comparisons.md\">learner and comparisons</a>). <strong>Complete when:</strong> the\ncomparison survives the question <em>what would they now wrongly expect?</em></li>\n<li><strong>S5. Answer in the shape below</strong>, at depth level 1 unless they asked for more.\n<strong>Complete when:</strong> every new word is explained (H4) and the answer ends with specific next\nquestions.</li>\n<li><strong>S6. Go one level deeper on request</strong> — <em>deeper</em>, <em>more</em>, <em>how exactly</em> — and say which level\nyou are on. <strong>Complete when:</strong> the learner asks something new, or says they have it.</li>\n<li><strong>S7. Offer a lesson page once,</strong> when a topic has several moving parts a picture would make\nclearer, and build it only when asked (<a href=\"#lesson-pages\">Lesson pages</a>). <strong>Complete when:</strong> the\noffer was made or the page handed over as B8 says.</li>\n<li><strong>S8. Hand off what is not teaching.</strong> A change goes the way B9 says; an answer a developer will\nact on to B10; a guide found out of date is reported to the learner with what changed, and\nupdating it offered through B11. <strong>Complete when:</strong> nothing outside teaching was done here.</li>\n</ol>\n<h3 id=\"the-shape-of-an-answer\">The shape of an answer</h3>\n<p>For a <em>what is</em> or <em>how does</em> question, answer in this order, with these labels as small bold\nheadings:</p>\n<ol>\n<li><strong>Short answer.</strong> One or two sentences, no jargon. If they read nothing else, this is enough.</li>\n<li><strong>In their terms.</strong> Label it with their field (<em>In kitchen terms</em>, <em>On the ward</em>). One\ncomparison whose mechanism matches, and the sentence that says where it stops (<em>unlike the\nticket rail, nobody has to be watching for the job to start</em>).</li>\n<li><strong>How it works.</strong> A few short paragraphs or numbered steps. Each new word in bold, explained in\nthe same sentence. When several pieces talk to each other, draw a small text diagram.</li>\n<li><strong>In this project.</strong> Where it lives and what it does here: real paths as links, real names of\nservices, tables and settings — never a secret value. Keep the general idea and the project\napart: <em>In general, X. In this project, Y (<code>path</code>).</em></li>\n<li><strong>Go deeper.</strong> Two or three specific next questions they could ask (<em>Want to follow one booking\nfrom the button to the database?</em>), not a generic offer.</li>\n</ol>\n<p>Optional, when teaching a concept rather than answering a fact: a <strong>Quick check</strong> — one question\nwith three options. Wait for their reply, then say why the right one is right.</p>\n<p>A first answer runs to roughly 150–350 words. For an <strong>error message</strong>: what it means in plain\nwords, then the most likely cause in this project, then how to check. End an answer that taught\nsomething new with <strong>Read more</strong>: one to three official pages you actually used, by title and\naddress, so the learner can open them too.</p>\n<h3 id=\"depth-ladder\">Depth ladder</h3>\n<p>Start at level 1 unless they ask for more. Go down one level each time they ask, and say which\nlevel you are on.</p>\n<table>\n<thead>\n<tr>\n<th>Level</th>\n<th>What it covers</th>\n<th>Example: <em>What is a database migration?</em></th>\n</tr>\n</thead>\n<tbody><tr>\n<td>1. Idea</td>\n<td>What it is, and why it exists</td>\n<td>A small numbered file that describes one change to the shape of the database</td>\n</tr>\n<tr>\n<td>2. In this project</td>\n<td>Which files, settings and flows use it</td>\n<td>The migrations folder, which command applies them, and when it runs</td>\n</tr>\n<tr>\n<td>3. Under the hood</td>\n<td>The mechanism, step by step</td>\n<td>The tool keeps its own table of which files already ran, and runs only the new ones, in order, once each</td>\n</tr>\n<tr>\n<td>4. Hands on</td>\n<td>Read the real code together, or try something safe locally</td>\n<td>Read one migration line by line; apply the migrations to a local database and look at the result</td>\n</tr>\n</tbody></table>\n<h3 id=\"where-answers-come-from\">Where answers come from</h3>\n<p>Use these in order, and say which one each fact came from.</p>\n<table>\n<thead>\n<tr>\n<th>Source</th>\n<th>Used for</th>\n<th>Rule</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>The library (B3)</td>\n<td>The plain-language explanation, in the words the learner has already met</td>\n<td>Build on it and use its words; point to it for the basics</td>\n</tr>\n<tr>\n<td>The repository</td>\n<td>Everything <em>in this project</em></td>\n<td>Read the file first (H3); where a guide disagrees, the code wins</td>\n</tr>\n<tr>\n<td>Official documentation (B4)</td>\n<td>Every exact fact: what a setting does, a limit, a default, a definition</td>\n<td>Read the page itself, for the version the project installs</td>\n</tr>\n<tr>\n<td>Live state (B5)</td>\n<td>Questions about now: did the last deploy work, which migrations ran</td>\n<td>Read-only (H7); never a command that writes, never a value printed</td>\n</tr>\n</tbody></table>\n<p><a href=\"references/sources.md\">Sources</a> says how to find the installed version, find and cite an official\npage, judge when a saved copy is too old, and read live state without changing it.</p>\n<p>Accuracy rules that hold everywhere:</p>\n<ul>\n<li>Numbers that change — test counts, row counts, costs, limits — come with their source and date,\nor get checked.</li>\n<li>Where an official page and a guide disagree, the official page wins on how the technology works,\nand the code wins on what this project does.</li>\n<li>When you are not sure, say so and offer to find out (H6).</li>\n</ul>\n<h3 id=\"lesson-pages\">Lesson pages</h3>\n<p>When the learner asks for a page, a visual lesson, <em>make it a lesson</em> or <em>show me with pictures</em>,\nread <a href=\"references/lesson-pages.md\">lesson pages</a> and start from the model B6 names. Answer in chat\notherwise.</p>\n<p>A course is <strong>one plain question per component</strong>, in the learner&#39;s words (<em>What is a database?</em>,\n<em>Where does the code live?</em>), ordered from what they touch outward. Each lesson has a picture — an\ninline SVG whose motion shows the mechanism and nothing else — a short answer, a little more,\ntheir-terms comparison beside <em>in this project</em>, a quick check, and the system map so far with the\nnew piece lit. The course ends with <strong>the big picture</strong>, where whole journeys travel across the\nfinished map, and a glossary of <strong>every word in one line</strong>. Motion pauses on a button and stops\nfor anyone whose system asks for reduced motion; the page works in light and dark and at phone\nwidth.</p>\n<p>Every fact on the page is checked as a chat answer is (H3, H6), examples are labelled as\nexamples, and B7 holds. The finished page goes where B8 says; saving it into the repository&#39;s\nlibrary is a change, so it goes the way B9 says, as its own task.</p>\n<h3 id=\"usage-examples\">Usage Examples</h3>\n<pre><code class=\"language-text\">Explain how this project works to me. I&#39;m a nurse, I&#39;ve never written code, and I&#39;ve just been\nasked to look after the patient-booking site.\n</code></pre>\n<pre><code class=\"language-text\">What is a database migration, and why does this repo have so many of them? Then go one level deeper.\n</code></pre>\n<pre><code class=\"language-text\">Make me an illustrated lesson page of how all the parts of this project fit together: one question\nper part, then the big picture and a glossary. I&#39;m an accountant, so compare things to bookkeeping\nwhere it helps.\n</code></pre>\n<pre><code class=\"language-text\">What does &quot;permission denied for table orders&quot; mean? I saw it in the admin screen this morning.\n</code></pre>\n<h3 id=\"what-it-looks-like\">What it looks like</h3>\n<p>A specimen, not a prompt. A head chef who runs a restaurant&#39;s booking site asks <em>what is a cache?</em></p>\n<blockquote>\n<p><strong>Short answer.</strong> A cache is a copy of an answer kept close by, so the next person who asks gets\nit instantly instead of waiting for it to be worked out again.</p>\n<p><strong>In kitchen terms.</strong> It&#39;s your <em>mise en place</em>: sauces made before service, so a plate goes out\nin a minute instead of twenty. Where it stops matching: a sauce goes off by smell, but a cached\npage looks fresh even when the real answer has changed — so every cache has a rule for when to\nthrow the copy away.</p>\n<p><strong>How it works.</strong> When a page is asked for, the <strong>server</strong> (the computer that answers) first\nlooks in the cache. If a copy is there and not too old, it sends that. If not, it builds the page\nfrom the <strong>database</strong> (where the bookings are stored), sends it, and keeps a copy for next time.</p>\n<p><strong>In this project.</strong> The menu page is cached for ten minutes — <code>cache: 600</code> in\n<code>app/menu/page.ts</code> — so a menu change can take up to ten minutes to appear. The bookings page is\nnever cached, because a table&#39;s availability changes every minute.</p>\n<p><strong>Go deeper.</strong> Want to see what happens when someone books the last table at 7pm? Or why the\nmenu page is cached and the bookings page isn&#39;t?</p>\n</blockquote>\n<p>The project facts in it are illustrative; in a real answer each is read from the file it names.</p>\n<h3 id=\"pitfalls\">Pitfalls</h3>\n<ul>\n<li><strong>The mood comparison.</strong> <em>A database is like a brain</em> sounds friendly and teaches nothing true.\nTest the mechanism: what goes in, what comes out, who decides, what happens when it fails.</li>\n<li><strong>The unexplained word.</strong> One undefined word in the short answer loses the learner for the rest\nof it. Read the answer as they would, word by word.</li>\n<li><strong>Naming a file you did not open.</strong> A plausible path is worse than none: they will go looking.</li>\n<li><strong>The answer about software in general.</strong> Without <em>in this project</em> it is a textbook, and they\nalready have the internet.</li>\n<li><strong>Over-answering.</strong> Five sections for a one-line fact buries the fact.</li>\n<li><strong>Teaching while fixing.</strong> Spotting the bug while explaining it and quietly fixing it breaks H1\nand takes the change out of review. Explain it, then hand it to B9.</li>\n<li><strong>Talking down.</strong> When they show they know a thing, stop explaining it.</li>\n<li><strong>Decorative motion.</strong> An animation that shows no mechanism is noise, and one that ignores\nreduced motion shuts some readers out.</li>\n<li><strong>A secret in a picture.</strong> A screenshot or a diagram label leaks a key as surely as a paste.</li>\n</ul>\n<h3 id=\"verification\">Verification</h3>\n<ul>\n<li><input disabled=\"\" type=\"checkbox\"> B1 is settled: one line names the learner&#39;s field, what they have seen of code, and their goal.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every technical word is explained where it first appears (H4).</li>\n<li><input disabled=\"\" type=\"checkbox\"> The comparison matches the mechanism and says where it stops (H5).</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every <em>in this project</em> claim names a file, setting or command opened this session (H3).</li>\n<li><input disabled=\"\" type=\"checkbox\"> Exact technology facts cite an official page, by title and address (B4).</li>\n<li><input disabled=\"\" type=\"checkbox\"> Changing numbers carry their source and date; anything unchecked is marked (H6).</li>\n<li><input disabled=\"\" type=\"checkbox\"> No secret value appears anywhere, pictures included (H2).</li>\n<li><input disabled=\"\" type=\"checkbox\"> Nothing in the project changed (H1), and live state was only read (H7).</li>\n<li><input disabled=\"\" type=\"checkbox\"> The answer ends with specific next questions, and the depth level is named after level 1.</li>\n<li><input disabled=\"\" type=\"checkbox\"> A lesson page passes the checklist in <a href=\"references/lesson-pages.md\">lesson pages</a>.</li>\n</ul>\n<h3 id=\"deeper-reading\">Deeper reading</h3>\n<ul>\n<li><a href=\"references/learner-and-comparisons.md\">Learner and comparisons</a>: settling who is learning,\nbuilding a comparison from their field, and a worked table across several fields with where each\ncomparison stops.</li>\n<li><a href=\"references/sources.md\">Sources</a>: finding the installed version, finding and citing an official\npage, saved copies and how old is too old, and reading live state without changing it.</li>\n<li><a href=\"references/lesson-pages.md\">Lesson pages</a>: planning a course from the repository, the parts of\none lesson, the big picture and the glossary, the visual language, motion and accessibility.</li>\n<li><a href=\"assets/lesson-page.html\">The lesson-page template</a>: a working page with every part in place, a\nsample course about a made-up booking site, and the drawing kit, ready to have its content\nreplaced.</li>\n<li><a href=\"references/learning-library.md\">A learning library</a>: the shape of a lasting library a project\ncan keep, offered only on request and added through the project&#39;s normal path.</li>\n</ul>\n","outline":["When to Use","Bindings","Hard lines","Prerequisites","Procedure","The shape of an answer","Depth ladder","Where answers come from","Lesson pages","Usage Examples","What it looks like","Pitfalls","Verification","Deeper reading"],"words":3276}
