agentleFS
jonathan-vellajonathan-vella/apex/.github/skills/apex-mermaid/SKILL.md

apex-mermaid

Skill216 starsChanged 2 months agoMITView on GitHub

**UTILITY SKILL** — Mermaid diagrams for inline markdown: flowcharts, sequence, Gantt, class, state, ER. WHEN: "mermaid flowchart", "sequence diagram", "Gantt chart", "state diagram", "ER diagram", "inline markdown diagram". DO NOT USE FOR: rendered architecture diagrams or WAF/cost charts (apex-python-diagrams).

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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. Very specific:

    DON'T: use Mermaid for WAF/cost charts (use apex-python-diagrams) · use Mermaid for rendered architecture diagrams (use …

    line 38
  2. Very specific:

    Add theming and node styles — see references/styling.md

    line 46
  3. Distinctive:

    Commit — the rendered Mermaid stays inline.

    line 48
  4. Very specific:

    Does NOT: generate rendered architecture diagrams · produce Python charts · generate Bicep/Terraform · create ADRs · deploy resources · …

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Mermaid Diagrams

Skill for generating Mermaid diagrams embedded in markdown fences. Mermaid is used for inline documentation — flowcharts, sequences, state machines, ER diagrams, Gantt charts. For architecture diagrams with Azure service icons, use the apex-python-diagrams skill instead.

When to Use Mermaid

  • Inline diagrams inside markdown (.md, .mdx)
  • Flowcharts for operational runbooks and process docs
  • Sequence diagrams for auth flows and API interactions
  • Gantt charts for project plans and maintenance schedules
  • State diagrams for lifecycle documentation
  • ER diagrams for data model overviews
  • Azure resource relationship diagrams from live queries (via apex-azure-resources Mode B)

Rules

DO: fenced code blocks with mermaid language tag · include theme directives for dark mode · graph TB (vertical) or graph LR (horizontal) · subgraphs for grouping · descriptive connection labels · validate syntax before committing.

DON'T: use Mermaid for WAF/cost charts (use apex-python-diagrams) · use Mermaid for rendered architecture diagrams (use apex-python-diagrams) · omit theme directives · embed Azure service icons.

Steps

  1. Pick the diagram type — see references/syntax-cheatsheet.md
  2. Author inside a triple-backtick mermaid fence in your markdown
  3. Add theming and node styles — see references/styling.md
  4. Validate — render in VS Code preview or Starlight build
  5. Commit — the rendered Mermaid stays inline; no separate artifact

Reference Index

FileWhen to Load
references/syntax-cheatsheet.mdAuthoring any diagram type (flowchart, sequence, Gantt, ER, state)
references/styling.mdAdding theming and node classDef styling

Scope Exclusions

Does NOT: generate rendered architecture diagrams · produce Python charts · generate Bicep/Terraform · create ADRs · deploy resources · embed Azure service icons (use apex-python-diagrams).

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.