Installs just this skill. Get the whole plugin for auto-invocation.
โก How it fires
How this skill gets triggered: by you, by Claude, or both.
Fires itselfClaude auto-loads it when your prompt matches the work.
You can call itInvoke it directly when you want it.
Slash command/diagramming-code
๐๏ธ Context preview
The summary Claude sees to decide when to auto-load this skill.
Generates Mermaid diagrams from Trailmark code graphs. Produces call graphs, class hierarchies, module dependency maps, containment diagrams, complexity heatmaps, and attack surface data flow visualizations. Use when visualizing code architecture, drawing call graphs, generating
๐ Stats
Stars6,228
Forks540
LanguagePython
LicenseCC-BY-SA-4.0
๐ฆ Ships with trailofbits-skills
</> SKILL.md
diagramming-code.SKILL.md
---name: diagramming-code
description: >
Generates Mermaid diagrams from Trailmark code graphs. Produces call graphs,
class hierarchies, module dependency maps, containment diagrams, complexity
heatmaps, and attack surface data flow visualizations. Use when visualizing
code architecture, drawing call graphs, generating class diagrams, creating
dependency maps, producing complexity heatmaps, or visualizing data flow
and attack surface paths as Mermaid diagrams.
---# Diagramming Code
Generates Mermaid diagrams from Trailmark's code graph. A pre-made script
handles Mermaid syntax generation; Claude selects the diagram type and
parameters.
## When to Use
- Visualizing call paths between functions
- Drawing class inheritance hierarchies
- Mapping module import dependencies
- Showing class structure with members
- Highlighting complexity hotspots with color coding
- Tracing data flow from entrypoints to sensitive functions
## When NOT to Use
- Querying the graph without visualization (use the `trailmark` skill)
- Mutation testing triage (use the `genotoxic` skill)
- Architecture diagrams not derived from code (draw by hand)