claude-algo-visualize

Generates single-file interactive HTML pages visualizing data structures and algorithms.

28|2|Updated Apr 26, 2026
One-click install
npx skills add https://github.com/L0dyv/claude-algo-visualize --skill claude-algo-visualize-l0dyv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-algo-visualize
Source: https://github.com/L0dyv/claude-algo-visualize
Command: npx skills add https://github.com/L0dyv/claude-algo-visualize --skill claude-algo-visualize-l0dyv

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) components.

What problem does it solve? Explaining data structures and algorithms with static text alone leaves learners unable to follow execution steps; this Skill produces self-contained interactive HTML teaching pages with SVG diagrams and step-by-step animations so readers can see how algorithms actually run. ## Core Features & Use Cases - Interactive Step-by-Step Animations: Builds dual-view animations (array + complete binary tree, custom-coordinate trees, or plain arrays) with prev/next controls, dot indicators, and code-line highlighting synchronized to each step. - Multiple Input Scenarios: Converts PDF/textbook material into structured explanation pages, turns a topic like "demonstrate quicksort" into a teaching page, visualizes provided code execution, or compares two concepts side by side. - Built-in Skeletons and Templates: Ships a CSS skeleton with dark mode, three JS animation templates, three HTML animation structures, and a complete heap overview reference implementation for alignment. - Use Case: A student uploads a textbook PDF chapter on heaps and receives a single HTML file with narrative explanations, static SVG diagrams, and interactive push/pop/heapify/heap-sort animations linked to highlighted code lines. ## Quick Start Ask Claude to generate an interactive animated teaching page that visualizes how quicksort partitions an array step by step.

Frequently Asked Questions about claude-algo-visualize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an interactive algorithm visualization page?

Provide a topic, code snippet, or PDF chapter and ask for an animated teaching page. The skill generates a single self-contained HTML file with SVG diagrams, step controls, and code highlighting, with no external dependencies required.

What data structures can be visualized with step-by-step animation?

Arrays, complete binary trees such as heaps, custom-coordinate trees like BSTs and Huffman trees, stacks, and queues are supported. Three JS templates cover array-plus-tree dual views, free-form trees, and plain array animations.

Does the generated HTML page require external libraries or internet access?

No. Each output is a single HTML file with all CSS and JavaScript embedded inline. It works offline in any modern browser and includes automatic dark mode support via CSS media queries.

Can it turn a PDF textbook chapter into a teaching page?

Yes. It reads the PDF, follows the source's teaching order to structure chapters, embeds the source's examples as SVG diagrams and animations, and supplements motivation and reasoning that textbooks typically omit.

Why do SVG nodes overlap or get clipped in generated animations?

Overlaps happen when adjacent node centers are closer than 56px or parent-child vertical spacing is under 60px. Clipping occurs when the viewBox height is less than the maximum node y plus radius plus 40px for labels.

When should I not use this visualization skill?

Avoid it when the user explicitly wants plain Markdown notes or a multi-file web application project. The skill's output format is strictly a single self-contained HTML teaching page.