interactive-infographic-overlay
БесплатноЗапускает вложенные скриптыНе проверенGenerates an interactive diagram MicroSim with numbered callout markers or rectangular zones over a scientific illustration, supporting explore, quiz, and…
от dmccreary★ 115 звёзд на GitHubОб этом скилле
Interactive Infographic Overlay Generator
Version: 1.0
Overview
This skill generates a complete MicroSim directory for interactive diagram overlays used in intelligent textbooks. It produces all files needed for a diagram where:
- A text-to-image LLM generates an annotation-free scientific illustration
- The
diagram.jsshared library renders interactive numbered markers, leader lines, and labels over the image - Students can explore (hover for info), take quizzes (identify structures), and instructors can edit marker positions
When to Use This Skill
Use this skill when:
- A chapter content spec includes a
#### Diagram:details block with type "Interactive Infographic" or "Diagram" that requires a scientific illustration with labeled callouts - The textbook needs a labeled anatomy diagram, structural diagram, process diagram, or any image with identified regions
- The specification calls for explore mode (hover to learn), quiz mode (identify structures), or both
Do NOT use this skill when:
- The diagram is better served by Mermaid, Chart.js, or p5.js drawing (no background image needed)
- The content is a pure simulation with dynamic elements (use microsim-generator instead)
- The diagram needs only simple inline markdown images with no interactivity
Overlay Types: Callout vs. Grid
This skill supports two distinct overlay engines depending on the infographic type:
| Engine | Use When | Files |
|---|---|---|
Callout (diagram.js + style.css) |
Scientific illustrations with numbered point markers on specific structures (anatomy, cell diagrams, labeled components) | main-template.html, data-json-schema.md |
Grid (grid-diagram.js + grid-overlay.css) |
Comparison infographics or posters with large rectangular column/region zones (side-by-side comparisons, poster sections) | grid-main-template.html, grid-data-json-schema.md |
Key differences:
- Callout uses
callouts[]withx,ypoint coordinates and draws numbered circle markers with leader lines - Grid uses
zones[]withx1,y1,x2,y2rectangle coordinates and draws transparent hover rectangles over columns/regions - Grid supports
showLabels: true/falseto control whether a chip label appears inside each zone (set tofalsewhen the image already has printed column titles)
Prerequisites
The project must have the shared overlay libraries installed:
docs/sims/shared-libs/
├── diagram.js (callout overlay engine — point markers)
├── style.css (callout overlay styles)
├── grid-diagram.js (grid overlay engine — rectangular zones)
└── grid-overlay.css (grid overlay styles)
To install all four files from this skill's bundled assets:
mkdir -p docs/sims/shared-libs
cp ~/.claude/skills/interactive-infographic-overlay/assets/shared-libs/diagram.js docs/sims/shared-libs/
cp ~/.claude/skills/interactive-infographic-overlay/assets/shared-libs/style.css docs/sims/shared-libs/
cp ~/.claude/skills/interactive-infographic-overlay/assets/shared-libs/grid-diagram.js docs/sims/shared-libs/
cp ~/.claude/skills/interactive-infographic-overlay/assets/shared-libs/grid-overlay.css docs/sims/shared-libs/
Always check that the project's copy is up to date with the skill's bundled version before creating new diagram MicroSims.
Workflow
Choosing the Overlay Type
Before generating files, decide which engine to use:
- Use Callout when the diagram is a scientific illustration (anatomy, hardware internals, botanical diagrams, labeled components) where small numbered markers should point to specific structures
- Use Grid when the infographic is a comparison poster or section-based layout (3-column technology comparison, side-by-side concept contrasts, poster regions) where large rectangular hover zones make more sense
The two workflows below share the same Steps 1, 2, 6, 7, 8 but differ in Steps 3–5.
Callout Overlay Workflow (diagram.js)
Step 1: Gather Diagram Requirements
Extract from the chapter content specification or user request:
- Subject — What the diagram depicts (e.g., "animal cell cross-section," "moss sporophyte anatomy," "mossarium layers")
- Structures to label — List of 5-15 structures/regions with:
- Name/label
- Brief description (1-2 sentences)
- Approximate position in the image
- Suggested color for the marker
- Image style — Scientific illustration style (flat, watercolor, realistic, etc.)
- Image dimensions — Typically 1200×900 (landscape 4:3) or 900×1200 (portrait 3:4)
- Layout —
side-panel(default, labels on right),top-bottom, ordual-panel - Context tips — Optional exam tips, hints, or additional info per structure
Step 2: Create the MicroSim Directory
Create the directory under docs/sims/:
mkdir -p docs/sims/{sim-id}
Where {sim-id} is a kebab-case name (e.g., moss-sporophyte, mossarium-layers, `animal-ce
Установить interactive-infographic-overlay в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл interactive-infographic-overlay?
Generates an interactive diagram MicroSim with numbered callout markers or rectangular zones over a scientific illustration, supporting explore, quiz, and edit modes. Use for anatomy diagrams, labeled components, or comparison posters needing interactive annotations.
Как установить скилл interactive-infographic-overlay?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл interactive-infographic-overlay запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub