agentleFS
ArvindChanderArvindChander/skill-lab/diagramming/SKILL.md

diagramming

Skill1 starsChanged 4 months agoMITView on GitHub

Turn a concept, process, algorithm, code path, system architecture, data model, lifecycle, hierarchy, or timeline into a clear editable diagram. Use when asked to diagram, draw, map, visualize, make a flowchart, show architecture or data flow, create Mermaid, or when a visual materially clarifies relationships that prose cannot. Produces Mermaid by default, validates with an available local renderer when possible, and can delegate to an installed Mermaid skill or renderer. Do not use when a short sentence or simple list is clearer.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 13 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create one diagram per idea.

    line 8
  2. Distinctive:

    Write Mermaid source by default.

    line 15
  3. Very specific:

    Use an already-installed maintained Mermaid skill, mmdc, or compatible local renderer when available.

    line 23
  4. Distinctive:

    Do not install Node packages or call a remote renderer merely because this skill triggered.

    line 25
  5. Distinctive:

    When no renderer exists, Mermaid source is still a complete deliverable.

    line 27
  6. Distinctive:

    Prefer left-to-right for pipelines and top-to-bottom for branching processes.

    line 32
  7. Distinctive:

    Keep node labels short; move explanation into the caption.

    line 33
  8. Distinctive:

    Use subgraphs only for real boundaries such as services, teams, trust zones, or phases.

    line 35
  9. Distinctive:

    Use consistent shapes for input/output, process, decision, datastore, and terminal nodes.

    line 37
  10. Distinctive:

    Use one accent class for the critical path or error path.

    line 38
  11. Distinctive:

    Do not encode meaning by color alone.

    line 39
  12. Distinctive:

    Do not invent components or relationships to make a diagram look complete.

    line 40
  13. Distinctive:

    Every node and relationship reflects inspected or supplied information.

    line 52
  14. Distinctive:

    Every decision has labeled outgoing branches.

    line 53

“Common” is measured: kept by at least 6 in 10 of the 4 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

Diagramming

Create one diagram per idea. Favor accurate structure and readable labels over decorative complexity.

Workflow

  1. Identify the relationship the reader needs to see: sequence, branching, state, hierarchy, ownership, data transformation, entity relation, or time.
  2. Choose the smallest fitting diagram using references/diagram-types.md.
  3. Reduce the content to essential nodes, meaningful edges, and explicit boundaries.
  4. Write Mermaid source by default. Use the user's requested format when specified.
  5. Label decision branches, error paths, important data shapes, and transition triggers.
  6. Validate with an available local Mermaid backend. If none exists, run the manual checks in references/validation.md and describe the result as “syntax reviewed,” not “validated.”
  7. Inspect the rendered image when rendering is available. Correct clipping, overlap, tiny text, excessive crossings, or misleading layout.
  8. Deliver the editable source, a one- or two-sentence caption, and rendered files when requested.

Backend selection

Use an already-installed maintained Mermaid skill, mmdc, or compatible local renderer when available. A maintained upstream skill may own parsing, retry, rendering, and visual QA; retain responsibility for factual content and diagram scope.

Do not install Node packages or call a remote renderer merely because this skill triggered. Remote rendering may disclose diagram content. Ask before installing dependencies or sending content to Kroki or another service.

When no renderer exists, Mermaid source is still a complete deliverable.

Readability rules

  • One diagram, one main idea. Split an overview from details when necessary.
  • Prefer left-to-right for pipelines and top-to-bottom for branching processes.
  • Keep node labels short; move explanation into the caption.
  • Give stable, meaningful node IDs and quote labels containing punctuation.
  • Use subgraphs only for real boundaries such as services, teams, trust zones, or phases.
  • Show return messages in sequences and loop-back edges in iterative flows.
  • Use consistent shapes for input/output, process, decision, datastore, and terminal nodes.
  • Use one accent class for the critical path or error path; avoid rainbow styling.
  • Do not encode meaning by color alone.
  • Do not invent components or relationships to make a diagram look complete.

Delivery

  • Chat request — provide a fenced mermaid block plus caption.
  • Reusable artifact — write .mmd and optionally SVG/PNG/PDF if a renderer is available.
  • Documentation — embed Mermaid in the relevant Markdown file and keep source paths or evidence notes nearby.
  • Unsupported Mermaid shape — use a simple SVG, HTML, ASCII diagram, or recommend a more suitable tool rather than forcing unreadable Mermaid.

Quality gate

  • The declared diagram type matches the syntax.
  • Every node and relationship reflects inspected or supplied information.
  • Every decision has labeled outgoing branches.
  • Success, failure, and loop paths are not silently omitted.
  • Direction, grouping, and cardinality communicate the intended meaning.
  • The caption says what the reader should notice.
  • The final response distinguishes rendered validation from manual syntax review.

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.