interactive-lecture-deck
Skill0 starsChanged 4 months agoMITView on GitHub
Build a fixed-size, self-contained HTML lecture deck with visual slides, structured explanations, zoom data, and offline delivery.
In this repository31 other files it gives its agents.
- adaptive-pedagogySkill
- artifact-validatorSkill
- curriculum-graph-builderSkill
- deterministic-graderSkill
- evidence-emitterSkill
- formative-assessorSkill
- goal-interpreterSkill
- graceful-degradationSkill
- incremental-deliverySkill
- interactive-visual-explainerSkill
- knowledge-qaSkill
- learner-interviewSkill
- learner-state-reflectorSkill
- learning-companionSkill
- learning-reportSkill
- lesson-introSkill
- negotiationSkill
- orchestrator-policySkill
- plan-presenterSkill
- prerequisite-analyzerSkill
- product-page-component-rewriterSkill
- profile-readerSkill
- quiz-generatorSkill
- retrieval-practice-builderSkill
- review-schedulerSkill
- skill-eval-harnessSkill
- skill-forgeSkill
- socratic-proberSkill
- structured-outputSkill
- tool-investigatorSkill
- your-skill-nameSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
36 rules. About 0 are common, 15 are distinctive, and 21 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
21
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 49
Read references/task-contract.md only if inputs or output paths are unclear.
- Distinctive: line 50
Read only the minimum reference needed to write the current artifact.
- Distinctive: line 58
Use the full path only when the caller asks for pixel-level visual review or when the task has custom style/density, content-driven …
- Very specific: line 65
Keep opening first, closing last, and every middle page content.
- Very specific: line 66
Put one conclusion and one dominant data-visual on each content page.
- Distinctive: line 67
Keep visible text near 100 equivalent Chinese/ASCII units and never above 140.
- Distinctive: line 68
Add one useful zoom point to a content page when it improves teaching.
- Very specific: line 69
Keep anchors reasonably sized and aligned with both data-rect and lecture.json.
- Distinctive: line 71
Keep slides static, self-contained, offline, and free of scripts, external assets, animation, shadows, gradients, and heavyweight UI chrome.
- Very specific: line 74
Prefer build_standalone.py followed by validation before claiming delivery.
- Very specific: line 79
Before staging lecture.json, check every item below.
- Very specific: line 82
Every anchor object has id, non-empty label, and rect: {x,y,w,h}.
- Very specific: line 84
Every step has advance: "manual".
- Very specific: line 85
Every overview step uses exactly the full-view camera shape { "mode": "fit" }.
- Very specific: line 87
Every SVG <text> in every slide has one of the classes t, ts, th, or tn.
- Very specific: line 89
Run a final schema/strict validation after staging.
- Distinctive: line 95
All slide titles, labels, panel prose, onboarding text, narration, manifest descriptions, and delivery notes must be Simplified Chinese.
- Very specific: line 112
Do not generate standalone PNG/JPG images, PowerPoint/PPTX exports, or duplicate HTML/JSON copies when the inline slide assets and …
- Distinctive: line 116
Never remove a required project artifact before the build and strict validator have completed.
- Very specific: line 121
Read references/task-contract.md only when needed to resolve a missing contract value.
- Distinctive: line 123
Follow the fast path unless an escalation condition applies.
- Very specific: line 125
Start from assets/templates/slide-base.html, finish the opening and closing skeletons, then batch author the content pages.
- Very specific: line 127
Read references/lecture-data.md before writing non-trivial lecture.json.
- Very specific: line 129
Use scripts/init_project.py for a new project when available, or copy assets/runtime/index.html into an existing project runtime directory.
- Very specific: line 132
Run python3 scripts/validate_deck.py <project_dir> when available.
- Distinctive: line 139
Keep every slide exactly 1280×720.
- Distinctive: line 142
Use a conclusion-style title, minimal Chinese labels, and place detailed reasoning in the panel.
- Very specific: line 148
Keep slides self-contained: no network requests, no scripts in slides, and images only as inline SVG or data: URIs.
- Distinctive: line 150
Keep page animation in the runtime, not in slide CSS.
- Very specific: line 151
Keep lecture.json anchors and HTML data-anchor/data-rect values exactly aligned.
- Distinctive: line 152
Write panels as natural Chinese teacher explanations following observation → reason → meaning.
- Very specific: line 156
Keep all schema-external values inside extensions.
- Distinctive: line 160
Before authoring, create one internal outline with page role, one-sentence Chinese conclusion, visual grammar, two to four zoom anchors, …
- Distinctive: line 165
Use at least three pages when the source supports it.
- Distinctive: line 171
Use the standard project layout for the required build and validation artifacts:
- Very specific: line 182
Run the build and the quickest available validator.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Lecture Builder
Role
Act as the interactive lecture-deck author in a multi-agent teaching system. Reconstruct supplied
teaching content into a visual narrative. This preparation artifact may run in parallel with
lesson-intro; do not invoke it as a fact-checker or wait for any external-research result. Slides
show structure; the explanation panel makes the causal reasoning clear. Do not independently invent
or fact-check lesson claims unless the caller asks for that work. The primary learner-facing delivery
is the built, offline dist/lecture.html.
The source slides, lecture data, runtime, and manifest remain available in the project workspace
when needed for authoring, build, alignment, and validation, but do not routinely duplicate or
return them as separate learner-facing exports.
Fast path (default — prioritize artifact delivery)
Optimize for one useful, validated artifact from the supplied context. Unless the caller requests
constraints.qualityMode: full, use this path:
- Read
references/task-contract.mdonly if inputs or output paths are unclear. Otherwise use defaults. - Read only the minimum reference needed to write the current artifact; templates and design references are optional when a usable existing layout is available.
- Make a compact outline and start authoring immediately. Page count, layout, and anchor detail may be chosen incrementally; do not pause for a candidate comparison or staged approval.
- Scaffold/copy the runtime, write the smallest complete
lecture.jsonandmanifest.json, build the standalone artifact, then run a quick validation. Run strict validation and targeted repairs when practical; do not block delivery on non-critical warnings.
Use the full path only when the caller asks for pixel-level visual review or when the task has custom
style/density, content-driven anchors, complex protected-view geometry, or a validator-detected layout
risk. Full path adds design-system.md, visual-authoring.md, and zoom-contract.md; it may also run
measure_anchors.py and temporary browser/render checks.
Fast-path quality kernel
- Keep
openingfirst,closinglast, and every middle pagecontent. - Put one conclusion and one dominant
data-visualon each content page. - Keep visible text near 100 equivalent Chinese/ASCII units and never above 140.
- Add one useful zoom point to a content page when it improves teaching; additional zooms are optional.
- Keep anchors reasonably sized and aligned with both
data-rectandlecture.json; use the runtime's defaults when exact geometry is not important. - Keep slides static, self-contained, offline, and free of scripts, external assets, animation, shadows, gradients, and heavyweight UI chrome.
- Preserve the runtime's protected-view, geometry-probe, final guard, and full-bleed behavior.
- Prefer
build_standalone.pyfollowed by validation before claiming delivery. If strict validation is unavailable or non-critical warnings remain, deliver the built artifact and report the limitation.
v2 contract checklist (hard requirements)
Before staging lecture.json, check every item below. These are schema requirements, not style
preferences:
- Every anchor object has
id, non-emptylabel, andrect: {x,y,w,h}. Do not omitlabeland do not use the old four-number rect array. - Every step has
advance: "manual". - Every
overviewstep uses exactly the full-view camera shape{ "mode": "fit" }; it must not carryanchorId,depth,scale, orfocus. Only azoomstep usescamera.mode: "anchor". - Every SVG
<text>in every slide has one of the classest,ts,th, ortn.
Run a final schema/strict validation after staging. If a generated file is incomplete, finish or
repair that source file before returning the receipt; do not claim a staged deck is ready from a
partial lecture.json.
Output language
All slide titles, labels, panel prose, onboarding text, narration, manifest descriptions, and
delivery notes must be Simplified Chinese. Preserve formulas, code, identifiers, URLs, schema keys,
and file names in their original form. The output contract is interactive-lecture-deck-result.v2.1.
Required output
Produce these aligned project artifacts as needed for authoring, building, and strict validation;
the final learner-facing delivery is dist/lecture.html:
| Artifact | Requirement |
slides/sNN.html | One self-contained 1280×720 HTML slide per page; required source/validation artifact |
lecture.json | Overview, zoom steps, anchors, highlights, and Chinese panels; required alignment data |
runtime/index.html | The bundled local presentation runtime; required runtime/build artifact |
dist/lecture.html | One offline HTML publication with all content inlined; primary learner-facing delivery |
manifest.json | Artifact inventory and validation result; required project record, not a redundant export |
Do not generate standalone PNG/JPG images, PowerPoint/PPTX exports, or duplicate HTML/JSON copies
when the inline slide assets and dist/lecture.html already serve the purpose. Temporary files
needed for an important design, validation, rendering, or compatibility check may be viewed or
written to the host; keep them ephemeral when possible and do not include them in the delivery.
Never remove a required project artifact before the build and strict validator have completed.
Reference loading and authoring order
- Read this file.
- Read
references/task-contract.mdonly when needed to resolve a missing contract value; do not ask a follow-up question for ordinary omissions. Omittedconstraints.qualityModemeansfast. - Follow the fast path unless an escalation condition applies. Load only the directly relevant references and templates; load the full-path references conditionally.
- Start from
assets/templates/slide-base.html, finish the opening and closing skeletons, then batch author the content pages. - Read
references/lecture-data.mdbefore writing non-triviallecture.json; for a minimal deck, follow the existing example/schema and avoid loading unrelated zoom references. - Use
scripts/init_project.pyfor a new project when available, or copyassets/runtime/index.htmlinto an existing project runtime directory. - Run
python3 scripts/build_standalone.py <project_dir>. - Run
python3 scripts/validate_deck.py <project_dir>when available. Use--strictfor full quality mode or when the quick check reports contract errors. Runmeasure_anchors.pyonly for content-driven geometry or a detected anchor risk.
Content and layout rules
- Include an
openingfirst slide,closinglast slide, andcontentfor every middle slide. - Keep every slide exactly 1280×720; let the runtime handle fitting.
- Position direct content absolutely with explicit coordinates and stable anchor rectangles.
- Give every content slide at least one
data-visualobject; never make a text-only body slide. - Use a conclusion-style title, minimal Chinese labels, and place detailed reasoning in the panel.
- Draw the central relationship before adding labels. Choose a relation graph, process, coordinate chart, timeline, layered structure, comparison, formula map, or example decomposition.
- Define one anchor when zoom is useful; use two to four only when the explanation genuinely benefits.
- Make each zoom step explain one observation or causal relation; split steps when the panel is overloaded.
- Keep slides self-contained: no network requests, no scripts in slides, and images only as
inline SVG or
data:URIs. - Keep page animation in the runtime, not in slide CSS.
- Keep
lecture.jsonanchors and HTMLdata-anchor/data-rectvalues exactly aligned. - Write panels as natural Chinese teacher explanations following observation → reason → meaning; do not read slide text aloud.
- Preserve the runtime's spatial 3D transition, free-view layer, protected viewport solving, clean full-bleed interface, and first-frame onboarding contract.
- Keep all schema-external values inside
extensions; do not invent top-level fields.
Visual outline workflow
Before authoring, create one internal outline with page role, one-sentence Chinese conclusion, visual grammar, two to four zoom anchors, and the learner realization for each zoom. Compress long source material into three to seven visual propositions rather than paginating paragraphs. Do not create or compare multiple candidate outlines unless the caller explicitly requests alternatives.
Use at least three pages when the source supports it. Default totals are 5–7 for one problem, 6–8 for
one concept, and 8–12 for a lesson chapter, but a shorter complete deck is acceptable when speed or
source length calls for it. A requested slideCount includes opening and closing.
Build, validation, and delivery
Use the standard project layout for the required build and validation artifacts:
<project_dir>/
├── slides/s01.html
├── runtime/index.html
├── dist/lecture.html
├── lecture.json
└── manifest.jsonRun the build and the quickest available validator. If anchor geometry is content-driven, also run
python3 scripts/measure_anchors.py <project_dir> --round 8; do not run it by default. Report total
pages, content pages, zoom-step count, primary standalone path, validation status, assumptions, and
fallback items in Chinese. Mention source/validation paths only when they help the caller use or
inspect the project; do not return redundant copies or scratch artifacts. The final published deck and
all prose in its manifest must be Chinese.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

