agentleFS
sordi-aisordi-ai/skill-everything/skills/drawio/SKILL.md

drawio

Skill20 starsChanged 7 months agoMITView on GitHub

Apply when creating or reviewing architecture diagrams, Mermaid diagrams, or draw.io files.

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use skill-creator.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    skill-creator

    Guide for creating effective GitHub Copilot skills (.github/skills/) in this repository. Use when creating a new skill, updating an existing skill, or when asked about skill structure, format, or best practices for the vscode-documentdb project.

    Also in 4 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 10 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Purpose: Ensure diagrams are version-controlled as source, rendered consistently, and kept in sync with the system they describe.

    line 17
  2. Very specific:

    Commit source, not just exports: Always commit diagram source files (.drawio, .mmd, .puml) alongside or instead of rendered image exports.

    line 25
  3. Distinctive:

    No binary-only diagrams: Never commit only a PNG or SVG export without the editable source.

    line 26
  4. Distinctive:

    One source file per diagram: Use a single canonical source file per diagram.

    line 27
  5. Distinctive:

    Prefer diagram-as-code: Prefer Mermaid or PlantUML over draw.io XML when the diagram fits a supported diagram type.

    line 31
  6. Very specific:

    Match diagram type to content: Use sequenceDiagram for request flows, flowchart for decision logic, C4Context/C4Container for architecture, …

    line 32
  7. Very specific:

    Set layout direction explicitly: Always declare layout direction (LR, TD) in Mermaid flowcharts.

    line 33
  8. Distinctive:

    Document the render command: Always include the render command or CI step in the repo README or Makefile so any contributor can regenerate …

    line 37
  9. Distinctive:

    Regenerate exports in CI: Ensure CI regenerates diagram exports from source and fails if the committed export differs from the generated …

    line 38
  10. Distinctive:

    Pin renderer version: Always pin the Mermaid CLI or draw.io CLI version in CI to prevent silent rendering changes across upgrades.

    line 39
  11. Distinctive:

    Use consistent node naming: Always use the same label for the same system component across all diagrams in the repo.

    line 43
  12. Distinctive:

    Add alt text to exported images: Always add descriptive alt text to diagram images embedded in documentation for accessibility.

    line 44
  13. Distinctive:

    Review diagrams in PRs: Before merging, verify that any diagram change accurately reflects the system change described in the PR.

    line 45

“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Sub-Skill: Diagrams (draw.io / Mermaid)

Purpose: Ensure diagrams are version-controlled as source, rendered consistently, and kept in sync with the system they describe.


Rules

Source Control

  1. Commit source, not just exports. Always commit diagram source files (.drawio, .mmd, .puml) alongside or instead of rendered image exports. Reference: ERR-2026-027
  2. No binary-only diagrams. Never commit only a PNG or SVG export without the editable source; reviewers cannot diff or modify a raster image.
  3. One source file per diagram. Use a single canonical source file per diagram; avoid duplicating the same diagram in multiple formats.

Format Selection

  1. Prefer diagram-as-code. Prefer Mermaid or PlantUML over draw.io XML when the diagram fits a supported diagram type; text diffs are reviewable.
  2. Match diagram type to content. Use sequenceDiagram for request flows, flowchart for decision logic, C4Context/C4Container for architecture, erDiagram for data models.
  3. Set layout direction explicitly. Always declare layout direction (LR, TD) in Mermaid flowcharts; never rely on the default, which varies by renderer.

Rendering Pipeline

  1. Document the render command. Always include the render command or CI step in the repo README or Makefile so any contributor can regenerate exports.
  2. Regenerate exports in CI. Ensure CI regenerates diagram exports from source and fails if the committed export differs from the generated one.
  3. Pin renderer version. Always pin the Mermaid CLI or draw.io CLI version in CI to prevent silent rendering changes across upgrades.

Quality & Consistency

  1. Use consistent node naming. Always use the same label for the same system component across all diagrams in the repo; divergent names cause confusion.
  2. Add alt text to exported images. Always add descriptive alt text to diagram images embedded in documentation for accessibility.
  3. Review diagrams in PRs. Before merging, verify that any diagram change accurately reflects the system change described in the PR.

See also

  • skills/svg-check/SKILL.md
  • skills/error-log/SKILL.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.