explain-code

Generate class, flow, ER, and sequence diagrams from source code.

Updated Jun 10, 2026
One-click install
npx skills add https://github.com/Badhansen/skills --skill explain-code-badhansen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: explain-code
Source: https://github.com/Badhansen/skills/tree/main/explain-code
Command: npx skills add https://github.com/Badhansen/skills --skill explain-code-badhansen

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill transforms complex source code into easy-to-understand visual diagrams and structured explanations, making codebases more accessible and maintainable.

Core Features & Use Cases

  • Code Visualization: Generate various diagrams (class, flow, ER, sequence, etc.) from code.
  • Code Explanation: Provide clear, structured text explanations of code logic and architecture.
  • Use Case: When faced with an unfamiliar or complex module, use this Skill to generate a class diagram and a step-by-step explanation of its functionality.

Quick Start

Use the explain-code skill to generate a class diagram for the provided Python code.

Frequently Asked Questions about explain-code

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

FAQPage Schema
How do I generate Excalidraw diagrams from source code?

To generate Excalidraw diagrams from source code, provide your codebase to the tool to automatically produce class, flow, ER, and sequence diagrams for visualizing software architecture and logic.

What is the best way to visualize code architecture for documentation?

Visualizing code architecture for documentation is best achieved by transforming complex source code into structured text explanations and visual diagrams, making unfamiliar modules accessible and maintainable.

Can I create a sequence diagram from an unfamiliar Python module?

Yes, you can create a sequence diagram from an unfamiliar Python module by inputting the code to receive structured text explanations and visual diagrams detailing its functionality step-by-step.

Does this code visualization tool support ER diagram generation?

Yes, this code visualization tool supports ER diagram generation along with class, flow, and sequence diagrams to help you understand complex systems and debug effectively.

How do I explain code logic step-by-step for debugging?

To explain code logic step-by-step for debugging, process the source code through the visualization tool to output clear, structured text explanations and architectural diagrams.