agentleFS
LingXi-OrgLingXi-Org/LingxiSkills/skills/interactive-visual-explainer/SKILL.md

interactive-visual-explainer

Skill0 starsChanged 4 months agoMITView on GitHub

Create a self-contained, offline interactive HTML explainer for concepts that are easier to understand through visual manipulation.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 8 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All visible prose, labels, control text, explanations, accessibility text, captions, and delivery notes must be Simplified Chinese.

    line 46
  2. Distinctive:

    Read the supplied concept, audience, and emphasis.

    line 53
  3. Distinctive:

    Write the one-sentence Chinese learning objective before adding any element.

    line 68
  4. Very specific:

    Start from assets/template.html, inline assets/lingxi.css without changing its tokens, and keep every graphic in the final HTML as inline …

    line 74
  5. Very specific:

    Run node scripts/check_page.js <page>.html.

    line 86
  6. Distinctive:

    Keep the artifact single-file, offline, and dependency-free by default.

    line 94
  7. Distinctive:

    Place each control below the figure it controls.

    line 96
  8. Very specific:

    Use one render() path to update the figure, numbers, annotations, and aria-live conclusion.

    line 97
  9. Distinctive:

    Never use dual y-axes.

    line 99
  10. Distinctive:

    Keep color attached to entities, not rank.

    line 100
  11. Distinctive:

    Use only 400/500 font weights, 0.5 px hairlines, no gradients or shadows, sentence case, and no emoji.

    line 103
  12. Very specific:

    Read assets/template.html before implementation.

    line 123

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

Visual Explainer

Role

Receive a concept from the orchestrating agent and produce one independently openable interactive teaching artifact. It is a non-blocking sidecar requested by adaptive-pedagogy, not a competing learner-facing chat writer. The caller must be able to render useful Chinese fallback text before this artifact is ready. Make the conclusion live in the visual interaction, not only in prose. The final delivery is exactly one .html file with no external requests, offline support, light/dark mode, and print support. Do not routinely persist or deliver redundant intermediate files, such as standalone image or PowerPoint exports of content already represented in the HTML. 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 never include them in the final delivery unless explicitly requested. All explanatory graphics in the final HTML must be authored inline with SVG and/or CSS.

Output language

All visible prose, labels, control text, explanations, accessibility text, captions, and delivery notes must be Simplified Chinese. Preserve formulas, variable names, code identifiers, URLs, and technical protocol tokens. Use Chinese even when the input is English unless a higher-priority runtime policy explicitly overrides this rule.

Defaults and intake

Read the supplied concept, audience, and emphasis. If fields are missing, use these defaults without asking a follow-up question:

  • concept: required; if absent, return Chinese 需求不完整 and do not guess;
  • learning objective: “操作完之后,学习者应该明白 ___”;
  • audience: familiar with an adjacent field but new to this concept;
  • visual style: restrained academic paper style;
  • interaction: choose one primary pattern from references/interaction-patterns.md;
  • length: one and a half to three screens, one main interaction, and one or two supporting views;
  • dependency: zero dependency. If a CDN is explicitly necessary, document an offline fallback.

Authoring workflow

Follow this order:

  1. Write the one-sentence Chinese learning objective before adding any element.
  2. Identify one to three controllable variables. If no variable exposes a causal relation, use a static figure and Chinese explanation instead of forced interaction.
  3. Choose the teaching pattern first, then the chart or SVG form. Read the relevant references.
  4. Lay out coordinates in a 680-wide viewBox using L=60 R=640 T=40 B=300; budget Chinese text at 14 px per character and verify bounds and overlap.
  5. Start from assets/template.html, inline assets/lingxi.css without changing its tokens, and keep every graphic in the final HTML as inline SVG and/or CSS. Do not routinely export a standalone image or presentation file; if a temporary file is necessary for a key check, use it only for that check and do not deliver it.
  6. Assign colors by semantic role. Rerun both palette checks after every color change:

    node scripts/validate_palette.js "<hex,hex,…>" --mode light
    node scripts/validate_palette.js "<hex,hex,…>" --mode dark

    Fix every FAIL before continuing.

  7. Run node scripts/check_page.js <page>.html. Resolve every FAIL before delivery and explain any remaining WARN in the delivery note. This static check is the required artifact validation gate. Screenshots may be generated temporarily when a visual check is useful, but they are not required and are not delivery files.
  8. Compare the result with references/anti-patterns.md before delivery.

Non-negotiable design rules

  1. Keep the artifact single-file, offline, and dependency-free by default.
  2. Teach one thing in the first frame; do not require a control change to understand the premise.
  3. Place each control below the figure it controls. Keep its caption between figure and controls.
  4. Use one render() path to update the figure, numbers, annotations, and aria-live conclusion.
  5. Round every displayed number and give sliders an explicit step.
  6. Never use dual y-axes.
  7. Keep color attached to entities, not rank; use no more than three colors per figure.
  8. Give every SVG <text> element a t, ts, th, or tn class.
  9. Select a dedicated dark palette; never create dark mode by inversion.
  10. Use only 400/500 font weights, 0.5 px hairlines, no gradients or shadows, sentence case, and no emoji.
  11. Deliver only the final self-contained HTML and the short delivery note. Any optional screenshots or other temporary validation artifacts must not be delivered.

Required delivery note

Return a short Chinese note, not the full HTML, with:

文件:<absolute path>
知识点:<one sentence>
学习目标:操作完之后,学习者应该明白 ___
主交互:<pattern> + <control and changed variable>
图形清单:图1 <description> / 图2 <description>
校验:validate_palette <light PASS / dark PASS>;check_page <FAIL count / WARN count>
补的假设:<assumptions>
已知取舍:<removed content and reason>

Read assets/template.html before implementation. Load only the directly relevant references, including design tokens, SVG craft, interaction patterns, and anti-patterns. Treat the final HTML and delivery note as Chinese artifacts.

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.