---
title: "Diagramming Code - Air Market"
description: "You are trying to understand how a codebase fits together and reading files one by one is not getting you there. This generates diagrams from a code graph: who calls whom, how classes relate, which m…"
canonical: "https://airmarket.ai/app/diagramming-code"
---

[Air Market](/) / [Developer Tools](/category/devtools) / Diagramming Code

Skill by [Trail of Bits](/@trailofbits)

# Diagramming Code

Draw the shape of a codebase you are trying to understand

## What this does

You are trying to understand how a codebase fits together and reading files one by one is not getting you there. This generates diagrams from a code graph: who calls whom, how classes relate, which modules depend on which, where complexity piles up, and how data moves through the attack surface. Reach for it when you need the picture, not the files.

### Top 3 things it does for you

- Draw a call graph for this code
- Map which modules depend on which
- See where the complexity is concentrated

## Information

**Diagramming Code at a glance**

|  |  |
| --- | --- |
| Kind | Skill |
| Publisher | [Trail of Bits](/@trailofbits) |
| Category | [Developer Tools](/category/devtools) |
| Works with | Agent Skills - an open standard supported by 40+ agents |
| Size | 18 KB |
| Licence | CC-BY-SA-4.0 |
| Repository | [trailofbits/skills](https://github.com/trailofbits/skills/tree/09dfbd91537b888136c9203dca4ffdee5a595c69/plugins/trailmark/skills/diagramming-code) |
| GitHub stars | 6,823 (as of Nov 2026) |
| Installs | 4,595, counted by skills.sh (Nov 2026) |

## Security report

**Verified.** AIR scanned this exact version of Diagramming Code and flagged nothing. AIR's verdict: **safe**.

**What Diagramming Code's check was run against**

|  |  |
| --- | --- |
| Commit | 09dfbd91537b888136c9203dca4ffdee5a595c69 |
| Content hash | b0c8e8c69a85335a296b25026223d9afb76a3a0e420b93a731bb5aa106735e1f |
| Files read | [Browse the files at this exact commit](https://github.com/trailofbits/skills/blob/09dfbd91537b888136c9203dca4ffdee5a595c69/plugins/trailmark/skills/diagramming-code/SKILL.md) |

A scan is named by the exact content it read, not by a version number. A different version is a different artifact, and nothing here applies to a version AIR has not scanned.

[Read the full security report for Diagramming Code](/security/diagramming-code)

## About Diagramming Code

This generates Mermaid diagrams from Trailmark code graphs.

It produces call graphs, class hierarchies, module dependency maps, containment diagrams, complexity heatmaps, and attack surface data flow visualizations.

Use it when visualizing code architecture, drawing call graphs, generating class diagrams, creating dependency maps, producing complexity heatmaps, or visualizing data flow and attack surface paths.

## What's inside

- SKILL.md - instructions
- agents/openai.yaml - data
- assets/trail-of-bits-mark.svg - template
- references/diagram-types.md - reference
- references/mermaid-syntax.md - reference
- scripts/diagram.py - script

## Questions

### Is Diagramming Code safe to install?

AIR scanned this exact version of Diagramming Code and flagged nothing. AIR's verdict: safe. The verdict is named by the content that was read, at commit 09dfbd91537b, so it cannot drift onto a version nobody scanned. The full report is at https://airmarket.ai/security/diagramming-code.

### How do I install Diagramming Code?

Open https://airmarket.ai/app/diagramming-code on Air Market and use the install action: Air Market hands Claude a prompt naming this exact skill, and Claude sets it up. Source, pinned to the exact commit this listing describes: https://github.com/trailofbits/skills/tree/09dfbd91537b888136c9203dca4ffdee5a595c69/plugins/trailmark/skills/diagramming-code. Install from that link, not the branch.

## Related on Air Market

- [More Developer Tools listings](/category/devtools)
- [Everything by Trail of Bits](/@trailofbits)

---

Canonical URL: <https://airmarket.ai/app/diagramming-code>
