sf-diagram

Generate Salesforce architecture diagrams as Mermaid code with ASCII fallback.

423|97|Updated Nov 30, 2025
One-click install
npx skills add https://github.com/Jaganpro/sf-skills --skill sf-diagram
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sf-diagram
Source: https://github.com/Jaganpro/sf-skills/tree/main/sf-diagram/skills/sf-diagram
Command: npx skills add https://github.com/Jaganpro/sf-skills --skill sf-diagram

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python, and includes scripts (resource) components.

What problem does it solve?

Manually creating complex Salesforce architecture diagrams (OAuth, ERD, integrations) is time-consuming and requires specialized tools or knowledge. This Skill automates the generation of clear, accurate, and production-ready diagrams, ensuring adherence to best practices and saving you valuable time.

Core Features & Use Cases

  • Automated Diagram Generation: Create various Salesforce-specific diagrams including OAuth flows, data models (ERD), integration sequences, system landscapes, role hierarchies, and Agentforce flows.
  • Multi-Format Output: Get diagrams in both Mermaid syntax (for modern documentation tools) and ASCII art (for terminal compatibility or plain text documentation).
  • Salesforce-Specific Integration: Automatically discovers objects and fields from your Salesforce org (via sf-metadata skill) to build accurate ERD diagrams.
  • Use Case: Quickly generate a Mermaid diagram illustrating your Salesforce to SAP integration flow, complete with sequence steps and error handling, for a new project proposal.

Quick Start

Use the sf-diagram skill to create a JWT Bearer OAuth flow diagram.

Frequently Asked Questions about sf-diagram

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

FAQPage Schema
How do I generate Salesforce architecture diagrams automatically?

Generate Salesforce architecture diagrams using Mermaid syntax by providing template-driven inputs that describe your OAuth flows, data models, integration sequences, or system landscapes. The skill produces production-ready visuals with color-palette styling and ASCII fallback for terminal compatibility.

Can I create ERD diagrams directly from my Salesforce org?

Yes. The skill automatically discovers objects and fields from your Salesforce organization via the sf-metadata integration, then builds accurate entity-relationship diagrams without manual field mapping.

What diagram types can I create for Salesforce integrations?

You can generate OAuth flows, data models (ERDs), integration sequences, system landscapes, role hierarchies, and Agentforce architectures. All output as Mermaid code with ASCII art alternatives for documentation flexibility.

Does this work for complex OAuth and sequence diagrams?

Yes. The skill handles OAuth Bearer flows, multi-step integration sequences with error handling, and complex system landscapes. Template-driven inputs let you specify sequence steps, authentication patterns, and system interactions.

What output formats does the diagram generator support?

Diagrams output in Mermaid syntax for modern documentation tools and ASCII art for plain-text or terminal-based documentation. Mermaid-enabled renderers display styled, color-palettized visuals.

Do I need specialized knowledge to create production-ready diagrams?

No. The skill automates diagram generation and ensures adherence to Salesforce best practices through templates and optional live metadata integration, reducing manual effort and specialized tool requirements.