← ClaudeAtlas

code-walkthroughlisted

Split source code into segments and generate a self-contained explanatory HTML that embeds the full code, commentary, SVG diagrams, and a glossary panel (multiple files are combined into a single HTML with tabs). Use it for "explain this code", "make a walkthrough", "create a code-explanation HTML/report", "make it readable with diagrams", and similar. When a source path is given and an explained HTML is wanted, use it even without an explicit instruction.
yumeiriowl/code-learn-skill · ★ 1 · Data & Documents · score 74
Install: claude install-skill yumeiriowl/code-learn-skill
# Code Walkthrough — Source Code Explanation HTML Generation Skill Split source code from the top into processing units (segments), and generate a single self-contained interactive HTML that pairs the fully embedded code with detailed commentary, SVG diagrams, and a glossary panel. > For progressive loading, this skill splits the detailed spec into `reference/`. As shown in the table below, read the relevant file at the point you need it. ## Usage Arguments: source file paths (required, multiple allowed), output HTML path (optional). If the last argument ends in `.html`, treat it as the output destination. ### Single file Pass one source file. If an output destination is specified, generate there; if omitted, generate `walkthrough-<filename>.html` in the same folder as the source. ### Multiple files (combined into a single HTML with tabs) Passing two or more source files switches to multi-file mode, combining them into a single HTML with a tab-switching UI. - When the output destination is omitted, generate `walkthrough-<a>-<b>[-...].html` in the folder of the first file. If the combined name exceeds 80 characters, fall back to `walkthrough-multi-<N>files.html` - Each source file = one tab. The tab label is the base file name (without extension). When names collide, such as `main.py`, prefix the parent folder name (e.g., `08_rlm_real/main`) - If even one file does not exist, exit with an error ## Execution steps 1. Parse the arguments: - Just one file → single-f