Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
jaganpro avatar

Sf Diagram Mermaid

  • 1.3k installs
  • 423 repo stars
  • Updated April 27, 2026
  • jaganpro/sf-skills

sf-diagram-mermaid is a skill for Salesforce architecture diagrams in Mermaid with ASCII fallback.

About

The sf-diagram-mermaid skill produces Salesforce architecture diagrams using Mermaid syntax with ASCII fallback when rendering is unavailable. It triggers on diagram, visualize, ERD, or sequence requests for Salesforce systems. Use when developers document Salesforce org architecture, integrations, or data models in version-controlled diagram formats.

  • Mermaid diagrams for Salesforce architecture with ASCII fallback.
  • Triggers on diagram, visualize, ERD, and sequence keywords.
  • Salesforce-specific architecture documentation focus.
  • Version-control friendly text diagram output.
  • Supports ERD and sequence style Salesforce views.

Sf Diagram Mermaid by the numbers

  • 1,308 all-time installs (skills.sh)
  • +5 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #221 of 1,879 Documentation skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

sf-diagram-mermaid capabilities & compatibility

Capabilities
mermaid salesforce architecture diagrams · ascii fallback rendering · erd and sequence diagram triggers · salesforce specific visualization patterns
Use cases
documentation · orchestration
From the docs

What sf-diagram-mermaid says it does

Salesforce architecture diagrams using Mermaid with ASCII fallback.
SKILL.md
npx skills add https://github.com/jaganpro/sf-skills --skill sf-diagram-mermaid

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.3k
repo stars423
Security audit3 / 3 scanners passed
Last updatedApril 27, 2026
Repositoryjaganpro/sf-skills

How do I diagram Salesforce architecture, ERDs, or sequences in Mermaid?

Draw Salesforce architecture diagrams with Mermaid and ASCII fallback for ERD and sequence views.

Who is it for?

Developers documenting Salesforce org architecture and integrations.

Skip if: Skip for non-Salesforce system diagrams without sf context.

When should I use this skill?

User asks to diagram or visualize Salesforce architecture, ERD, or sequences.

What you get

Mermaid or ASCII Salesforce architecture diagrams ready for docs or repos.

  • mermaid flowchart source
  • agent architecture diagram
  • conversation flow visualization

By the numbers

  • Default Mermaid init sets nodeSpacing 80 and rankSpacing 70
  • Template covers agent description, topics subgraph, and action nodes

Files

SKILL.mdMarkdownGitHub ↗

sf-diagram-mermaid: Salesforce Diagram Generation

Use this skill when the user needs text-based diagrams: Mermaid diagrams for architecture, OAuth, integration flows, ERDs, or Agentforce structure, plus ASCII fallback when plain-text compatibility matters.

When This Skill Owns the Task

Use sf-diagram-mermaid when the user wants:

  • Mermaid output
  • ASCII fallback diagrams
  • architecture, sequence, flowchart, or ERD views in markdown-friendly form
  • diagrams that can live directly in docs, READMEs, or issues

Delegate elsewhere when the user wants:

  • rendered PNG/SVG images or polished mockups → sf-diagram-nanobananapro
  • non-Salesforce systems only → use a more general diagramming skill
  • object discovery before an ERD → sf-metadata

---

Supported Diagram Families

TypePreferred Mermaid formTypical use
OAuth / auth flowssequenceDiagramAuthorization Code, JWT, PKCE, Device Flow
ERD / data modelflowchart LRobject relationships and sharing context
integration sequencesequenceDiagramrequest/response or event choreography
system landscapeflowcharthigh-level architecture
role / access hierarchyflowchartusers, profiles, permissions
Agentforce behavior mapflowchartagent → topic → action relationships

---

Required Context to Gather First

Ask for or infer:

  • diagram type
  • scope and entities / systems involved
  • output preference: Mermaid only, ASCII only, or both
  • whether styling should be minimal, documentation-first, or presentation-friendly
  • for ERDs: whether org metadata is available for grounding

---

Recommended Workflow

1. Pick the right diagram structure

  • use sequenceDiagram for time-ordered interactions
  • use flowchart LR for ERDs and capability maps
  • keep a single primary story per diagram when possible

2. Gather data

For ERDs and grounded diagrams:

  • use sf-metadata when real schema discovery is needed
  • optionally use the local metadata helper script for counts / relationship context when appropriate

3. Generate Mermaid first

Apply:

  • accurate labels
  • simple readable node text
  • consistent relationship notation
  • restrained styling that renders cleanly in markdown viewers

4. Add ASCII fallback when useful

Provide an ASCII version when the user wants terminal compatibility or plaintext documentation.

5. Explain the diagram briefly

Call out the key relationships, flow direction, and any assumptions.

---

High-Signal Rules

For sequence diagrams

  • use autonumber when step order matters
  • distinguish requests vs responses clearly
  • use notes sparingly for protocol detail

For ERDs

  • prefer flowchart LR
  • keep object cards simple
  • use clear relationship arrows
  • avoid field overload unless the user explicitly asks for field-level detail
  • color-code object types only when it improves readability

For ASCII output

  • keep width reasonable
  • align arrows and boxes consistently
  • optimize for readability over decoration

---

Output Format

````markdown

<Diagram Title>

Mermaid Diagram

<diagram>

ASCII Fallback

<ascii>

Notes

  • <key point>
  • <assumption or limitation>

````

---

Cross-Skill Integration

NeedDelegate toReason
real object / field definitionssf-metadatagrounded ERD generation
rendered diagram / image outputsf-diagram-nanobananaprovisual polish beyond Mermaid
connected-app auth setup contextsf-connected-appsaccurate OAuth flows
Agentforce logic visualizationsf-ai-agentscriptsource-of-truth behavior details
Flow behavior diagramssf-flowactual Flow logic grounding

---

Reference Map

Start here

  • references/diagram-conventions.md
  • references/mermaid-reference.md
  • references/usage-examples.md

Styling / ERD specifics

  • references/mermaid-styling.md
  • references/color-palette.md
  • references/erd-conventions.md

Preview

  • references/preview-guide.md
  • scripts/mermaid_preview.py
  • scripts/query-org-metadata.py

---

Score Guide

ScoreMeaning
72–80production-ready diagram
60–71clear and useful with minor polish left
48–59functional but could be clearer
35–47needs structural improvement
< 35inaccurate or incomplete

Related skills

Forks & variants (1)

Sf Diagram Mermaid has 1 known copy in the catalog totaling 34 installs. They canonicalize to this original listing.

FAQ

What output formats does sf-diagram-mermaid support?

Mermaid syntax diagrams with ASCII fallback for Salesforce architecture views.

When should I use sf-diagram-mermaid?

When visualizing Salesforce ERD, sequence, or architecture diagrams in documentation.

Is sf-diagram-mermaid safe to install?

Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.