agentleFS
LingXi-OrgLingXi-Org/LingxiSkills/skills/interactive-lecture-deck/SKILL.md

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.

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
  1. Very specific:

    Read references/task-contract.md only if inputs or output paths are unclear.

    line 49
  2. Distinctive:

    Read only the minimum reference needed to write the current artifact.

    line 50
  3. Distinctive:

    Use the full path only when the caller asks for pixel-level visual review or when the task has custom style/density, content-driven …

    line 58
  4. Very specific:

    Keep opening first, closing last, and every middle page content.

    line 65
  5. Very specific:

    Put one conclusion and one dominant data-visual on each content page.

    line 66
  6. Distinctive:

    Keep visible text near 100 equivalent Chinese/ASCII units and never above 140.

    line 67
  7. Distinctive:

    Add one useful zoom point to a content page when it improves teaching.

    line 68
  8. Very specific:

    Keep anchors reasonably sized and aligned with both data-rect and lecture.json.

    line 69
  9. Distinctive:

    Keep slides static, self-contained, offline, and free of scripts, external assets, animation, shadows, gradients, and heavyweight UI chrome.

    line 71
  10. Very specific:

    Prefer build_standalone.py followed by validation before claiming delivery.

    line 74
  11. Very specific:

    Before staging lecture.json, check every item below.

    line 79
  12. Very specific:

    Every anchor object has id, non-empty label, and rect: {x,y,w,h}.

    line 82
  13. Very specific:

    Every step has advance: "manual".

    line 84
  14. Very specific:

    Every overview step uses exactly the full-view camera shape { "mode": "fit" }.

    line 85
  15. Very specific:

    Every SVG <text> in every slide has one of the classes t, ts, th, or tn.

    line 87
  16. Very specific:

    Run a final schema/strict validation after staging.

    line 89
  17. Distinctive:

    All slide titles, labels, panel prose, onboarding text, narration, manifest descriptions, and delivery notes must be Simplified Chinese.

    line 95
  18. Very specific:

    Do not generate standalone PNG/JPG images, PowerPoint/PPTX exports, or duplicate HTML/JSON copies when the inline slide assets and …

    line 112
  19. Distinctive:

    Never remove a required project artifact before the build and strict validator have completed.

    line 116
  20. Very specific:

    Read references/task-contract.md only when needed to resolve a missing contract value.

    line 121
  21. Distinctive:

    Follow the fast path unless an escalation condition applies.

    line 123
  22. Very specific:

    Start from assets/templates/slide-base.html, finish the opening and closing skeletons, then batch author the content pages.

    line 125
  23. Very specific:

    Read references/lecture-data.md before writing non-trivial lecture.json.

    line 127
  24. Very specific:

    Use scripts/init_project.py for a new project when available, or copy assets/runtime/index.html into an existing project runtime directory.

    line 129
  25. Very specific:

    Run python3 scripts/validate_deck.py <project_dir> when available.

    line 132
  26. Distinctive:

    Keep every slide exactly 1280×720.

    line 139
  27. Distinctive:

    Use a conclusion-style title, minimal Chinese labels, and place detailed reasoning in the panel.

    line 142
  28. Very specific:

    Keep slides self-contained: no network requests, no scripts in slides, and images only as inline SVG or data: URIs.

    line 148
  29. Distinctive:

    Keep page animation in the runtime, not in slide CSS.

    line 150
  30. Very specific:

    Keep lecture.json anchors and HTML data-anchor/data-rect values exactly aligned.

    line 151
  31. Distinctive:

    Write panels as natural Chinese teacher explanations following observation → reason → meaning.

    line 152
  32. Very specific:

    Keep all schema-external values inside extensions.

    line 156
  33. Distinctive:

    Before authoring, create one internal outline with page role, one-sentence Chinese conclusion, visual grammar, two to four zoom anchors, …

    line 160
  34. Distinctive:

    Use at least three pages when the source supports it.

    line 165
  35. Distinctive:

    Use the standard project layout for the required build and validation artifacts:

    line 171
  36. Very specific:

    Run the build and the quickest available validator.

    line 182

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  1. Read references/task-contract.md only if inputs or output paths are unclear. Otherwise use defaults.
  2. Read only the minimum reference needed to write the current artifact; templates and design references are optional when a usable existing layout is available.
  3. 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.
  4. Scaffold/copy the runtime, write the smallest complete lecture.json and manifest.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 opening first, closing last, and every middle page content.
  • Put one conclusion and one dominant data-visual on 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-rect and lecture.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.py followed 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-empty label, and rect: {x,y,w,h}. Do not omit label and do not use the old four-number rect array.
  • Every step has advance: "manual".
  • Every overview step uses exactly the full-view camera shape { "mode": "fit" }; it must not carry anchorId, depth, scale, or focus. Only a zoom step uses camera.mode: "anchor".
  • Every SVG <text> in every slide has one of the classes t, ts, th, or tn.

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:

ArtifactRequirement
slides/sNN.htmlOne self-contained 1280×720 HTML slide per page; required source/validation artifact
lecture.jsonOverview, zoom steps, anchors, highlights, and Chinese panels; required alignment data
runtime/index.htmlThe bundled local presentation runtime; required runtime/build artifact
dist/lecture.htmlOne offline HTML publication with all content inlined; primary learner-facing delivery
manifest.jsonArtifact 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

  1. Read this file.
  2. Read references/task-contract.md only when needed to resolve a missing contract value; do not ask a follow-up question for ordinary omissions. Omitted constraints.qualityMode means fast.
  3. Follow the fast path unless an escalation condition applies. Load only the directly relevant references and templates; load the full-path references conditionally.
  4. Start from assets/templates/slide-base.html, finish the opening and closing skeletons, then batch author the content pages.
  5. Read references/lecture-data.md before writing non-trivial lecture.json; for a minimal deck, follow the existing example/schema and avoid loading unrelated zoom references.
  6. Use scripts/init_project.py for a new project when available, or copy assets/runtime/index.html into an existing project runtime directory.
  7. Run python3 scripts/build_standalone.py <project_dir>.
  8. Run python3 scripts/validate_deck.py <project_dir> when available. Use --strict for full quality mode or when the quick check reports contract errors. Run measure_anchors.py only for content-driven geometry or a detected anchor risk.

Content and layout rules

  1. Include an opening first slide, closing last slide, and content for every middle slide.
  2. Keep every slide exactly 1280×720; let the runtime handle fitting.
  3. Position direct content absolutely with explicit coordinates and stable anchor rectangles.
  4. Give every content slide at least one data-visual object; never make a text-only body slide.
  5. Use a conclusion-style title, minimal Chinese labels, and place detailed reasoning in the panel.
  6. Draw the central relationship before adding labels. Choose a relation graph, process, coordinate chart, timeline, layered structure, comparison, formula map, or example decomposition.
  7. Define one anchor when zoom is useful; use two to four only when the explanation genuinely benefits.
  8. Make each zoom step explain one observation or causal relation; split steps when the panel is overloaded.
  9. Keep slides self-contained: no network requests, no scripts in slides, and images only as inline SVG or data: URIs.
  10. Keep page animation in the runtime, not in slide CSS.
  11. Keep lecture.json anchors and HTML data-anchor/data-rect values exactly aligned.
  12. Write panels as natural Chinese teacher explanations following observation → reason → meaning; do not read slide text aloud.
  13. Preserve the runtime's spatial 3D transition, free-view layer, protected viewport solving, clean full-bleed interface, and first-frame onboarding contract.
  14. 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.json

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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.