sf-diagram-nanobananapro by jaganpro/sf-skills
npx skills add https://github.com/jaganpro/sf-skills --skill sf-diagram-nanobananapro当用户需要渲染的可视化图形,而非文本图表时,请使用此技能:ERD、UI 线框图、架构示意图、可用于幻灯片的图像,或使用 Nano Banana Pro 进行图像编辑。
使用技能前,务必先运行先决条件检查:
~/.claude/skills/sf-diagram-nanobananapro/scripts/check-prerequisites.sh
如果先决条件检查失败,请停止操作并引导用户查看以下设置指南:
当用户需要以下内容时,使用 sf-diagram-nanobananapro:
当用户需要以下内容时,请委托给其他技能:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
询问或推断以下信息:
除非用户明确要求快速/简单/直接生成,否则请先询问澄清性问题。
| 请求类型 | 询问内容 |
|---|---|
| ERD / 数据模型 | 对象、视觉样式、用途、额外要求 |
| UI 线框图 | 组件类型、对象/上下文、设备/布局、样式 |
| 架构图 | 系统、边界、协议、重点强调内容 |
| 图像编辑 | 保留什么、改变什么、输出质量 |
如果用户说“快速”、“简单”或“直接生成”,则默认使用:
确定需要以下哪些内容:
好的提示词应指定:
gemini --yolo "/generate 'Professional Salesforce ERD with Account, Contact, Opportunity; clean legend; white background; Salesforce-style colors'"
使用自然语言编辑:
gemini --yolo "/edit 'Move Account to center, thicken relationship lines, add legend in bottom right'"
当需要更高分辨率或明确的编辑输入时,使用脚本:
uv run scripts/generate_image.py \
-p "Final production-quality Salesforce ERD with legend and field highlights" \
-f "crm-erd-final.png" \
-r 4K
对于 ERD,除非用户另有要求,否则默认采用 architect.salesforce.com 的美学风格:
| 模式 | 默认方法 |
|---|---|
| 可视化 ERD | 如果可用则获取元数据,然后先渲染草稿 |
| LWC 线框图 | 使用组件模板 + 用户上下文 + 一次草稿迭代 |
| 架构示意图 | 强调系统和流程,减少字段级细节 |
| 图像精修 | 在重新生成前,使用 /edit 进行小改动 |
| 最终生产资源 | 切换到脚本驱动的 2K/4K 生成 |
生成后,执行以下操作之一:
保持第一轮成本低廉;仅在构图正确后才投入高分辨率输出。
| 需求 | 委托给 | 原因 |
|---|---|---|
| Mermaid 初稿或文本图表 | sf-diagram-mermaid | 更快的结构图绘制 |
| 用于 ERD 的对象/字段发现 | sf-metadata | 准确的数据模型基础 |
| 将线框图转化为真实组件 | sf-lwc | 设计后的实现 |
| 并行审查 Apex / 触发器代码 | sf-apex | 代码质量跟进 |
| 分数 | 含义 |
|---|---|
| 70+ | 强大的图像提示词 / 工作流程选择 |
| 55–69 | 可用的草稿,但需要迭代 |
| 40–54 | 部分符合请求 |
| < 40 | 契合度差;重新访谈并重建提示词 |
每周安装数
242
代码仓库
GitHub 星标数
219
首次出现
Jan 22, 2026
安全审计
安装于
codex233
opencode233
cursor232
gemini-cli231
github-copilot228
amp226
Use this skill when the user needs rendered visuals , not text diagrams: ERDs, UI mockups, architecture illustrations, slide-ready images, or image edits using Nano Banana Pro.
Always run the prerequisites check before using the skill:
~/.claude/skills/sf-diagram-nanobananapro/scripts/check-prerequisites.sh
If prerequisites fail, stop and route the user to setup guidance in:
Use sf-diagram-nanobananapro when the user wants:
Delegate elsewhere when the user wants:
Ask for or infer:
Unless the user explicitly asks for quick/simple/just generate , ask clarifying questions first.
| Request type | Ask about |
|---|---|
| ERD / schema | objects, visual style, purpose, extras |
| UI mockup | component type, object/context, device/layout, style |
| architecture image | systems, boundaries, protocols, emphasis |
| image edit | what to keep, what to change, output quality |
Question bank: references/interview-questions.md
If the user says “quick”, “simple”, or “just generate”, default to:
Decide which of these are needed:
Good prompts specify:
gemini --yolo "/generate 'Professional Salesforce ERD with Account, Contact, Opportunity; clean legend; white background; Salesforce-style colors'"
Use natural-language edits:
gemini --yolo "/edit 'Move Account to center, thicken relationship lines, add legend in bottom right'"
Use the script when you need higher resolution or explicit edit inputs:
uv run scripts/generate_image.py \
-p "Final production-quality Salesforce ERD with legend and field highlights" \
-f "crm-erd-final.png" \
-r 4K
Full iteration guide: references/iteration-workflow.md
For ERDs, default to the architect.salesforce.com aesthetic unless the user asks otherwise:
Style guide: references/architect-aesthetic-guide.md
| Pattern | Default approach |
|---|---|
| visual ERD | get metadata if available, then render a draft first |
| LWC mockup | use component template + user context + one draft iteration |
| architecture illustration | emphasize systems and flows, reduce field-level detail |
| image refinement | use /edit for small changes before regenerating |
| final production asset | switch to script-driven 2K/4K generation |
Examples: references/examples-index.md
After generating, do one of these:
Keep the first pass cheap; only spend on high-res output after the composition is right.
| Need | Delegate to | Reason |
|---|---|---|
| Mermaid first draft or text diagram | sf-diagram-mermaid | faster structural diagramming |
| object / field discovery for ERD | sf-metadata | accurate schema grounding |
| turn mockup into real component | sf-lwc | implementation after design |
| review Apex / trigger code in parallel | sf-apex | code-quality follow-up |
| Score | Meaning |
|---|---|
| 70+ | strong image prompt / workflow choice |
| 55–69 | usable draft with iteration needed |
| 40–54 | partial alignment to request |
| < 40 | poor fit; re-interview and rebuild prompt |
Weekly Installs
242
Repository
GitHub Stars
219
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex233
opencode233
cursor232
gemini-cli231
github-copilot228
amp226
Azure 配额管理指南:服务限制、容量验证与配额增加方法
79,700 周安装