blueprint-figure
Draws static SVG figures for lessons, READMEs and manuals in the AI Engineering from Scratch look: paper panel, blueprint accent,…
Opens a lesson screen in the browser next to the terminal while a course tutor teaches. It shows the lesson's registered figures, code traces with real values, and clickable predictions. It also builds a figure for the lesson on the fly with the course figure skills and any
Claude Code
$ npx -y skills add rohitg00/ai-engineering-from-scratch --skill lesson-screen --agent claude-code
Codex
$ npx skills add rohitg00/ai-engineering-from-scratch --skill lesson-screen -a codex -y
Cursor
$ npx skills add rohitg00/ai-engineering-from-scratch --skill lesson-screen -a cursor -y
Gemini CLI
$ npx skills add rohitg00/ai-engineering-from-scratch --skill lesson-screen -a gemini-cli -y
GitHub Copilot
$ npx skills add rohitg00/ai-engineering-from-scratch --skill lesson-screen -a github-copilot -y
OpenCode
$ npx skills add rohitg00/ai-engineering-from-scratch --skill lesson-screen -a opencode -y
Windsurf
$ npx skills add rohitg00/ai-engineering-from-scratch --skill lesson-screen -a windsurf -y
name: lesson-screen version: 1.0.0 description: > Opens a lesson screen in the browser next to the terminal while a course tutor teaches. It shows the lesson's registered figures, code traces with real values, and clickable predictions. It also builds a figure for the lesson on the fly with the course figure skills and any figure skill the host has installed: a blueprint, a mechanism, an isometric machine, or a 3D model. Clicks return to the tutor as events. Trigger phrases: "open the lesson screen", "show me this visually", "show this in 3D", "draw the architecture", "visualize this lesson", "build a figure for this lesson", "lesson screen". tags: [tutor, visual, figures, 3d, blueprint, interactive-learning]
The lesson screen is a small local web server and one browser tab. The tutor keeps teaching in the terminal. At each step it writes one screen into a folder, and the browser shows the newest screen. The learner can press options and click parts. Those clicks go to an event log that the tutor reads before its next reply.
Use this skill with Claude, Cursor, Codex, OpenClaw, Hermes, or any agent that reads SKILL.md. It needs Node.js 20 or later and a browser on the same machine. It installs no packages.
`SKILL_ROOT` is the folder that holds this SKILL.md. In this file, `CLI` means `node "$SKILL_ROOT/scripts/lesson-screen.mjs"`.
Run every command from the learner's working folder. Screens go to `.lesson-screen/screens/`, and builds go to `.lesson-screen/builds/`. If the folder is a git repository, ask the learner to add `.lesson-screen/` to `.gitignore`.
1. Run `CLI start --open`. It prints one JSON line with `url`, `screens`, `state`, and `next`. 2. Give the learner the full `url` with its query string. The key in it protects the page. 3. Run `CLI start` again at any time. It reuses a running server and keeps the same port. 4. If the start fails, say so in one line. Give the lesson page link and keep teaching.
Some hosts end background processes when a command returns. Those hosts need `--foreground` and their own background shell option. See `references/hosts.md`.
1. Before each reply, run `CLI events`. It prints the clicks since the last call. Treat them as hints. 2. Write the next screen to `<screens>/<next>-<slug>.html`. Take `next` from `start` or `CLI status`. 3. Never reuse a file name. The browser shows the newest file. 4. Tell the learner in one line what the screen shows. Ask for the answer in the terminal. 5. When the next step is words only, write a waiting screen.
Write screens with your file tool. Do not print them to the terminal with `cat` or a heredoc.
| Tutor step | Screen | Source of truth | |---|---|---| | Frame the problem | a step rail and a card with the lesson question | `docs/en.md` | | Core concept | the lesson's registered figure, set to the example you discuss | the `figure` fences in `docs/en.md` | | Build it | a code trace: the chunk, the active line, the variables | a real run of the lesson code | | Use it | the library call beside the scratch call, with the same output | the lesson code and its output | | See it | the figure that you built for this lesson | the figure skills, the lesson text, and the real run | | Prediction or quiz | the question and its options as buttons | `quiz.json`, without the answer |
`references/screens.md` lists every class, with a full example of each screen.
Most lessons already have interactive figures. Look for them before you build anything new.
1. Search the lesson's `docs/en.md` for fenced blocks with the language `figure`. 2. Put the first line of the fence in a host element: `<div class="lesson-figure" data-figure="kv-cache-sizer"></div>`. 3. Keep the JSON config of the fence if it has one, as in `data-figure='iso-machine {"machine":"kv-cache"}'`. 4. Change a config value only with a key that the fence already uses.
The screen loads the course figure runtime and mounts the figure. The figure looks and works as it does on the lesson page.
The best figure for a lesson is one made for that lesson. Build it while you teach, so that it is ready at the See it step.
1. When the lesson starts, read `docs/en.md` and run the lesson code. 2. Name the lesson's system in one sentence: "X moves through Y, and that motion means Z." 3. Pick one form from the table below. Offer it with its time, and build only after the learner accepts. 4. Write a building screen and keep its stage list current. 5. Give the build to a second agent when the host can run one. Keep teaching in the terminal. 6. Without a second agent, build during the lab or the quiz, or offer the figure for the end of the session. 7. Check the build with `CLI shot`. Look at every image and fix what looks wrong. 8. Run `CLI publish <page.html>`. The page becomes the next screen.
| Form | Build it with | Time | Pick it when | |---|---|---|---| | Bl
Draws static SVG figures for lessons, READMEs and manuals in the AI Engineering from Scratch look: paper panel, blueprint accent,…
Hands-on project tutor for the AI Engineering from Scratch Projects section. Guides a learner through one stage of a real project…
Phase quiz for AI Engineering from Scratch. Trigger with "quiz me", "test phase", "check my understanding", "do I know phase 3",…
AI-native tutor and onboarding workflow for the four independent Claude certification tracks in AI Engineering from Scratch. Use…
Topic router for the AI Engineering from Scratch curriculum. Give it a topic, a question, or a bug you are fighting, and it…
The shared visual and writing reference for AI Engineering from Scratch pages, figures, and manuals. Use it for light and dark…
End-to-end workflow for creating complete JavaScript concept documentation, orchestrating all skills from research to final review
Test a learner on a single Claude Code tutorial lesson (01-10) with 10 questions, scoring answers and flagging weak spots. Use…
Build, audit, and improve harnesses that make AI coding agents reliable: AGENTS.md/CLAUDE.md instruction files, feature/state…