Help us improve
Share bugs, ideas, or general feedback.
From sf-skills
Generates Mermaid text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, and Agentforce structure, with ASCII fallback.
npx claudepluginhub ccmalcom/sf-skills-plugin --plugin sf-skillsHow this skill is triggered — by the user, by Claude, or both
Slash command
/sf-skills:generating-mermaid-diagramsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
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.
CREDITS.mdREADME.mdassets/agentforce/agent-flow.mdassets/architecture/system-landscape.mdassets/datamodel/b2b-commerce-erd.mdassets/datamodel/campaigns-erd.mdassets/datamodel/consent-erd.mdassets/datamodel/files-erd.mdassets/datamodel/forecasting-erd.mdassets/datamodel/fsl-erd.mdassets/datamodel/party-model-erd.mdassets/datamodel/quote-order-erd.mdassets/datamodel/revenue-cloud-erd.mdassets/datamodel/sales-cloud-erd.mdassets/datamodel/salesforce-erd.mdassets/datamodel/scheduler-erd.mdassets/datamodel/service-cloud-erd.mdassets/datamodel/territory-management-erd.mdassets/integration/api-sequence.mdassets/oauth/authorization-code-pkce.mdGenerates Mermaid flowcharts for architecture visualization using semantic shapes and sequence diagrams for interactions with mermaid-ascii compatibility. Validates and explains diagrams.
Generates Mermaid diagrams from text descriptions by analyzing intent to select types like activity, sequence, deployment, architecture, class, ER, or state.
Generates Mermaid and ASCII diagrams for flowcharts, sequence diagrams, ERDs, C4 architecture, state machines, mindmaps, git graphs, gantt charts, and timelines.
Share bugs, ideas, or general feedback.
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 generating-mermaid-diagrams when the user wants:
| 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:
Apply:
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 | generating-custom-object / generating-custom-field | grounded ERD generation |
| rendered diagram / image output | generating-visual-diagrams | visual polish beyond Mermaid |
| connected-app auth setup context | configuring-connected-apps | accurate OAuth flows |
| Agentforce logic visualization | developing-agentforce | source-of-truth behavior details |
| Flow behavior diagrams | generating-flow | 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 |