Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

interactive-infographic-overlay

БесплатноЗапускает вложенные скриптыНе проверен

Generates an interactive diagram MicroSim with numbered callout markers or rectangular zones over a scientific illustration, supporting explore, quiz, and…

dmccrearyот 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:

  1. A text-to-image LLM generates an annotation-free scientific illustration
  2. The diagram.js shared library renders interactive numbered markers, leader lines, and labels over the image
  3. 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[] with x, y point coordinates and draws numbered circle markers with leader lines
  • Grid uses zones[] with x1, y1, x2, y2 rectangle coordinates and draws transparent hover rectangles over columns/regions
  • Grid supports showLabels: true/false to control whether a chip label appears inside each zone (set to false when 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:

  1. Subject — What the diagram depicts (e.g., "animal cell cross-section," "moss sporophyte anatomy," "mossarium layers")
  2. 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
  3. Image style — Scientific illustration style (flat, watercolor, realistic, etc.)
  4. Image dimensions — Typically 1200×900 (landscape 4:3) or 900×1200 (portrait 3:4)
  5. Layout — side-panel (default, labels on right), top-bottom, or dual-panel
  6. 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

Полный SKILL.md на GitHub

Установить interactive-infographic-overlay в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/grid-main-template.htmlassets/main-template.htmlassets/shared-libs/diagram.jsassets/shared-libs/grid-diagram.jsassets/shared-libs/grid-overlay.cssassets/shared-libs/style.cssreferences/data-json-schema.mdreferences/grid-data-json-schema.mdreferences/iframe-height-pinning.mdreferences/image-prompt-template.md

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить interactive-infographic-overlay с