/sf-platform:external-diagram-mermaid-generatefrom Salesforce — Platform & Apex
Salesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, or Agentforce structure. 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 asks about non-Salesforce systems.
Ships in Salesforce — Platform & Apex. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
Use external-diagram-mermaid-generate when the user wants:
sf-core:platform-custom-object-generate or skill sf-core:platform-custom-field-generate| Type | Preferred Mermaid form | Typical use |
|---|---|---|
| OAuth / auth flows | sequenceDiagram | Authorization Code, JWT, PKCE, Device Flow |
| ERD / data model | flowchart LR | object relationships and sharing context |
| integration sequence | sequenceDiagram | request/response or event choreography |
| system landscape | flowchart | high-level architecture |
| role / access hierarchy | flowchart | users, profiles, permissions |
| Agentforce behavior map | flowchart | agent → topic → action relationships |
Ask for or infer:
sequenceDiagram for time-ordered interactionsflowchart LR for ERDs and capability mapsFor ERDs and grounded diagrams:
sf-core:platform-custom-object-generate or skill sf-core:platform-custom-field-generate when real schema discovery is neededApply:
Provide an ASCII version when the user wants terminal compatibility or plaintext documentation.
Call out the key relationships, flow direction, and any assumptions.
autonumber when step order mattersflowchart LR## <Diagram Title>
### Mermaid Diagram
```mermaid
<diagram>
```
### ASCII Fallback
```text
<ascii>
```
### Notes
- <key point>
- <assumption or limitation>
| Need | Delegate to | Reason |
|---|---|---|
| real object / field definitions | skill sf-core:platform-custom-object-generate / skill sf-core:platform-custom-field-generate | grounded ERD generation |
| connected-app auth setup context | skill sf-integration:integration-connectivity-connected-app-configure | accurate OAuth flows |
| Agentforce logic visualization | skill sf-core:agentforce-generate | source-of-truth behavior details |
| Flow behavior diagrams | skill sf-core:automation-flow-generate | actual Flow logic grounding |
| Issue | Resolution |
|---|---|
| Mermaid renderer not available | Provide ASCII fallback automatically; note that the Mermaid block still carries the diagram for copy-paste into a renderer |
| ERD becomes unreadable with too many objects | Split into sub-diagrams by domain (Sales, Service, etc.) and link them in prose |
| Sequence diagram step order unclear | Use autonumber directive to make step ordering explicit |
| OAuth flow actors differ by grant type | Read the relevant asset template first before generating to avoid actor mismatch |
Deliverables produced by this skill for each request:
```mermaid block ready to paste into GitHub, Confluence, or any Mermaid-capable rendererautonumber) with clear actor labels| Score | Meaning |
|---|---|
| 72–80 | production-ready diagram |
| 60–71 | clear and useful with minor polish left |
| 48–59 | functional but could be clearer |
| 35–47 | needs structural improvement |
| < 35 | inaccurate or incomplete |
README.md (opens in a new tab)assets/agentforce/agent-flow.md (opens in a new tab)assets/architecture/system-landscape.md (opens in a new tab)assets/datamodel/b2b-commerce-erd.md (opens in a new tab)assets/datamodel/campaigns-erd.md (opens in a new tab)assets/datamodel/consent-erd.md (opens in a new tab)assets/datamodel/files-erd.md (opens in a new tab)assets/datamodel/forecasting-erd.md (opens in a new tab)assets/datamodel/fsl-erd.md (opens in a new tab)assets/datamodel/party-model-erd.md (opens in a new tab)assets/datamodel/quote-order-erd.md (opens in a new tab)assets/datamodel/revenue-cloud-erd.md (opens in a new tab)assets/datamodel/sales-cloud-erd.md (opens in a new tab)assets/datamodel/salesforce-erd.md (opens in a new tab)assets/datamodel/scheduler-erd.md (opens in a new tab)assets/datamodel/service-cloud-erd.md (opens in a new tab)assets/datamodel/territory-management-erd.md (opens in a new tab)assets/integration/api-sequence.md (opens in a new tab)assets/oauth/authorization-code-pkce.md (opens in a new tab)assets/oauth/authorization-code.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub reej-consulting/reej-sf-skills --plugin sf-platform43 skills in this plugin
/crm-analytics-wave-generateUse to build a Wave Recipe, deploy a CRM Analytics dataset or dashboard, or author the full CRMA asset stack — apps, Wave Recipes (.wdpr), datasets, and dashboards — against a connected Salesforce org via REST and Metadata APIs, without CRM Analytics Studio or Dashboard Builder. TRIGGER when: user asks to build or create a Wave Recipe, generate a .wdpr or .wdpr-meta.xml, deploy a .wdash or .wapp, run a recipe or dataflowjob programmatically, upload CSV data via InsightsExternalData, validate a dataset schema with synthetic data, fetch dataset XMD, audit dashboard SAQL re-encoding, or find unused dataset fields. TRIGGER on keywords: Wave Recipe, CRMA, CRM Analytics, wdpr, wdash, wapp, WaveRecipe, Wave dataflow, dataflowjob, InsightsExternalData, SAQL, dataset XMD, Analytics Studio, R3 format, wave/recipes, wave/dashboards, or analytics on Salesforce objects (opportunities, leads, cases, accounts, sales). DO NOT TRIGGER for standard Salesforce reports or LWC components unrelated to CRM Analytics./design-systems-slds2-migrateMigrate Lightning Web Components from SLDS 1 to SLDS 2 by running the SLDS linter and fixing violations. Use this skill whenever users mention SLDS 2, SLDS uplift, linter violations, LWC token migration, class overrides, hardcoded CSS values that need SLDS hook replacement, or styling hook selection. Covers all styling hook categories — color, spacing, sizing, typography, borders, radius, and shadows. Also use when users mention no-hardcoded-values, no-slds-class-overrides, lwc-to-slds-hooks, no-deprecated-tokens-slds1, or ask about SLDS component migration — even if they don't explicitly say "uplift" or "migration".