← ClaudeAtlas

ascii-hierarchy-diagramlisted

Generate a hierarchical ASCII diagram that can be used for representing folder structures, decomposition diagrams, or any other kind of diagrams that might benefit from being represented by an ASCII hierarchy diagram.
rohingosling/claude-skills · ★ 1 · DevOps & Infrastructure · score 77
Install: claude install-skill rohingosling/claude-skills
Render a hierarchical ASCII tree diagram using the Python script at `${CLAUDE_SKILL_DIR}/scripts/render_ascii_hierarchy_diagram.py`. ## Instructions 1. Construct a JSON object describing the hierarchy tree. Each node has: - `"name"`: the node label (required) - `"comment"`: a trailing comment displayed after the node (optional) - `"children"`: an array of child nodes (optional) 2. Write the JSON to a temporary file in the current project's working directory (e.g. `hierarchy.json`). 3. Run with one of two modes (use `python3` on macOS/Linux, `python` on Windows): Include the root node in the output: ``` python3 "${CLAUDE_SKILL_DIR}/scripts/render_ascii_hierarchy_diagram.py" --file hierarchy.json --include-root ``` Skip the root node and render each top-level child as an independent tree: ``` python3 "${CLAUDE_SKILL_DIR}/scripts/render_ascii_hierarchy_diagram.py" --file hierarchy.json --no-include-root ``` 4. Copy the output into the target markdown file inside a fenced code block. 5. Delete the temporary JSON file. ## Modes - **`--include-root`**: Render the root node and all descendants as a single unified tree. One global comment margin is computed across the entire tree. Between top-level child groups under the root, a blank separator line with the `│` continuation character is inserted. - **`--no-include-root`**: Skip the root node. Render each top-level child as a separate independent tree. Each group computes its own comment ma