Lightlines
By trailofbits

diagramming-code

trailofbits3.8k installs

See your code's structure in Mermaid diagrams.

What it does

Turns a project's parsed code graph into Mermaid diagrams that show its structure and behavior.

When to use it

Use when visualizing function calls, class relationships, module dependencies, complexity hotspots, or paths from inputs to sensitive functions.

How to use it

Give it a project and a diagram request; it generates and checks a Mermaid diagram, then embeds it in its response.

What you provide

  • An existing project

Latest review

What you need · 3

Requires Trailmark for parsed code graphs and diagram generation; instructs installation if the initial command fails.

Uses uv to run the bundled diagram script and install Trailmark when needed.

The bundled diagram script requires Python 3.12 or newer.


Access · 1

This skill

trailmark

Execute

Installs Trailmark when missing