diagram-skill SKILL.md skillA

diagram-skill from codingfeng101/canvasanvil is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add codingfeng101/canvasanvil/diagram-skill@git:20261107.4066bfa

Pins git:20261107.4066bfa in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
codingfeng101/canvasanvil
Path
skill/diagram-skill/SKILL.md
Versions recorded
3
Latest version
git:20261107.4066bfa, committed Nov 7, 2026
First version recorded
Oct 27, 2026
Size
5,977 bytes
Repository stars
174
License
MIT

Generate, edit, and validate draw.io or diagrams.net diagrams as XML, then open them directly in the draw.io online editor so the user can keep editing there. Use for new diagrams, local XML edits, shape-library diagrams, and truncated XML continuation.

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

# Diagram Skill

## Trigger

Use when the user asks for a diagram, flowchart, architecture diagram, network diagram, ER diagram, BPMN diagram, or a cloud/infrastructure diagram, or mentions draw.io, diagrams.net, drawio, or a `.drawio` file.

## Order

1. Classify the request.
2. Read the required references.
3. Plan: in 1–3 sentences, say what the diagram shows, its layout kind, its groups and its main flow (for an edit, what changes and why). Show the plan to the user.
4. Produce or modify draw.io XML, laid out on a grid for that layout kind.
5. Write the XML to a `.drawio` file (a scratch file if file writes are limited).
6. Validate the structure with `scripts/validate-drawio-xml.mjs`.
7. Check the layout with `scripts/check-layout.mjs`. Fix every error it reports and run it again, keeping the arrangement while fixing.
8. Build an online editor URL and open it in the agent's built-in browser.
9. Return the plan, the XML code, the `.drawio` path, the layout score and the online editor link.

## Classification

- `prompts/display.md`
  - new diagram
  - major rewrite
  - major relayout
  - any case where local editing is fragile
- `prompts/edit.md`
  - current XML exists
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add codingfeng101/canvasanvil/diagram-skill@sha256:05acfbbc6bd56503

The line at the top of this page pins the label git:20261107.4066bfa, 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_4sw5urzgaudfpt5h.svg)](https://markdownregistry.com/a/art_4sw5urzgaudfpt5h)

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

Versions

The registry has recorded 3 versions of this file, between Oct 27, 2026 and Nov 7, 2026, about one every 6 days.

versioncommittedcommitsizeaudit
git:20261107.4066bfa latest2026-11-07 4066bfa 5,977 BA view · diff
git:20261106.7bb8df82026-11-06 7bb8df8 5,753 BA view · diff
git:20261027.5dabe632026-10-27 5dabe63 4,157 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 (5977 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

codingfeng101/canvasanvil · 174 stars · license MIT · pushed 2026-11-09 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_4sw5urzgaudfpt5h
GET https://markdownregistry.com/api/v1/resolve?ref=codingfeng101/canvasanvil/diagram-skill
GET https://markdownregistry.com/api/v1/blob/05acfbbc6bd565033bf8bff533e85cefabd841d715039caa7362260f36c471e3

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 codingfeng101/canvasanvil

cad-skill SKILL.md skill
codingfeng101/canvasanvil · skill/cad-skill/SKILL.md · Home interior design delivered as an interactive house designer page (one offline HTML, 2D / 3D / furniture / MEP /…
git:20261108.7975556 · audit A · 174 stars
ppt-skill SKILL.md skill
codingfeng101/canvasanvil · skill/ppt-skill/SKILL.md · Generate PPT templates, full presentation slide sets, and export deliverables. Use for template-only requests, full…
git:20261107.4e8d6e7 · audit A · 174 stars

Every file in codingfeng101/canvasanvil

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