Ascii dependency graph
Skill rohingosling/claude-skills/plugins/g-render-ascii-dependency-graph/skills/ascii-dependency-graph
Render an ASCII dependency graph from a JSON structure.From its SKILL.md
npx -y skills add rohingosling/claude-skills --skill ascii-dependency-graphAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 1 command, including `python3 "${CLAUDE_SKILL_DIR}/scripts/render_ascii_dependency_graph.py" --file dep_graph.json`.
SKILL.md
1.5 KB, 357 tokens by cl100k_base, as published. Nobody here has run it
Render an ASCII dependency graph using the Python script at ${CLAUDE_SKILL_DIR}/scripts/render_ascii_dependency_graph.py.
Instructions
-
Construct a JSON object describing the dependency tree. Each node has:
"name": the module/dependency name (required)"right": a single node connected horizontally to the right (optional)"bottom": an array of child nodes connected vertically below (optional)- Use
{"ellipsis": true}in abottomarray to insert a· · ·continuation marker.
-
Write the JSON to a temporary file in the current project's working directory (e.g.
dep_graph.json). -
Run (use
python3on macOS/Linux,pythonon Windows):python3 "${CLAUDE_SKILL_DIR}/scripts/render_ascii_dependency_graph.py" --file dep_graph.json -
Copy the output into the target markdown file inside a fenced code block.
-
Delete the temporary JSON file.
Example JSON
{
"name": "App",
"right": {
"name": "LibA",
"right": { "name": "LibC" }
},
"bottom": [
{ "name": "LibB" },
{
"name": "LibD",
"right": { "name": "LibC" }
}
]
}
Box width rule
Each box has odd character width = RoundUpToNearestOdd( len(name) + 4 ). This ensures the ┬ connector exits exactly from the centre of the bottom border.
User argument
$ARGUMENTS
What ships with it: 1 file
25.3 KB alongside SKILL.md, 1 of them executable
scripts/
- render_ascii_dependency_graph.pyruns25.3 KB