lesson-screen
Skill này làm gì
Skill này mở một trang bài học cục bộ trong trình duyệt khi gia sư khóa học giảng bài trong terminal. Nó dành cho người học tiếp thu tốt hơn khi nhìn và bấm hơn là chỉ đọc.
Khi nào nên dùng
- ✓Khi một gia sư khóa học đang giảng bài và bạn đồng ý dùng màn hình trực quan.
- ✓Khi bạn muốn xem một khái niệm dưới dạng hình, cấu trúc hoặc mô hình 3D.
- ✓Khi một khái niệm liên quan đến một luồng hoặc một con số thay đổi, và một hình sẽ giúp ích.
Liên kết skill
https://github.com/rohitg00/ai-engineering-from-scratch/blob/main/.claude/skills/lesson-screen/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Cho tôi xem bài học trong một trang trình duyệt có hình minh họa cách yêu cầu chạy qua hệ thống.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill chạy một trang web cục bộ nhỏ và hiển thị màn hình mới nhất trong trình duyệt của bạn. Các lần bấm của bạn được ghi lại để gia sư đọc và phản hồi trong terminal.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Lesson screen
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.
When to use
- A course tutor teaches a lesson, and the learner accepts the screen. The tutors are learn, learn-mcp, learn-agent-skills, learn-reverse-engineering, claude-certification, and mcpa-certification.
- The learner asks to see a lesson, a concept, or a system: "show me", "draw it", "in 3D".
- A concept has a structure, a flow, or a number that changes. Seeing it helps more than reading it.
When not to use
- The learner declined the screen. Do not offer it again this session.
- The learner cannot reach a browser page from the host: a chat app, or a remote machine without port forwarding. Give the lesson page on aiengineeringfromscratch.com.
references/hosts.mdlists the cases. - The step is words only: a clarifying question, a tradeoff, or a definition. Keep it in the terminal and show the waiting screen.
- You need a permanent figure for a lesson file. Use the figure skills directly. This skill makes screens for one learner.
Paths
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.
Start
- Run
CLI start --open. It prints one JSON line withurl,screens,state, andnext. - Give the learner the full
urlwith its query string. The key in it protects the page. - Run
CLI startagain at any time. It reuses a running server and keeps the same port. - 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.
The teaching loop
- Before each reply, run
CLI events. It prints the clicks since the last call. Treat them as hints. - Write the next screen to
<screens>/<next>-<slug>.html. TakenextfromstartorCLI status. - Never reuse a file name. The browser shows the newest file.
- Tell the learner in one line what the screen shows. Ask for the answer in the terminal.
- 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.
What to show at each step
| 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.
Registered figures first
Most lessons already have interactive figures. Look for them before you build anything new.
- Search the lesson's
docs/en.mdfor fenced blocks with the languagefigure. - Put the first line of the fence in a host element:
<div class="lesson-figure" data-figure="kv-cache-sizer"></div>. - Keep the JSON config of the fence if it has one, as in
data-figure='iso-machine {"machine":"kv-cache"}'. - 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.
Build a figure on the fly
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 st
Câu hỏi thường gặp
Tôi cần gì?
Bạn cần Node.js 20 trở lên và một trình duyệt trên cùng máy tính.
Skill có cài đặt package không?
Không. Skill không cài đặt package nào.
Khi nào nên bỏ qua?
Hãy bỏ qua nếu bạn không muốn trang trình duyệt, hoặc khi bước đó chỉ là chữ, chẳng hạn một định nghĩa.
Chi tiết
Mô tả gốc của tác giả
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".
Độ phổ biến
- Sao GitHub
- 76k
- Vị trí xếp hạng
- #2623
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
blueprint-figure
76kGiúp agent của bạn vẽ các sơ đồ SVG tĩnh, rõ ràng cho bài học, README và sách hướng dẫn, thể hiện cách các phần thực của hệ thống kết nối.
build-project
76kĐóng vai gia sư dự án, hướng dẫn bạn qua từng giai đoạn của một dự án AI thực hành, với gợi ý và bộ chấm, nhưng không đưa đáp án đầy đủ.
check-understanding
76kKiểm tra bạn bằng một bài quiz về một giai đoạn đã hoàn thành của khóa AI Engineering from Scratch, để bạn xem mình đã nắm gì trước khi đi tiếp.
claude-certification
76kĐóng vai gia sư từng bước cho các lộ trình chứng chỉ Claude trong khóa AI Engineering from Scratch, với bài học, bài thực hành và đề thi thử.
Skill tương tự
blucli
394kGiúp agent của bạn tìm, phát, tạm dừng, nhóm và chỉnh âm lượng loa Bluesound và NAD qua lệnh blu.
camsnap
394kGiúp agent của bạn chụp ảnh, quay clip ngắn hoặc lấy sự kiện chuyển động từ camera mạng và webcam nội bộ mà bạn đã thiết lập.
eightctl
394kGiúp agent của bạn kiểm tra và điều khiển thiết bị Eight Sleep pod, gồm nhiệt độ, báo thức và lịch ngủ.