sf-diagram-mermaid

Generate Mermaid and ASCII architecture diagrams for Salesforce.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/dcinzona/folios --skill sf-diagram-mermaid
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sf-diagram-mermaid
Source: https://github.com/dcinzona/folios/tree/main/.agents/skills/sf-diagram-mermaid
Command: npx skills add https://github.com/dcinzona/folios --skill sf-diagram-mermaid

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This skill removes friction from creating, documenting, and iterating Salesforce architecture and data-model diagrams by producing text-first Mermaid diagrams with ASCII fallbacks that are versionable and docs-friendly.

Core Features & Use Cases

  • Generates Mermaid sequence diagrams, flowcharts, ERDs, and role hierarchies tailored to Salesforce patterns (OAuth flows, integration sequences, LDV/OWD-annotated ERDs).
  • Supplies ASCII fallbacks for terminal and plaintext compatibility and a live preview server for iterative editing.
  • Integrates org-metadata query tooling to enrich diagrams with record counts, LDV indicators, and sharing model (OWD) context; includes many ready-made templates (OAuth, Agentforce, Commerce, Service, etc.).

Quick Start

Create an ERD for Account, Contact, and Opportunity in Mermaid and include an ASCII fallback.

Frequently Asked Questions about sf-diagram-mermaid

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Salesforce ERD diagrams in Mermaid?

You can generate Salesforce ERD diagrams in Mermaid by querying org-metadata to enrich standard objects like Account and Contact. The skill outputs text-first Mermaid syntax with an ASCII fallback, annotating ERDs with record counts, LDV indicators, and sharing model context.

Can I visualize Salesforce OAuth flows using sequence diagrams?

Yes, you can visualize Salesforce OAuth flows using sequence diagrams. The skill provides ready-made Mermaid sequence diagram templates for OAuth and integration patterns, supplying ASCII fallbacks for terminal compatibility and plaintext documentation.

How do I document Agentforce flows and system landscapes in version control?

You document Agentforce flows and system landscapes by generating text-first Mermaid flowcharts. These text-based diagrams are versionable and docs-friendly, allowing you to track architecture changes directly in version control alongside ASCII fallbacks for plaintext rendering.

Does this skill require external dependencies to preview Mermaid diagrams locally?

No external dependencies are required to preview Mermaid diagrams locally. The skill includes a local preview server and metadata-query scripts as internal components, allowing iterative editing of Salesforce architecture diagrams without installing additional packages.

What is the best way to annotate Salesforce data models with sharing rules and OWD?

The best way to annotate Salesforce data models with sharing rules and OWD is to integrate org-metadata query scripts. This enriches Mermaid ERDs with OWD context and LDV indicators, producing comprehensive text-first visualizations for architecture design reviews.