Agent skill

Sf Diagram Mermaid

by Jaganpro in Jaganpro/sf-skills

Salesforce architecture diagrams using Mermaid with ASCII fallback.

MITAuto-check passedDevelopment

Install Sf Diagram Mermaid

skills CLI
$ npx skills add Jaganpro/sf-skills --skill sf-diagram-mermaid -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Jaganpro/sf-skills sf-diagram-mermaid --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Jaganpro/sf-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/sf-diagram-mermaid .claude/skills/sf-diagram-mermaid && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
sf-diagram-mermaid
GitHub stars
424
Token cost
~1.4k tokens
SKILL.md length
471 words
Files
43 (incl. scripts, references, assets)
Skills in repo
36
Repo updated
First seen
Licence
MIT

At a glance

Salesforce architecture diagrams using Mermaid with ASCII fallback.

  • Works in 5 steps: Pick the right diagram structure → Gather data → Generate Mermaid first → …
  • : user says diagram
  • SKILL.md covers When This Skill Owns the Task, Supported Diagram Families, Required Context to Gather First and Recommended Workflow, plus 5 more sections
  • Asks for sequence diagrams

What it does

Sf Diagram Mermaid is an agent skill from Jaganpro/sf-skills. Salesforce architecture diagrams using Mermaid with ASCII fallback. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use sf-diagram-nanobananapro), or asks about non-Salesforce systems.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 46 other files, including scripts, reference files and assets (for example `CREDITS.md`, `README.md` and `assets/agentforce/agent-flow.md`). Compatibility notes: Requires Mermaid-capable renderer for diagram previews

It sits in Development, covering Diagrams. It works with Mermaid and Salesforce. The repository describes itself as: [ARCHIVED — migrated to forcedotcom/afv-library] Salesforce Skills for Agentic Coding Tools — Apex, Flow, LWC, SOQL, Agentforce, Data Cloud, OmniStudio. Read-only archive; active… The licence is MIT.

When your agent uses it

  • : user says diagram
  • Asks for sequence diagrams
  • Architecture visualizations in Mermaid
  • : user wants PNG/SVG image output (use sf-diagram-nanobananapro)

Example prompts

  • “diagram”
  • “visualize”
  • “/sf-diagram-mermaid”

Requirements

  • Compatibility (from SKILL.md): Requires Mermaid-capable renderer for diagram previews

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Pick the right diagram structure
  2. Gather data
  3. Generate Mermaid first
  4. Add ASCII fallback when useful
  5. Explain the diagram briefly

What it can do on your machine

Read from SKILL.md and the folder at commit 53c9956. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/, which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires Mermaid-capable renderer for diagram previews

    From compatibility in the SKILL.md frontmatter.

Context cost

Sf Diagram Mermaid loads about 1.4k tokens when it runs, and up to ~17k if it reads all its reference files. Until then it costs about 92 tokens; SKILL.md has 471 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~92
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~17k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from Jaganpro/sf-skills at commit 53c9956, republished under its MIT licence (© Jaganpro). 471 words, ~1,375 tokens.

Download SKILL.mdSave it as .claude/skills/sf-diagram-mermaid/SKILL.md (or your agent's skills folder). This skill also uses 42 other files; get the full folder from GitHub.
name
sf-diagram-mermaid
description
Salesforce architecture diagrams using Mermaid with ASCII fallback. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use sf-diagram-nanobananapro), or asks about non-Salesforce systems.
compatibility
Requires Mermaid-capable renderer for diagram previews
license
MIT
metadata.version
1.2.0
metadata.author
Jag Valaiyapathy
metadata.scoring
80 points across 5 categories

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

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.

Show full SKILL.md (179 more words)Show less
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
```mermaid
<diagram>
```

### ASCII Fallback
```text
<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
Styling / ERD specifics
Preview

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

© Jaganpro, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 42 other files (scripts, references, assets) in skills/sf-diagram-mermaid of Jaganpro/sf-skills.

  • SKILL.md
  • CREDITS.md
  • README.md
  • assets/agentforce/agent-flow.md
  • assets/architecture/system-landscape.md
  • assets/datamodel/b2b-commerce-erd.md
  • assets/datamodel/campaigns-erd.md
  • assets/datamodel/consent-erd.md
  • assets/datamodel/files-erd.md
  • assets/datamodel/forecasting-erd.md
  • assets/datamodel/fsl-erd.md
  • assets/datamodel/party-model-erd.md
  • assets/datamodel/quote-order-erd.md
  • assets/datamodel/revenue-cloud-erd.md
  • assets/datamodel/sales-cloud-erd.md
  • assets/datamodel/salesforce-erd.md
  • assets/datamodel/scheduler-erd.md
  • … and 26 more

Open the folder on GitHubat commit 53c9956

Compare with similar skills

Sf Diagram Mermaid next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Sf Diagram Mermaid compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sf Diagram Mermaid this skillJaganpro/sf-skills424—~1.4kAutomated safety check: PassMIT
External Diagram Mermaid Generateforcedotcom/sf-skills1.1k—~2.7kAutomated safety check: PassApache-2.0
Archify Diagramstt-a1i/archify82k—~2.9kAutomated safety check: PassMIT
Diagram Designcathrynlavery/diagram-design49k1 repos~7.6kAutomated safety check: PassMIT
Draw.io Diagram StudioAgents365-ai/drawio-skill10k—~2.4kAutomated safety check: NotesMIT
Pretty Mermaid Rendererimxv/Pretty-mermaid-skills1.5k—~2kAutomated safety check: PassMIT

Similar skills

  • Salesforce architecture diagrams using Mermaid with ASCII fallback.

    1.1k GitHub stars~2.7k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Archify Diagrams

    tt-a1i/archify

    Creates interactive architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone HTML with inline SVG, themes and image or video export.

    82k GitHub stars~2.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Diagram Design

    cathrynlavery/diagram-design

    Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.

    49k GitHub starsUsed in 1 repo~7.6k tokens
    DevelopmentAuto-check passed
  • Draw.io Diagram Studio

    Agents365-ai/drawio-skill

    Creates and edits editable draw.io diagrams from descriptions, code, infrastructure files, SQL and API schemas, with sync, review, test and export tools.

    10k GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check: notes
  • Pretty Mermaid Renderer

    imxv/Pretty-mermaid-skills

    Writes and renders Mermaid diagrams as themed SVG, PNG or terminal ASCII and Unicode art with a bundled Node.js CLI that needs no browser.

    1.5k GitHub stars~2k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Archify Diagram Builder

    Unclecheng-li/AI_Animation

    Builds validated architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone interactive HTML from a small JSON spec, with optional motion and image export.

    1.5k GitHub starsUsed in 2 repos~4.1k tokens
    DevelopmentAuto-check passed

More from Jaganpro/sf-skills

All 36 skills in this repo
  • Agentforce session tracing extraction and analysis. An agent skill from Jaganpro/sf-skills.

    424 GitHub stars~1.8k tokensUpdated 5 mo ago
    Auto-check passed
  • Sf AI Agentscript

    Jaganpro/sf-skills

    Agent Script DSL for deterministic Agentforce agents. An agent skill from Jaganpro/sf-skills.

    424 GitHub stars~3.8k tokensUpdated 5 mo ago
    Auto-check passed
  • Sf Datacloud

    Jaganpro/sf-skills

    Salesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows.

    424 GitHub stars~2.7k tokensUpdated 5 mo ago
    Auto-check passed
  • Sf Diagram Nanobananapro

    Jaganpro/sf-skills

    AI-powered image generation for Salesforce visuals via Nano Banana Pro.

    424 GitHub stars~1.6k tokensUpdated 5 mo ago
    Auto-check passed
  • Sf Flow

    Jaganpro/sf-skills

    Creates and validates Salesforce Flows with 110-point scoring.

    424 GitHub stars~1.8k tokensUpdated 5 mo ago
    Auto-check passed
  • Sf Integration

    Jaganpro/sf-skills

    Salesforce integration architecture with 120-point scoring. An agent skill from Jaganpro/sf-skills.

    424 GitHub stars~1.5k tokensUpdated 5 mo ago
    Auto-check passed

Categories

Questions about Sf Diagram Mermaid

What does Sf Diagram Mermaid do?

Salesforce architecture diagrams using Mermaid with ASCII fallback. Sf Diagram Mermaid is an agent skill from Jaganpro/sf-skills. Salesforce architecture diagrams using Mermaid with ASCII fallback.

When should I use Sf Diagram Mermaid?

Sf Diagram Mermaid fits situations like: : user says diagram; asks for sequence diagrams; architecture visualizations in Mermaid; : user wants PNG/SVG image output (use sf-diagram-nanobananapro).

How do I install Sf Diagram Mermaid in Claude Code?

Run `npx skills add Jaganpro/sf-skills --skill sf-diagram-mermaid -a claude-code`. Or copy the skill folder (skills/sf-diagram-mermaid in Jaganpro/sf-skills) into .claude/skills/sf-diagram-mermaid in your project. Claude Code loads it when a task matches its description.

How do I install Sf Diagram Mermaid in Codex?

Run `npx skills add Jaganpro/sf-skills --skill sf-diagram-mermaid -a codex`. Or copy the skill folder (skills/sf-diagram-mermaid in Jaganpro/sf-skills) into .agents/skills/sf-diagram-mermaid in your project. Codex loads it when a task matches its description.

Can I use Sf Diagram Mermaid in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Jaganpro/sf-skills --skill sf-diagram-mermaid -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sf-diagram-mermaid, .gemini/skills/sf-diagram-mermaid, .github/skills/sf-diagram-mermaid and .opencode/skills/sf-diagram-mermaid in your project.

What does Sf Diagram Mermaid need to run?

SKILL.md names no scripts, command-line tools or credentials: Sf Diagram Mermaid is instructions for the agent only. Compatibility (from SKILL.md): Requires Mermaid-capable renderer for diagram previews.

Does Sf Diagram Mermaid access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Sf Diagram Mermaid safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Sf Diagram Mermaid use?

Sf Diagram Mermaid is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Sf Diagram Mermaid use?

About 1.4k tokens (SKILL.md is roughly 5.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 15k tokens, read only when the agent opens those files.

What are the alternatives to Sf Diagram Mermaid?

Skills that share tags, products or a category with Sf Diagram Mermaid: External Diagram Mermaid Generate (forcedotcom/sf-skills, 1.1k stars), Archify Diagrams (tt-a1i/archify, 82k stars), Diagram Design (cathrynlavery/diagram-design, 49k stars) and Draw.io Diagram Studio (Agents365-ai/drawio-skill, 10k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Sf Diagram Mermaid?

Jaganpro (a GitHub user) maintains it in Jaganpro/sf-skills, which has 424 GitHub stars. The repository holds 36 skills in this directory. The repository was last updated on April 27, 2026.

Source: Jaganpro/sf-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.