diagramming-code SKILL.md skillA

diagramming-code from protolabsai/protoagent is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add protolabsai/protoagent/diagramming-code@git:20260926.92196ac

Pins git:20260926.92196ac in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
protolabsai/protoagent
Path
plugins/artifact/skills/diagramming-code/SKILL.md
Versions recorded
2
Latest version
git:20260926.92196ac, committed Sep 26, 2026
First version recorded
Sep 26, 2026
Size
6,098 bytes
Repository stars
14
License
MIT

When the user asks for a diagram OF THE CODE — a sequence diagram of a call flow, a flowchart or class diagram of a module's structure, a state diagram of a lifecycle — render it as a mermaid artifact whose nodes and messages link to the exact lines, grounded in code you actually read.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Diagramming code (mermaid + code links)

A mermaid artifact can carry **code links**: the operator clicks a node or a message and the
console opens that exact range in the code pane (or their editor). That turns a diagram from a
picture into a map of the code. It is only worth it if every link is **true** — a diagram that
points at the wrong line is worse than no diagram.

## 1. Read first, draw second

- Find the real code before drawing anything: `search_files` for the entry point (it prints
  `file:line`), then `read_file` with an `offset` around each hit to follow the calls.
- Every linked node or message cites a `path` and `line` you **saw** in a `search_files` hit or a
  `read_file` offset. Never guess a line, never count lines by eye in a plain `read_file` result.
- **Every link carries an `anchor`**: a short, exact snippet of the line you mean, copied
  verbatim from the `search_files` / `read_file` output — `"runTool("`, `"llm.complete("`,
  `"function textFrom"` (≤ 120 chars, one line, distinctive enough to find the right spot).
  The server snaps the link to the anchor's occurrence nearest your `line`, so a miscounted
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add protolabsai/protoagent/diagramming-code@sha256:d410444c307439c1

The line at the top of this page pins the label git:20260926.92196ac, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_32wgwiuxoywwqcoo.svg)](https://markdownregistry.com/a/art_32wgwiuxoywwqcoo)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, all committed on Sep 26, 2026.

versioncommittedcommitsizeaudit
git:20260926.92196ac latest2026-09-26 92196ac 6,098 BA view · diff
git:20260926.bf18ff92026-09-26 bf18ff9 5,863 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6098 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

protolabsai/protoagent · 14 stars · license MIT · pushed 2026-10-20 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_32wgwiuxoywwqcoo
GET https://markdownregistry.com/api/v1/resolve?ref=protolabsai/protoagent/diagramming-code
GET https://markdownregistry.com/api/v1/blob/d410444c307439c119fb1705d2d5085803dfda1daafc0f6145bb5448c8d4d82f

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from protolabsai/protoagent

protocol-research SKILL.md skill
protolabsai/protoagent · .proto/evolve/skills/protocol-research/SKILL.md · Systematic research workflow for documenting protocols, standards, or technologies
git:20260811.efa4d71 · audit A · 14 stars
AGENTS.md AGENTS.md file
protolabsai/protoagent · AGENTS.md
git:20260826.039be25 · audit A · 14 stars
CLAUDE.md CLAUDE.md file
protolabsai/protoagent · CLAUDE.md
git:20260621.c2b38fe · audit A · 14 stars
web-research SKILL.md skill
protolabsai/protoagent · config/skills/web-research/SKILL.md · Use this whenever the user asks you to research a topic, find the current state of something, compare options, or…
git:20260614.0806170 · audit A · 14 stars
web-browse SKILL.md skill
protolabsai/protoagent · plugins/agent_browser/skills/web-browse/SKILL.md · Open a website, fill a form, click buttons, take a screenshot, print a page to PDF, scrape or extract page content…
git:20261005.5840202 · audit A · 14 stars
rendering-artifacts SKILL.md skill
protolabsai/protoagent · plugins/artifact/skills/rendering-artifacts/SKILL.md · When the user wants to SEE, render, visualize, preview, or "show me" a chart, diagram, mock-up, table, or interactive…
git:20261020.b1a6101 · audit B · 14 stars
consolidate-memory SKILL.md skill
protolabsai/protoagent · plugins/cowork/skills/consolidate-memory/SKILL.md · Reflective maintenance pass over long-term memory — merge duplicates, retire stale or completed items, sharpen what…
git:20260912.42516ad · audit A · 14 stars
daily-brief SKILL.md skill
protolabsai/protoagent · plugins/cowork/skills/daily-brief/SKILL.md · Compose the operator's daily brief — schedule, things waiting on them, ongoing work, and heads-ups. LOAD THIS SKILL…
git:20260912.42516ad · audit A · 14 stars
docx SKILL.md skill
protolabsai/protoagent · plugins/cowork/skills/docx/SKILL.md · Produce or modify Word documents (.docx) as real files — reports, memos, letters, proposals, or any deliverable the…
git:20261006.9b4f42f · audit A · 14 stars
drop-folder SKILL.md skill
protolabsai/protoagent · plugins/cowork/skills/drop-folder/SKILL.md · Turn a fenced work folder into a drop zone — a watch notices when files land, change, or disappear there and runs a…
git:20260912.42516ad · audit A · 14 stars
pdf SKILL.md skill
protolabsai/protoagent · plugins/cowork/skills/pdf/SKILL.md · Read, extract from, combine, split, watermark, fill, or produce PDF files. Use whenever a .pdf is the input or the…
git:20261006.9b4f42f · audit A · 14 stars
pptx SKILL.md skill
protolabsai/protoagent · plugins/cowork/skills/pptx/SKILL.md · Build or edit slide decks (.pptx) as real files — pitch decks, briefings, status readouts — or extract content from…
git:20261002.1d3d53f · audit A · 14 stars

Every file in protolabsai/protoagent

Other files named diagramming-code

diagramming-code SKILL.md skill
outlinedriven/outline-driven-development · .devin/skills/diagramming-code/SKILL.md · Use when asked for a call graph, class hierarchy, dependency map, containment or complexity view, a data-flow view…
git:20260912.07a8a1b · audit A · 53 stars

Browse by kind, by grade A, or by owner.