Token导航 LogoToken导航

Agent Skill · 前端设计

diagram-creator(图表创建者)

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

diagram-creator 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有未通过项,按安装量在前端设计类的 10,216 个 Skill 里排第 8,294。

总安装 297周安装 12GitHub Stars 11下载 93核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ferdinandobons/diagram-creator-skill --skill diagram-creator

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合围绕仓库状态、代码变更或协作事项进行整理。通过 GitHub 安装,支持 Codex、Claude、Cursor 和 Gemini CLI。建议确认权限范围和维护状态,避免触发不必要的联网或文件操作。

可结合原始 README 进一步核验具体功能和调用方式。

来源仓库内路径:skills/diagram-creator

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

diagram-creator 怎么安装?

在终端执行 npx skills add https://github.com/ferdinandobons/diagram-creator-skill --skill diagram-cre…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

diagram-creator 支持哪些 AI 工具?

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

diagram-creator 需要什么权限?

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

diagram-creator 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

diagram-creator 用的人多吗?

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

diagram-creator 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

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

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
diagram-creator

图表创建者 · 本页

29711操作浏览器未明确未通过

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

SKILL.md 原文

Diagram Creator

Generate stunning, self-contained HTML diagrams with professional typography, smooth animations, and an infinite canvas you can pan and zoom like Miro. Output is always a single .html file that opens directly in any browser — zero dependencies. Supports 5 themes and 8 topology layouts.

Input Handling

Accept any of these inputs and auto-process them:

Input typeHow to handle
Topic/description"Docker networking", "OAuth 2.0 flow" — use directly
Markdown (.md,.mdx)Extract structure from headings, lists, tables, relationships
JSON / YAML (.json,.yaml,.yml,.jsonl)Parse structure — keys become nodes, nesting becomes layers
Code files (.py,.ts,.js,.go,.rs,.java,.rb,.php,.swift,.kt,.c,.cpp,.cs,.scala, etc.)Extract classes, functions, imports, inheritance — diagram the architecture
Config / Infra (.toml,.ini,.env,.tf,.hcl, Dockerfile, docker-compose.yml, Makefile, nginx.conf)Map services, variables, dependencies, infrastructure
API specs (.openapi.yaml,.swagger.json,.graphql,.proto)Extract endpoints, types, service relationships
Database schemas (.sql,.prisma,.dbml)Map tables, columns, foreign keys, relationships
CI/CD pipelines (.github/workflows/*.yml,.gitlab-ci.yml, Jenkinsfile)Visualize pipeline stages and deployment flows
Data files (.csv,.tsv)Identify columns as entities, rows as relationships
Microsoft Office (.xlsx,.xls,.docx,.doc,.pptx,.ppt)Extract tables, headings, slide structure, org charts, SmartArt
Package manifests (package.json, requirements.txt, Cargo.toml, go.mod, pom.xml)Map dependency trees
Existing diagrams (.drawio,.puml,.mermaid)Read spec and re-render with this design system
PDF / Docs (.pdf,.txt,.rst,.adoc)Read content, extract core structure
Notebooks (.ipynb)Extract code cells, data flow, library dependencies

If it's a file, this skill can diagram it. For formats not listed, read the content and extract whatever structure exists.

When receiving a file path, read the file, detect the extension, and intelligently extract what matters for the diagram. Don't ask the user to reformat — figure it out.

If the input is genuinely ambiguous (no clear structure to extract), ask clarifying questions before proceeding. See "Pre-generation Questions" below.

Pre-generation Questions

Always ask these questions before generating, unless the answer is completely obvious from the input. Ask one question at a time — wait for the user's answer before moving to the next. Present every question as a numbered list so the user can simply reply with a number.

Skip a question ONLY when the answer is unambiguous — e.g., "diagram of Docker bridge networking" makes topology (nested) and detail level (medium) obvious. When in doubt, ask.

Question flow (one at a time, in this order):

  1. What to visualize? (skip only if input is already specific) Present 2-3 interpretations of the input as numbered options, plus an "Other" option. Tailor the options to what the user actually asked — don't use generic placeholders. What do you want to visualize? 1) [interpretation A] 2) [interpretation B] 3) Other — describe below → Reply with the number:
  2. Layout? (skip if only one topology realistically fits — choose automatically in Step 0) Only list the 2-3 topologies that could realistically fit, not all 8. Adapt options based on the previous answer. Layout? 1) Left-to-right — sequential flow 2) Timeline — vertical step sequence → Reply with the number:
  3. Detail level? Detail level? 1) High-level — main entities only, understand in 5 seconds 2) Medium — entities with key info, labeled connections (default) 3) Detailed — full technical breakdown, all metadata → Reply with the number (default: 2):
  4. Theme? Theme? 1) Dark (default) 2) Light 3) Corporate 4) Neon 5) Minimal → Reply with the number (default: 1):

Once you have all the answers, proceed autonomously through all remaining steps without further questions.

Step 0 — Choose the Topology

Pick exactly one topology based on what fits the content best:

TopologyWhen to useExamples
nestedHierarchical containment, layers wrapping layersDocker networking, K8s pods, OSI model, VPC subnets
left-to-rightSequential flow from A to ZOAuth flow, CI/CD pipeline, user journey, request lifecycle
hub-and-spokeCentral node connected to N surrounding nodesAPI gateway, microservices, load balancer, team structure
timelineOrdered vertical sequence of events/stepsDeploy pipeline, project roadmap, historical events
gridMatrix/table comparison, feature gridsFeature comparison, skill map, competitive landscape
treeHierarchical branching, org chartsOrg chart, file tree, decision tree, taxonomy
funnelProgressive narrowing, conversion stagesSales funnel, data pipeline, filtering process
comparisonSide-by-side 2-3 optionsProduct vs product, technology choices, before/after

Step 1 — Plan the Content

Before writing HTML, plan these elements in your thinking:

  • Topic: one sentence describing what the diagram shows
  • Detail level: choose one of three levels. Default to medium unless context suggests otherwise:

- High-level — Only the main entities of the system. Aggregate similar entities into single boxes (e.g., "Backend Services" instead of listing 10 microservices). No metadata in boxes — just name and role. Minimal connection labels. No callouts, badges, or notes. The viewer should understand the structure in 5 seconds. - Medium (default) — The entities needed to understand how the system works, without sub-components. Each box gets 1-2 metadata relevant to the domain (infra: port and protocol; org chart: role and team; flow: input/output of each step). Label connections where it adds clarity. Callouts only for non-obvious key concepts. The viewer who knows the domain should understand the diagram without further explanation. - Detailed — Everything: sub-components, configurations, technical notes. All relevant metadata per box (ports, protocols, versions, env vars, states). Badges, explanatory callouts, side notes. Goal: complete technical reference for people working on the system. How to choose: (1) If the user specifies a level explicitly, use it. (2) If context clarifies intent — a presentation implies high-level, a technical doc for the team implies detailed — match it. (3) Otherwise default to medium. (4) If the chosen level produces too many elements for the topology, aggregate entities into groups rather than changing level or topology.

  • Layers/Steps: each level with name, description, and accent color. For left-to-right topology, count the steps and apply the step count scaling table from references/topology-layouts.md to set step max-width and arrow width accordingly
  • Nodes: each box with emoji, name, and metadata density matching the detail level above
  • Connections: what each arrow represents (label density matches detail level)
  • Special Components: callout boxes, badges, info panels (reduce or skip for high-level)
  • Legend Entries: one per accent color used

Step 1.5 — Choose the Theme

If the user specifies a theme, use it. Otherwise default to dark.

ThemeBest forKeywords
dark (default)Technical diagrams, dev docs"dark", default
lightPresentations, documentation sites"light", "chiaro", "presentation"
corporateBusiness plans, pitch decks"corporate", "business", "professional"
neonCreative, gaming, social media"neon", "cyberpunk", "vibrant"
minimalClean docs, technical specs"minimal", "clean", "simple"

See references/themes.md for the exact :root values and overrides per theme.

Step 2 — Build the HTML

Read the reference files for detailed CSS/layout specifications:

  • references/typography-and-colors.md — fonts, palette, background
  • references/themes.md — theme system with 5 color schemes
  • references/topology-layouts.md — layout rules for each of the 8 topologies
  • references/components.md — node cards, badges, callouts, legend, animations
  • references/safety-rules.md — mandatory layout constraints for all topologies
  • references/canvas.md — infinite canvas with pan & zoom (Miro-like navigation)

Follow every rule in those references exactly. The design system is battle-tested — don't improvise fonts, colors, or layout patterns.

Always include the infinite canvas system from references/canvas.md. This lets users pan (click+drag) and zoom (scroll wheel) the diagram freely, like a whiteboard.

Step 3 — Output

  • Single .html file, all CSS in <style>, all JS in <script>
  • No external dependencies except Google Fonts via @import
  • No CSS frameworks, no JS libraries (vanilla JS for hub-and-spoke coordinates and canvas pan/zoom)
  • Valid HTML5 with <!DOCTYPE html> as first line
  • Must render correctly opened directly in a browser
  • Responsive down to 360px viewport width

Save as diagram-[topic-slug].html in the current working directory. Open it in the browser with open (macOS) or xdg-open (Linux). Tell the user where it was saved.

平台分布

Codex

33.27%
按下载量换算31

Claude

29.6%
按下载量换算28

Cursor

20.75%
按下载量换算19

Gemini CLI

10.7%
按下载量换算10

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

未通过

权限和风险

操作浏览器

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills