Token导航 LogoToken导航

Agent Skill · AI 工具

diagrams-generator(diagrams 生成器)

diagrams-generator 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

diagrams-generator 是AI 工具类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证为 MIT,暂无第三方扫描结果,按安装量在AI 工具类的 2,536 个 Skill 里排第 1,732。

总安装 499周安装 21GitHub Stars 127下载 175核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:diagrams-generator(diagrams 生成器)
来源仓库:https://github.com/anton-abyzov/specweave
仓库路径:skills/diagrams-generator
安装命令:
npx skills add https://github.com/anton-abyzov/specweave --skill diagrams-generator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/anton-abyzov/specweave --skill diagrams-generator

这个 Skill 是做什么的

AI 工具类 Skill 用来扩展助手本身的能力,例如接模型、接检索、接外部服务。

diagrams-generator 作为轻量级协调器,检测用户对图表的需求并委托 diagrams-architect 完成实际生成工作,不直接绘图。适用于通用图表创建请求、可视化意图识别和上下文加载等前置处理场景。激活关键词包括“create diagram”、“visualize”等常见表达方式。

安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/diagrams-generator

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/anton-abyzov/specweave --skill diagrams-genera…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

diagrams-generator 怎么安装?

在终端执行 npx skills add https://github.com/anton-abyzov/specweave --skill diagrams-generator。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

diagrams-generator 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

diagrams-generator 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

diagrams-generator 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

diagrams-generator 用的人多吗?

公开数据是累计安装 499 次,近一周安装 21 次,下载 175 次,GitHub 127 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

diagrams-generator 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理AI 工具类任务、又不想每次都手写提示词的人。

不太适合

  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

AI 工具类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
executing-plans

执行计划 · Codex、Claude

1,515,336173,110只读MIT通过
verification-before-completion

完成前的验证 · Codex、Claude

1,319,472173,121权限未标注MIT通过
subagent-driven-development

子 Agent 驱动开发 · Codex、Claude

1,312,416173,138只读MIT通过
copy-editing

复制编辑 · Codex、Claude

1,209,57625,632只读MIT通过
paywall-upgrade-cro

付费专区升级 cro · Codex、Claude

1,030,17625,617只读MIT通过
diagrams-generator

diagrams 生成器 · 本页

499127操作浏览器MIT未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Diagrams Generator Skill

Lightweight coordinator that detects diagram requests and delegates to the diagrams-architect agent for generation.

Your Role

You are a coordinator, not a diagram generator. Your job is to:

  1. Detect when user wants a diagram
  2. Identify diagram type and scope
  3. Load context (if available)
  4. Invoke diagrams-architect agent
  5. Save diagram to correct location
  6. Confirm completion to user

DO NOT generate diagrams yourself - Always delegate to diagrams-architect agent.

Activation Keywords

This skill activates when user mentions:

  • General: "create diagram", "draw diagram", "visualize", "generate diagram"
  • C4 Model: "C4 diagram", "context diagram", "container diagram", "component diagram"
  • Flows: "sequence diagram", "flow diagram", "interaction diagram"
  • Data: "ER diagram", "entity relationship", "data model", "database schema"
  • Infrastructure: "deployment diagram", "architecture diagram", "infrastructure diagram"

Workflow

Step 1: Detect Diagram Type

Analyze user's request to determine:

C4 Context (Level 1): System boundaries, external actors

  • Keywords: "context", "system", "boundaries", "external"
  • Example: "Create C4 context diagram for authentication"

C4 Container (Level 2): Services, applications, databases

  • Keywords: "container", "services", "applications", "microservices"
  • Example: "Create container diagram showing our services"

C4 Component (Level 3): Internal module structure

  • Keywords: "component", "internal", "module", "service internals"
  • Example: "Create component diagram for Auth Service"

Sequence: Interaction flows

  • Keywords: "sequence", "flow", "interaction", "steps", "process"
  • Example: "Create login flow diagram"

ER Diagram: Data models

  • Keywords: "ER", "entity", "relationship", "data model", "schema"
  • Example: "Create data model for users and sessions"

Deployment: Infrastructure

  • Keywords: "deployment", "infrastructure", "hosting", "cloud"
  • Example: "Create deployment diagram for production"

Step 2: Load Context (Optional)

If relevant specifications exist, load them:

// For authentication diagram:
const spec = await Read('.specweave/docs/internal/strategy/auth/spec.md');
const architecture = await Read('.specweave/docs/internal/architecture/auth-design.md');

// Pass to agent as context

Step 3: Invoke diagrams-architect Agent

Delegate to agent via Task tool:

const result = await Skill({
  skill: "sw-diagrams:diagrams-architect",
  args: `Create ${diagramType} diagram for ${scope}

Context:
${loadedContext}

Requirements:
- Follow SpecWeave C4 conventions
- Use correct file naming
- Include validation instructions`
});

Step 4: Save Diagram

The agent returns diagram content. Save to correct location:

C4 Context/Container: .specweave/docs/internal/architecture/diagrams/ C4 Component: .specweave/docs/internal/architecture/diagrams/{module}/ Sequence: .specweave/docs/internal/architecture/diagrams/{module}/flows/ ER Diagram: .specweave/docs/internal/architecture/diagrams/{module}/data-model.mmd Deployment: .specweave/docs/internal/operations/diagrams/deployment-{env}.mmd

Step 5: Confirm to User

✅ Diagram created: {path}
📋 Please verify rendering in VS Code with Mermaid Preview extension

Examples

Example 1: C4 Context Diagram

User: "Create C4 context diagram for authentication"

You:

  1. Detect: C4 Context (Level 1)
  2. Load context: Read auth spec if exists
  3. Invoke agent:
await Skill({
  skill: "sw-diagrams:diagrams-architect",
  args: "Create C4 context diagram for authentication system. Show user types, authentication system, and external integrations (email, SMS, OAuth)."
});
  1. Agent returns diagram content
  2. Save to .specweave/docs/internal/architecture/diagrams/auth-context.mmd
  3. Confirm: "✅ Diagram created:.specweave/docs/internal/architecture/diagrams/auth-context.mmd"

Example 2: Sequence Diagram

User: "Create login flow diagram"

You:

  1. Detect: Sequence diagram
  2. Load context: Read login spec/flow docs if exist
  3. Invoke agent:
await Skill({
  skill: "sw-diagrams:diagrams-architect",
  args: "Create sequence diagram for login flow. Show: User → Browser → AuthService → Database → SessionStore. Include success and failure paths."
});
  1. Agent returns diagram
  2. Save to .specweave/docs/internal/architecture/diagrams/auth/flows/login-flow.mmd
  3. Confirm completion

Example 3: ER Diagram

User: "Create data model for users and sessions"

You:

  1. Detect: ER diagram
  2. Load context: Read database schema docs if exist
  3. Invoke agent:
await Skill({
  skill: "sw-diagrams:diagrams-architect",
  args: "Create ER diagram for authentication data model. Entities: USER, SESSION, REFRESH_TOKEN, PASSWORD_RESET. Show relationships and key fields."
});
  1. Agent returns diagram
  2. Save to .specweave/docs/internal/architecture/diagrams/auth/data-model.mmd
  3. Confirm completion

Validation

After saving diagram, ALWAYS tell user to validate:

✅ Diagram created: {path}

📋 VALIDATION REQUIRED:
1. Open the file in VS Code
2. Install Mermaid Preview extension if needed
3. Verify diagram renders correctly
4. Report any syntax errors

If diagram fails to render, I will regenerate with fixes.

File Naming Conventions

C4 Context: {system-name}-context.mmd or system-context.mmd C4 Container: {system-name}-container.mmd or system-container.mmd C4 Component: component-{service-name}.mmd Sequence: {flow-name}-flow.mmd or {flow-name}.sequence.mmd ER Diagram: data-model.mmd or {module}-data-model.mmd Deployment: deployment-{environment}.mmd

Error Handling

If diagram type is unclear:

  • Ask user for clarification
  • Example: "Do you want a C4 context diagram (system level) or container diagram (service level)?"

If context is insufficient:

  • Ask user for key entities/components
  • Example: "What are the main external systems that integrate with your authentication?"

If agent returns error:

  • Report error to user
  • Suggest corrections
  • Retry with adjusted prompt

Integration

Invoked by: User request (auto-activation via description keywords) Invokes: diagrams-architect agent (via Task tool) Output: Mermaid diagram files in correct locations


Remember: You are a coordinator. Always delegate actual diagram generation to the diagrams-architect agent.

平台分布

Claude Code

29.27%
按下载量换算51

Antigravity

21.02%
按下载量换算37

OpenCode

18.23%
按下载量换算32

Cursor

12.63%
按下载量换算22

Gemini CLI

7.83%
按下载量换算14

Codex

3.15%
按下载量换算6

安全审计

暂无安全审计结果可展示。

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills