Generate draw.io network diagrams from show commands with Claude Code

A network engineer used a free Claude Code skill to turn saved show-command snapshots of his 12-device lab into a three-page draw.io…

Used for
Work
Skill needed
No code
Shown in video
Partial demo
Summary based on
Transcript
Claude Code
G Talks TechWatch on YouTube

Keep Your Network Diagrams Up to Date Automatically (Free Claude Skill)

Published Dec 2, 202618:342,050 views62 likes

Key moments

  • 6:10Diagram generated: 12 devices, 17 links, 3 pages
  • 8:21Generated diagram compared with CML lab

What they made

Produced a three-page draw.io diagram of 12 devices and 17 links; 14 links came from CDP/LLDP, two from shared subnets and one from a GRE tunnel, matching the CML lab port for port.

12 devices, 17 links, 3 pages

6:10

How they did it

  1. AI3:48

    The network-snapshot skill logged into each lab device read-only, ran show commands and saved the output to a local git repository.

    Stated in video · Claude Code
  2. AI

    The network-diagram skill read the saved snapshot and generated an editable draw.io file with Physical, VLAN and Subnet pages.

    Creator-reported · Claude Code
  3. Human

    The creator confirmed the guessed device roles and assigned the one unclassified branch switch as an access switch.

    Creator-reported
  4. AI + human8:21

    The creator compared the generated diagram with the CML lab topology and found every link matched port for port.

    Stated in video · Claude Code

What you can reuse

  • Reuse existing show-command snapshots instead of logging into devices again for diagramming.
  • Let the skill infer links from CDP/LLDP first, then fall back to shared subnets and tunnels for devices neighbor discovery misses.
  • Schedule the snapshot and diagram skills together so documentation stays current and versioned in git.

Trade-offs

  • The VLAN page currently requires Cisco IOS/IOS-XE output.
  • The diagram shows network state, not intended configuration.
  • The creator had to manually confirm or correct guessed device roles.
  • Scheduling was suggested but not actually set up in the video.

AI-generated case summaries can contain mistakes. Report an error

Related cases