Algorithm Visualizer
Designalgorithm-visualizerAlgorithm Visualizer is an Agent Skill for design published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Generate visual representations of algorithm execution
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/algorithms-optimization/skills/algorithm-visualizer/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/algorithm-visualizer, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Algorithm Visualizer Skill
Purpose
Generate visual representations of algorithm execution to aid understanding, debugging, and explanation of algorithmic concepts.
Capabilities
- Step-by-step execution visualization
- Data structure state visualization
- Graph algorithm animation
- DP table visualization
- Generate animated GIFs/videos
- Interactive visualization generation
- Tree and array state rendering
Target Processes
- algorithm-implementation
- dp-pattern-matching
- graph-traversal
- interview-problem-explanation
Visualization Types
- Array Operations: Sorting, searching, two-pointer techniques
- Tree Structures: Binary trees, BST operations, tree traversals
- Graph Algorithms: BFS, DFS, shortest paths, MST
- DP Tables: State transitions, optimal substructure
- Data Structures: Stack, queue, heap operations
Input Schema
{
"type": "object",
"properties": {
"algorithm": { "type": "string" },
"input": { "type": "object" },
"format": {
"type": "string",
"enum": ["ascii", "svg", "gif", "html"]
},
"steps": { "type": "boolean", "default": true }
},
"required": ["algorithm", "input"]
}
Output Schema
{
"type": "object",
"properties": {
"success": { "type": "boolean" },
"visualization": { "type": "string" },
"steps": { "type": "array" },
"format": { "type": "string" }
},
"required": ["success"]
}
Integration
Can integrate with visualization libraries like Manim, D3.js, or generate ASCII art for terminal-based visualization.