Install any skill in seconds. Free to start, no credit card required.
Get Started Free →zebbern/code-to-diagram
Analyze codebases and automatically generate architecture diagrams, flowcharts, and org charts. Uses AST parsing to map import dependencies for Python, JS/TS, Go, and Java, outputting Mermaid or SVG files. Triggered when users ask to visualize code architecture, understand dependencies, draw a flowchart, or create a module diagram from source code.
Passed 21 of 24 test cases with the skill, and 5 of 24 without it.
and 24 more in the full report
16 fixed5 passed either way3 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 16 test cases the skill fixed. Same model, same prompt, with and without the skill.
Provide the shortest command syntax using short option flags to analyze `/app/src`, generating only a flowchart diagram rendered as SVG.
| Checked | Without skill | With skill |
|---|---|---|
| Uses `-t flowchart` in the command options. | Missed | Passed |
| Uses `-f svg` in the command options. | Missed | Passed |
The instructions your model reads when the skill loads.
Extract import and dependency relationships from a codebase via AST parsing, and automatically generate three types of diagrams:
Supported languages: Python, JavaScript, TypeScript, Go, Java
Output formats: Mermaid text (.mmd) or SVG images (requires mmdc installed on the system)
python3 scripts/analyze_codebase.py /path/to/project
Outputs three Mermaid diagrams to stdout and writes .mmd files to the current directory.
# Architecture diagram only
python3 scripts/analyze_codebase.py /path/to/project --type architecture
# Flowchart only
python3 scripts/analyze_codebase.py /path/to/project --type flowchart
# Org chart only
python3 scripts/analyze_codebase.py /path/to/project --type org
# Output to a specific directory
python3 scripts/analyze_codebase.py /path/to/project --output /tmp/diagrams
test cases passed, vs 5 / 24 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.