sf-diagram-mermaid by jaganpro/sf-skills
npx skills add https://github.com/jaganpro/sf-skills --skill sf-diagram-mermaid当用户需要基于文本的图表时使用此技能:用于架构、OAuth、集成流程、ERD 或 Agentforce 结构的 Mermaid 图表,以及在需要纯文本兼容性时提供 ASCII 备用方案。
当用户需要以下内容时,使用 sf-diagram-mermaid:
当用户需要以下内容时,请委托给其他技能:
| 类型 | 首选的 Mermaid 形式 | 典型用途 |
|---|---|---|
| OAuth / 认证流程 | sequenceDiagram |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 授权码、JWT、PKCE、设备流 |
| ERD / 数据模型 | flowchart LR | 对象关系与共享上下文 |
| 集成序列图 | sequenceDiagram | 请求/响应或事件编排 |
| 系统架构图 | flowchart | 高层架构 |
| 角色 / 访问权限层次结构 | flowchart | 用户、配置文件、权限 |
| Agentforce 行为映射图 | flowchart | 代理 → 主题 → 操作关系 |
询问或推断:
sequenceDiagramflowchart LR对于 ERD 和基于实际数据的图表:
应用:
当用户需要终端兼容性或纯文本文档时,提供 ASCII 版本。
指出关键关系、流向以及任何假设。
autonumberflowchart LR## <图表标题>
### Mermaid 图表
```mermaid
<diagram>
```
### ASCII 备用方案
```text
<ascii>
```
### 说明
- <关键点>
- <假设或限制>
| 需求 | 委托给 | 原因 |
|---|---|---|
| 真实的对象/字段定义 | sf-metadata | 基于实际数据的 ERD 生成 |
| 渲染的图表/图像输出 | sf-diagram-nanobananapro | 超越 Mermaid 的视觉美化 |
| 关联应用认证设置上下文 | sf-connected-apps | 准确的 OAuth 流程 |
| Agentforce 逻辑可视化 | sf-ai-agentscript | 真实行为细节来源 |
| 流程行为图 | sf-flow | 基于实际的 Flow 逻辑 |
| 分数 | 含义 |
|---|---|
| 72–80 | 可用于生产环境的图表 |
| 60–71 | 清晰有用,仅需少量润色 |
| 48–59 | 功能正常,但可以更清晰 |
| 35–47 | 需要结构改进 |
| < 35 | 不准确或不完整 |
每周安装量
255
代码仓库
GitHub 星标数
219
首次出现
2026年1月22日
安全审计
安装于
codex245
cursor245
opencode245
gemini-cli243
github-copilot240
amp238
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 sf-diagram-mermaid when the user wants:
Delegate elsewhere 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 | sf-metadata | grounded ERD generation |
| rendered diagram / image output | sf-diagram-nanobananapro | visual polish beyond Mermaid |
| connected-app auth setup context | sf-connected-apps | accurate OAuth flows |
| Agentforce logic visualization | sf-ai-agentscript | source-of-truth behavior details |
| Flow behavior diagrams | sf-flow | actual Flow logic grounding |
| 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 |
Weekly Installs
255
Repository
GitHub Stars
219
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex245
cursor245
opencode245
gemini-cli243
github-copilot240
amp238
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
106,200 周安装
Nx Import 使用指南:从源仓库导入代码并保留Git历史
250 周安装
OpenPencil CLI 工具:.fig 设计文件命令行操作与 MCP 服务器 | 设计自动化
250 周安装
学术深度研究技能:AI驱动的学术文献综述与多源验证工具,生成APA格式报告
250 周安装
React PDF 渲染器 - 使用 JSON 生成 PDF 文档,支持自定义组件和流式渲染
250 周安装
后端安全编码专家 | 安全开发实践、漏洞预防与防御性编程技术指南
250 周安装
TanStack Form:高性能无头表单库,支持TypeScript、Zod、Valibot验证
250 周安装