本文へ移動
cccskills
無料GitHub で公開日本語紹介

lesson-screen

レッスン中の図やコードの実行値、選択式の予測問題をブラウザーに表示し、学習者のクリックを講師エージェントに伝えるスキルです。

原文原文の説明を見る

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".

rohitg00/ai-engineering-from-scratchスター 75,564(GitHub 75,564 + cccskills 0)

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • レッスンの概念を図で見たいとき
  • コード実行中の値を追いたいとき
  • 画面上で予測問題に答えたいとき
  • レッスン後に練習・復習したいとき

日本語での紹介

できること

レッスンを進める講師エージェントと並行して、ブラウザーに学習画面を表示します。レッスンに登録済みの図、実際にコードを実行して得た値を示すトレース、選択肢をクリックできる予測問題などを画面に出せます。学習者のクリックはイベントとして記録され、講師が次の返答前に確認します。必要に応じて、ブループリント、機構図、アイソメトリック図、3Dモデルなど、レッスンの内容に合わせた図を作成して表示します。レッスン後には、用語の確認、クイズ、間違えた問題の復習、追加の学習先をまとめた練習ページも用意できます。

こんなときに便利

構造や処理の流れ、変化する数値など、文章だけではつかみにくい内容を視覚的に学びたいときに向いています。レッスンの説明やコード実行を見ながら、図や予測問題を使って理解を確かめたい場合にも使えます。画面の表示には、エージェントを動かす環境と同じマシン上のブラウザーが必要です。

使い方の例

  • 「このレッスンの内容を画面で見せて」
  • 「コードを実行したときの値を図で確認したい」
  • 「この仕組みを3Dで表示して」

注意点

Node.js 20以降と、実行環境と同じマシン上のブラウザーが必要です。既定では図の表示機能を aiengineeringfromscratch.com から読み込みます。図を新規作成する場合は、対応する図作成スキルや three.js などを使うことがあります。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

資料チェック

SKILL.md の記述から、注意が要る操作と導入の前提を AI が確認しました。点数は実際に動かした結果(実行検証)だけで付けています。

安全面送信・削除・コマンド実行などの扱いが明示されているか
B一部不足CLI実行と画面ファイル作成、外部サイト読み込みがあるが、共有設定の説明は限定的。
導入のしやすさ必要なツールや API キーが少ないか、書かれているか
A良好Node.js 20以降と同一マシンのブラウザーが必要と明記されている。

点数には入れていません。 2026年10月30日 時点で AI(OpenAI Codex)が判定しました。目安なので、入れる前に原文も確認してください。

評価が違うと思ったら、見直しを依頼する

どの項目が、なぜ違うと思うかを書いてください。ログインは不要です。内容を SKILL.md と照らし合わせて評価を作り直し、この欄に反映します。

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

含まれるファイル(10)

  • SKILL.md11.3 KB
  • agents/openai.yaml237 B
  • references/build.md7.1 KB
  • references/hosts.md2.7 KB
  • references/screens.md6.9 KB
  • scripts/lesson-screen.mjs49.3 KB
  • templates/frame.html11.6 KB
  • templates/helper.js2.5 KB
  • templates/practice.html37.9 KB
  • templates/shell.html11.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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.md lists 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

  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.

The teaching loop

  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.

What to show at each step

Tutor stepScreenSource of truth
Frame the problema step rail and a card with the lesson questiondocs/en.md
Core conceptthe lesson's registered figure, set to the example you discussthe figure fences in docs/en.md
Build ita code trace: the chunk, the active line, the variablesa real run of the lesson code
Use itthe library call beside the scratch call, with the same outputthe lesson code and its output
See itthe figure that you built for this lessonthe figure skills, the lesson text, and the real run
Prediction or quizthe question and its options as buttonsquiz.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.

  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.

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 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.
FormBuild it withTimePick it when
Blueprintthe blueprint-figure skill5 to 10 minutesthe idea is a structure with named parts
Mechanismtier 2 of the motion-figure skill15 to 25 minutesone control changes a computed result
Isometric machinethe isometric-explainer skill40 to 90 minutesthe idea is a process with stations, order, and failures
3D modelan installed figure skill with a 3D mode, or three.js60 to 120 minutesdepth or rotation is the idea, or the learner asks for 3D

Offer the smallest form that shows the idea. Offer a larger form when the learner has time and asks for more.

references/build.md holds the build stages, the page contract, the craft rules, and the 3D rules. Read it before every build.

Figure skills

The course figure skills are blueprint-figure, motion-figure, isometric-explainer, and course-style. If one is not installed, read its files from https://raw.githubusercontent.com/rohitg00/ai-engineering-from-scratch/main/skills/<name>/.

The host can have more figure skills installed, such as an isometric illustration skill with a 3D mode or WebGL effects. Check the host's skill list before you pick a form. Use such a skill when it fits the form, and keep the truth rules and the page contract of this skill.

Practice after the lesson

CLI practice <lesson-path> writes a practice page for one lesson as the next screen. It has four parts:

  • Brief: the hook, the learning objectives, and a card for each key term that shows its meaning on a press.
  • Drill: the questions from quiz.json, with keys 1 to 4, Enter for the next question, and an optional timer.
  • Review: missed questions return after 1, 3, 7, and 16 days.
  • Go deeper: the lesson page, the lesson folder, the command that runs its code, one exercise, and further reading.

Follow these rules:

  • Offer practice only after the tutor's own quiz for the lesson is complete. The page holds the answer key.
  • The page grades itself and keeps its progress in the browser. Record nothing from it. It never changes a score, a review queue, or any evidence.
  • It reads the lesson from the clone, or from GitHub when there is no clone.
  • A lesson without quiz.json gets questions made from its Key Terms table.

Truth rules

  • Never invent a number. Readouts, labels, and step text come from the lesson text or a real run.
  • A built figure with motion uses a small tested state model. The model moves the parts and writes the readouts.
  • Never put a correct answer, an answer index, or an explanation on a screen before the learner answers. The learner can read the page source. The practice page is the one exception, and it appears only after the tutor's quiz.
  • A click is a hint. It never counts as a quiz answer, checkpoint evidence, or a lab result.
  • The tutor's own rules decide progress, scores, and evidence.
  • Every built figure shows a line that says your tutor built it for this lesson and the course authors did not review it.
  • Every simulated or scaled value says so on the page.

Events

CLI events prints {"type":"events","events":[...]}. Each event has type, screen, and at, plus the fields below.

typeFieldsMeaning
choicequestion, choice, textThe learner pressed an option
partpart, labelThe learner asked about a part of a built figure
stepstep, labelThe learner moved to a step of a built figure
notetextA free note from a custom screen

CLI events --all prints every event and keeps the read position.

Stop and keep

  • Run CLI stop when the lesson ends, unless the next lesson starts now.
  • The server stops by itself after two idle hours.
  • Built pages open from disk. Questions to the tutor work only through the server.
  • Copy the builds that the learner wants to keep to learning-artifacts/<phase>-<lesson>/, with their source.

Commands

CommandDoes
start [--open] [--foreground] [--port N] [--host H] [--url-host H] [--assets live|local] [--repo PATH] [--idle-minutes N]Starts the server, or reuses a running one
statusPrints running, url, screens, latest, next, and the unread event count
events [--all]Prints new events
publish FILE [--name SLUG]Copies a built page into the screens folder as the next screen
practice LESSON [--repo PATH] [--name SLUG]Writes a practice page for a lesson path as the next screen
shot TARGET [--width N] [--height N] [--theme light|dark] [--wait MS] [--out FILE] [--chrome PATH]Takes a screenshot of a screen name or a page file with a local Chrome, Chromium, or Edge
stopStops the server

Every command takes --dir PATH for another session folder. Every command prints one JSON line. Errors go to stderr as JSON, with exit code 1.

By default the screen loads the figure runtime from aiengineeringfromscratch.com. --assets local loads it from the site/ folder of a clone. Run node site/build.js in that clone first.

Check before you finish

  • The learner got the full URL with its key, or the lesson page link.
  • You read events before each reply.
  • Each screen matches the step that you teach in the terminal.
  • No screen holds an answer before the learner answers.
  • Every number on a built figure comes from the lesson or a real run.
  • You looked at CLI shot images of each build in both themes before you published it.
  • You stopped the server, or told the learner that it stays up.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

blueprint-figure

無料概要あり

教材やREADME、マニュアル向けに、実際のシステム名やログを根拠とした静的SVG図を作るスキル。9種類の図と統一した色・矢印で仕組みを説明します。

  • READMEにシステム間の通信図を載せたいとき
  • マニュアルで状態遷移を説明したいとき
  • ログや仕様からデータの流れを図示
rohitg00/ai-engineering-from-scratch7.6万2026年10月30日 更新

build-project

無料概要あり

AI開発の実践課題を一段階ずつ進め、予測・実装・採点・振り返りを通じて学ぶスキル。完成コードに頼らず、ヒントを受けながら自分で書き、進捗を記録します。

  • 実践課題でAI開発を学びたいとき
  • 中断したプロジェクトを再開したいとき
  • ヒントで実装ミスを解きたいとき
rohitg00/ai-engineering-from-scratch7.6万2026年10月30日 更新

check-tests

無料概要あり

ローカルのテストに関する証拠を確認し、結果に参照元のファイルパスを残すスキル。必要な証拠が欠けている場合は、その時点で確認作業を止めます。

  • ローカルのテストの証拠確認
  • 確認結果に参照元を残したいとき
  • 証拠不足で確認を止めたいとき
rohitg00/ai-engineering-from-scratch7.6万2026年10月30日 更新

check-understanding

無料概要あり

AI Engineering from Scratchの学習内容を8問の四択クイズで確認し、得点と誤答の解説、復習すべきレッスンを示します。

  • フェーズ修了後に理解度を確かめたいとき
  • 次のフェーズへ進む準備を確認したいとき
  • 誤答から復習する教材を探したいとき
rohitg00/ai-engineering-from-scratch7.6万2026年10月30日 更新

claude-certification

無料概要あり

Claude認定の4つの学習コース選びから、対話型レッスン、実習、模擬試験、弱点の復習まで支援します。理解度と成果物を確認し、学習記録を残して続きから再開できます。

  • 目的に合う認定コースを選びたいとき
  • 保存した進捗から学習を再開したいとき
  • コードを書かずに実習へ取り組みたいとき
rohitg00/ai-engineering-from-scratch7.6万2026年10月30日 更新

course-guide

無料概要あり

AI Engineering from Scratchの学習テーマや困りごとに合う教材を探し、該当レッスンと次に使うコマンドを案内します。

  • 学びたいテーマの教材を探したいとき
  • 不具合の背景にある概念を学びたいとき
  • 進捗に合う次の学習内容を知りたいとき
rohitg00/ai-engineering-from-scratch7.6万2026年10月30日 更新

rohitg00 のスキルをすべて見る

このスキルの問題を報告する