Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

d2D2 命令行

Agent Skill

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

总安装

499

周安装

21

GitHub Stars

公开资料未说明

下载量

175
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/itsjool/d2-mcp --skill d2

简介

d2 是声明式图表脚本语言,可将文本编译为 SVG 图形。

  • 适用于系统架构、流程图、ER 图等多种可视化场景。
  • 支持容器连接、序列图、类图等专业绘图类型。
  • 语法简洁直观,适合快速生成技术文档插图。d2 属于前端设计类 Skill,可作为该场景下的辅助能力补充。
  • 可通过在线 playground 实时预览效果。

SKILL.md

D2 Diagram Language

D2 is a declarative diagram scripting language that compiles to SVG. Text → diagrams. Docs: https://d2lang.com | Playground: https://play.d2lang.com


Diagram Type Selection

Choose the right diagram type before writing any code:

User wants to show...Use this D2 pattern
System components and how they connectContainers + connections (architecture)
Request/response flow, API interactions, message ordershape: sequence_diagram
A process, algorithm, or decision treeShapes + directed connections (flowchart)
Database tables and foreign keysshape: sql_table (ER diagram)
Class hierarchies, object relationshipsshape: class (UML class diagram)
System context: users, systems, boundaries (C4)Containers + shape: c4-person + theme 303
A state machine or lifecycleShapes + labeled connections (state diagram)
Progressive reveal / storytellingsteps: {} with animate_interval
Multiple views of the same systemlayers: {} or scenarios: {}
A dashboard / grid of metricsContainer with grid-rows / grid-columns

Default shape: rectangle. Use direction: right or direction: down to control flow.


Workflow: Responding to a Diagram Request

  1. Pick the diagram type (use the table above)
  2. Draft the D2 code — start with core entities, add connections, add style last
  3. Call d2_inspect, then draw an ASCII replica from its output: d2_inspect(d2_code=...) Use the inspect output to hand-draw a clean ASCII diagram using box-drawing characters (┌─┐│└┘├┤┬┴┼ ▶ ◀ ↓ ↑). You are generating this ASCII — not the D2 renderer. This avoids all of D2's known ASCII rendering bugs (cross-container connections, reverse edges, direction:right). How to draw it: Put the result in a code fence and ask the user if the structure looks right: Here's the structure: ┌─ SaaS Cloud ─────────────────────────────┐ │ ┌──────────────────┐ │ │ │ Control Plane │ │ │ │ ┌─────────────┐ │ │ │ │ │ API Gateway │ │ │ │ │ └──────┬──────┘ │ │ │ │ route │ │ │ │ ┌──────▼──────┐ │ │ │ │ │ gRPC Server │ │ │ │ │ └──────┬──────┘ │ │ │ └─────────┼────────┘ │ └────────────┼────────────────────────────-┘ │ mirror request → ┌─ Customer Edge ──────────────────────────┐ │ ┌──────────────────┐ │ │ │ Data Plane Agent│ │ │ │ ┌─────────────┐ │ │ │ │ │ gRPC Client │ │ │ │ │ └─────────────┘ │ │ │ └──────────────────┘ │ └──────────────────────────────────────────┘ Does this look right? I'll render the SVG if so. Rules:

- Containers become labelled boxes: ┌─ Control Plane ──────┐ - Child shapes are indented inside their parent box - Connections are drawn as arrows between boxes with their labels - Cross-container connections are shown as arrows spanning between the boxes - Use for forward, for reverse, for bidirectional, -- for undirected - For sequence diagrams: draw actors as columns with arrows between them - For steps/layers: show each board as a separate section - Always call d2_inspect first — draw from its output, not from memory - Do NOT use d2_render(ascii=true) — D2's ASCII renderer has known bugs - Do NOT skip the preview and go straight to SVG - If the user requests changes, update the D2 code, re-inspect, redraw

  1. Only if the user confirms the structure, render SVG: d2_render(d2_code=..., skip_fonts=true)
  2. If invalid at either step, call d2_validate to get specific line/column errors
  3. When saving: write the .d2 source first (instant), SVG render last (see Saving Rendered SVGs)
  4. Iterate — adjust based on feedback, re-render ASCII to confirm, then SVG

Rule: skip_fonts defaults to true — never override it unless the user explicitly asks for embedded fonts. System fonts are indistinguishable from Source Sans Pro in practice, and skipping fonts reduces render time and SVG size by ~500KB.


Core Syntax

Shapes

# Bare identifier = rectangle by default
server

# With a display label (key vs label — connections use the KEY, not the label)
server: "API Server"

# Set shape type
db: {
  shape: cylinder
}

# Multiple on one line
web; app; db

# Inline style shorthand
cache: { shape: queue; style.fill: "#fce8e6" }

Available shape types: rectangle (default), square, circle, oval, diamond, hexagon, cloud, cylinder, queue, package, parallelogram, document, page, step, callout, stored_data, person, c4-person, sql_table, class, sequence_diagram, image

Connections

A -> B            # directed arrow
A <- B            # reverse
A -- B            # undirected line
A <-> B           # bidirectional

A -> B: label     # with label

# Chaining
A -> B -> C -> D

# Multiple connections (creates SEPARATE arrows — D2 never merges them)
A -> B: "first"
A -> B: "second"   # distinct second arrow, not an override

# Reference a specific connection (0-indexed) to style it
(A -> B)[0].style.stroke: red

Containers (nesting)

cloud: {
  label: "AWS"
  vpc: {
    web: "Web Tier"
    app: "App Tier"
    web -> app
  }
}

# Cross-container connections: use _ to refer to the parent scope
cloud: {
  aws: {
    db
    db -> _.gcloud.backup    # _ = parent scope (cloud)
  }
  gcloud: {
    backup
  }
}

Text and Markdown

explanation: |md
  ## Architecture Overview
  This diagram shows the **three-tier** architecture.
  - Web tier
  - App tier
  - Data tier
|

formula: |latex
  \frac{\partial f}{\partial x} = 2x
|

Style Reference

Shape styles

my_shape: {
  style: {
    fill: "#4a90d9"          # background color
    stroke: "#2c5f8a"        # border color
    stroke-width: 2
    stroke-dash: 5           # dashed border
    border-radius: 8         # rounded corners
    font-size: 14
    font-color: white
    opacity: 0.9
    shadow: true
    bold: true
    italic: false
    3d: true                 # rectangles/squares only
    multiple: true           # stacked visual — implies "many instances"
    double-border: true      # rectangles and ovals only
    text-transform: uppercase
  }
}

Connection styles

A -> B: {
  style: {
    stroke: red
    stroke-width: 3
    stroke-dash: 5
    animated: true           # flowing animation — use to show data/request flow
    bold: true
    font-color: "#666"
  }
}

Arrowheads

A -> B: {
  source-arrowhead: {
    shape: diamond
    style.filled: true
  }
  target-arrowhead: {
    shape: circle
  }
}

Arrowhead shapes: triangle (default), arrow, diamond, circle, box, cf-one, cf-many, cf-one-required, cf-many-required, cross

Use cf-* arrowheads on ER connections to show cardinality (crow's foot notation).


Advanced Styling

Global styles with globs

# Style all shapes
*.style.fill: "#f0f4ff"
*.style.stroke: "#3b5bdb"
*.style.border-radius: 6

# Style all connections
(* -> *)[*].style.stroke: "#888"
(* -> *)[*].style.animated: true

# Scoped glob — only shapes inside this container
cloud: {
  *.style.fill: "#e8f5e9"
}

Reusable style classes

classes: {
  important: {
    style: { stroke: red; stroke-width: 3; bold: true }
  }
  faded: {
    style: { opacity: 0.4 }
  }
  external: {
    style: { stroke-dash: 5; fill: "#f8f8f8" }
  }
}

# Apply to shapes
critical_db.class: important
legacy_service.class: faded

# Apply multiple (left-to-right, later class wins on conflicts)
service.class: [important; faded]

# Apply to connections
A -> B: { class: important }

Variables and substitutions

vars: {
  primary: "#3b5bdb"
  secondary: "#74c0fc"
  accent: "#f06595"

  # In-file config (overridden by d2_render tool params)
  d2-config: {
    theme-id: 0
    theme-overrides: {
      B1: "#0057b8"   # brand primary — maps to the main accent color
      N7: "#1a1a2e"   # darkest neutral
    }
  }
}

server: {
  style.fill: ${primary}
  style.stroke: ${secondary}
}

Color override codes: N1N7 (neutrals), B1B6 (brand), AA2AA5 (accent A), AB4AB5 (accent B)


Diagram Patterns

Architecture / System

*.style.border-radius: 6
*.style.font-size: 13
direction: right

internet: { shape: cloud; label: "Internet" }

frontend: {
  label: "Frontend\n(React)"
  icon: https://icons.terrastruct.com/dev/react.svg
  style.fill: "#e8f4fd"
}

api: { label: "API Gateway"; style.fill: "#fff3cd" }

services: {
  label: "Microservices"
  style.fill: "#f8f9fa"

  auth: "Auth Service"
  orders: "Orders Service"
  payments: "Payments Service"
}

db: { shape: cylinder; label: "PostgreSQL"; style.fill: "#d4edda" }
cache: { shape: queue; label: "Redis"; style.fill: "#fce8e6" }

internet -> frontend
frontend -> api: "HTTPS"
api -> services.auth: "JWT validate"
api -> services.orders
api -> services.payments
services.orders -> db
services.payments -> db
services.auth -> cache: "session"

Flowchart / Process

direction: down

start: { shape: circle; style.fill: "#4caf50"; style.font-color: white }
end_ok: { shape: circle; style.fill: "#4caf50"; style.font-color: white; label: "Done" }
end_err: { shape: circle; style.fill: "#f44336"; style.font-color: white; label: "Failed" }
validate: { shape: diamond; label: "Valid?" }
process: "Process Request"
notify: "Send Notification"
error: "Return Error"

start -> process
process -> validate
validate -> notify: "Yes"
validate -> error: "No"
notify -> end_ok
error -> end_err

Sequence Diagram

auth_flow: {
  shape: sequence_diagram

  # Declare actors in display order
  client
  gateway
  auth
  db

  client -> gateway: "POST /login"
  gateway -> auth: "validate(credentials)"
  auth -> db: "SELECT user WHERE email=?"
  db -> auth: "user record"

  # Note on a specific actor (no connections = annotation)
  auth."checks bcrypt hash"

  auth -> gateway: "JWT token"
  gateway -> client: "200 OK + token"

  # Group / fragment
  error_case: {
    gateway -> client: "401 Unauthorized"
  }
}

Key rules for sequence diagrams:

  • Actors are auto-created on first reference; declare them explicitly to control order
  • A standalone shape with no connections inside the diagram is a note/annotation
  • Groups (named nested blocks) create UML fragment boxes

ER Diagram (SQL Tables)

users: {
  shape: sql_table
  id: uuid {constraint: primary_key}
  email: varchar(255) {constraint: [unique; not_null]}
  name: varchar(100)
  org_id: uuid {constraint: foreign_key}
  created_at: timestamptz
}

organizations: {
  shape: sql_table
  id: uuid {constraint: primary_key}
  name: varchar(255) {constraint: not_null}
}

posts: {
  shape: sql_table
  id: uuid {constraint: primary_key}
  author_id: uuid {constraint: foreign_key}
  title: varchar(255)
  body: text
}

# FK connections — connect column to column
users.org_id -> organizations.id
posts.author_id -> users.id

SQL table notes:

  • stroke styles the table body; fill styles the header row
  • Constraints: primary_key, foreign_key, unique, not_null
  • Multiple constraints: {constraint: [primary_key; not_null]}

UML Class Diagram

UserService: {
  shape: class

  # Fields: visibility + name: type
  # Quote the key if params contain ":", quote the value if it contains "[]"
  -db: Database
  "-users": "User[]"
  "#cache": Cache

  # Methods: visibility + name(params): return
  +getUser(): User
  "+createUser(data: UserInput)": User
  "-validateEmail(email: string)": bool
}

User: {
  shape: class
  +id: string
  +email: string
  +name: string
  +createdAt: Date
}

# Relationships as connections with labels
UserService -> User: uses
UserRepo -> User: manages

Visibility: + public, - private, # protected

Quoting rules:

  • Field type contains [] → quote the value: "-users": "User[]"
  • Method params contain : → quote the key: "+method(id: string)": ReturnType

C4 Architecture

Use theme 303 (C4) for C4 diagrams — it styles containers with the canonical C4 look.

# Render with: theme_id=303
direction: right

vars: {
  d2-config: {
    theme-id: 303
  }
}

# Actors
user: {
  shape: c4-person
  label: "Customer"
  style.fill: "#08427b"
  style.font-color: white
}

# Systems
web_app: {
  label: "Web Application\n[React SPA]"
  style.fill: "#1168bd"
  style.font-color: white
}

api: {
  label: "API Server\n[Node.js / Express]"
  style.fill: "#1168bd"
  style.font-color: white
}

db: {
  shape: cylinder
  label: "Database\n[PostgreSQL]"
  style.fill: "#1168bd"
  style.font-color: white
}

external_payment: {
  label: "Payment Gateway\n[Stripe]"
  style.fill: "#999999"
  style.font-color: white
}

user -> web_app: "Uses [HTTPS]"
web_app -> api: "API calls [JSON/HTTPS]"
api -> db: "Reads/writes [SQL]"
api -> external_payment: "Charges card [HTTPS]"

State Machine

direction: right

# States
idle: { shape: rectangle; label: "Idle" }
loading: { shape: rectangle; label: "Loading"; style.fill: "#fff3cd" }
success: { shape: rectangle; label: "Success"; style.fill: "#d4edda" }
error: { shape: rectangle; label: "Error"; style.fill: "#f8d7da" }

# Terminal states with double-border
success: { style.double-border: true }

# Transitions
idle -> loading: "fetch()"
loading -> success: "onSuccess"
loading -> error: "onError"
error -> idle: "reset()"
success -> idle: "reset()"

Grid Dashboard

dashboard: {
  label: "System Health"
  grid-rows: 2
  grid-columns: 3
  grid-gap: 16

  cpu: { label: "CPU\n42%" }
  memory: { label: "Memory\n71%" }
  disk: { label: "Disk\n28%" }
  latency: { label: "p99 Latency\n180ms"; style.fill: "#fff3cd" }
  errors: { label: "Error Rate\n0.2%"; style.fill: "#d4edda" }
  uptime: { label: "Uptime\n99.97%"; style.fill: "#d4edda" }
}

Animated Multi-Step Diagram

Use steps to build up a diagram progressively. Render with animate_interval to produce an animated SVG.

steps: {
  s1: {
    user: "User"
  }
  s2: {
    user: "User"
    web: "Web Server"
    user -> web: "request"
  }
  s3: {
    user: "User"
    web: "Web Server"
    db: "Database"
    user -> web: "request"
    web -> db: "query"
  }
  s4: {
    user: "User"
    web: "Web Server"
    db: "Database"
    cache: "Redis"
    user -> web: "request"
    web -> db: "query"
    web -> cache: "cache hit"
  }
}

Render: d2_render(d2_code=..., animate_interval=1500, target="*")

Each step inherits the previous. Use scenarios for variations on a base; use layers for fully independent views.


Themes

Contextual picks

ContextRecommended themeID
Technical docs, general useNeutral Default0
C4 architecture diagramsC4303
Dark mode documentationDark Mauve200
Vibrant / colorfulFlagship Terrastruct3
Paper / whiteboard aestheticOrigami302
Terminal / monospace styleTerminal300
Accessible / colorblind-safeColorblind Clear8
Presentations (high contrast)Neutral Default or Flagship0 or 3

Light/dark mode per diagram

D2 supports separate themes for light and dark browser mode in one SVG:

d2_render(d2_code=..., theme_id=0, dark_theme_id=200)

The browser automatically switches based on prefers-color-scheme. Use this when embedding SVGs in documentation sites.

Full theme table

IDNameCharacter
0Neutral DefaultClean, professional (good default)
1Neutral GreyMuted, monochrome
3Flagship TerrastructVibrant, colorful
4Cool ClassicsBlues and greens
5Mixed Berry BluePurples and blues
6Grape SodaPurple-dominant
7AubergineDeep purple tones
8Colorblind ClearAccessible palette
100Vanilla Nitro ColaWarm neutrals
101Orange CreamsicleOrange accent
102Shirley TemplePink and red
103Earth TonesBrowns and tans
104Everglade GreenForest greens
105Buttered ToastWarm yellows
200Dark MauveDark mode
201Dark Flagship TerrastructDark mode, colorful
300TerminalMonospace, dot-fill containers
301Terminal GrayscaleTerminal style, grayscale
302OrigamiPaper aesthetic
303C4C4 architecture diagram style

Layouts

EngineUse whenNotes
dagreAlways — defaultFast, handles nesting and cross-container connections well
elkUser explicitly requests itExtremely slow in WASM (can take minutes). Do NOT choose it yourself.

Default rule: never set layout-engine at all. Dagre is the default. Only set ELK if the user asks for it.

Direction control:

direction: right    # top-level: up, down, left, right

# Per-container direction (ELK only — do not use unless user requests ELK)
container: {
  direction: right
  a -> b -> c
}

Composition: Layers, Scenarios, Steps

# Layers: independent views (no inheritance between layers)
layers: {
  overview: {
    web -> app -> db
  }
  detailed: {
    web: "Nginx" { shape: rectangle }
    web -> app: "HTTP/1.1"
    app -> db: "PostgreSQL wire protocol"
  }
}

# Scenarios: variations on a base diagram (inherit from root)
web -> app -> db

scenarios: {
  with_cache: {
    app -> cache: "read-through"
  }
  with_cdn: {
    cdn -> web
  }
}

# Steps: sequential, each step inherits the previous (use for animated storytelling)
steps: {
  s1: { user }
  s2: { user -> web }
  s3: { user -> web -> app }
  s4: { user -> web -> app -> db }
}

Animate layers/scenarios/steps: d2_render(d2_code=..., animate_interval=1500, target="*") Render one board: target="layers.production" or target="layers.production.*" for it and its children.


Icons

# Icon from URL — Terrastruct's free icon library
server: {
  icon: https://icons.terrastruct.com/tech/server.svg
}

# Control icon position
server: {
  icon: https://icons.terrastruct.com/tech/server.svg
  icon.near: top-left    # top-left, top-center, top-right, center-left, center-right, bottom-*
}

# Standalone image shape
github: {
  shape: image
  icon: https://icons.terrastruct.com/social/github.svg
}

Free icons: https://icons.terrastruct.com — includes AWS, GCP, Azure, dev tools, tech logos.


Tooltips and Links

server: {
  tooltip: "Handles all API requests. SLA: 99.9%"
  link: https://docs.example.com/server
}

server -> db: {
  tooltip: "Uses PgBouncer connection pooling"
}

Tooltips and links are embedded in the SVG and work when opened in a browser. To force the tooltip appendix to render even on shapes without tooltips, add forceAppendix: true to your render options (not yet exposed in the d2_render tool — use in-file config or omit).


Grid Layout

dashboard: {
  grid-rows: 2
  grid-columns: 3
  grid-gap: 20           # gap between all cells
  vertical-gap: 10       # fine-tune vertical spacing
  horizontal-gap: 15     # fine-tune horizontal spacing

  widget_a: "Revenue"
  widget_b: "Users"
  widget_c: "Orders"
  widget_d: "Latency"
  widget_e: "Errors"
  widget_f: "Uptime"
}
  • Shapes fill cells left-to-right, top-to-bottom
  • Connections between grid items still render normally
  • width/height on grid containers requires ELK layout

Imports

# Spread file contents into current scope
...@shared_styles.d2

# Assign file to a key
network: @network_diagram.d2

# Import specific object from file
db_schema: @schema.users

Saving Rendered SVGs

Save in this order — write source first, SVG second:

Step 1 — Write the D2 source immediately (no render needed, instant): Write the D2 code to diagrams/<stem>.d2 with the Write tool.

Step 2 — Reuse the SVG from the conversation render: The SVG you already rendered with skip_fonts=true (default) is the save-worthy output. Write it to diagrams/<stem>.svg. No second render needed.

Embedded fonts: skip_fonts=true is the default and correct for saved files too — system fonts are indistinguishable from Source Sans Pro in practice. Only render with skip_fonts=false if the user explicitly asks for embedded fonts, and warn them it will add ~500KB and take significantly longer.

Filename convention:

  • Directory: diagrams/ relative to project root (create if missing)
  • Stem: YYYY-MM-DD_HH-MM_<slug> — local time, 24-hour, 2–4 word slug
  • Examples: 2025-06-01_14-32_auth-flow-sequence, 2025-06-01_09-05_aws-three-tier

After saving, tell the user the paths. SVGs open in any browser and are fully interactive (tooltips, links, animations).

For HTML embedding: add no_xml_tag=true to omit the <?xml?> declaration.


D2 Superpowers (vs Mermaid)

These are things D2 does that Mermaid cannot — reach for them when appropriate:

  • Cross-container connections — connect shapes inside different containers with _ for parent scope: aws.db -> _.gcloud.replica
  • Animated connectionsstyle.animated: true creates flowing arrows in the SVG (great for showing data flow)
  • Multi-board animated SVGssteps/scenarios/layers + animate_interval produce a single SVG that cycles through states
  • Native light/dark moded2_render(theme_id=0, dark_theme_id=200) — browser auto-switches
  • Brand theming with vars — define brand colors once in vars, reference with ${primary} throughout
  • Reusable style classes — define .class styles once, apply to many shapes like CSS classes
  • Grid layout — dashboard-style grid arrangements in pure D2
  • Icon library — pull SVG icons from icons.terrastruct.com directly into shapes
  • Tooltip appendix — hover tooltips with links embedded in the SVG, no JavaScript needed

Quality Guidelines

  • Start with structure, add style last — get shapes and connections right before worrying about colors
  • Keep diagrams focused — aim for under 40 nodes; split complex systems into multiple diagrams
  • One diagram per concept — an architecture diagram and a sequence diagram for the same system are more useful than a single diagram trying to show both
  • Prefer containers over flat graphs — D2's nesting is a strength; use it to group related components
  • Use style.animated: true on connections to show active data flow — it's more informative than color alone
  • Iterate with the user — render, show, ask "does this capture what you meant?", adjust
  • Use d2_validate before d2_render if you're unsure about syntax — it returns specific line/column errors

Common Mistakes

Do not use d2_render(ascii=true) for structural previews: The D2 ASCII renderer (added in v0.7.1) has known bugs: direction: right with cross-container connections garbles output, and reverse/back-arrows (reply, response) produce tangled routing even with direction: down. Terrastruct has acknowledged the approach is architecturally flawed and a rewrite is in progress.

Use d2_inspect instead — it generates a reliable text summary from the compiled diagram object, with no rendering involved.

Repeated connections are not merged:

A -> B: "label 1"
A -> B: "label 2"   # creates a SECOND distinct arrow, not an update

Use (A -> B)[0].label: "label 1" to reference existing connections.

_ is the parent scope, not the root:

outer: {
  inner: {
    x -> _.y    # _ refers to outer, not root
  }
  y
}

Quoting class method params:

# WRONG — colon inside key breaks parsing
+createUser(data: UserInput): User

# CORRECT — quote the key when params contain ":"
"+createUser(data: UserInput)": User

ELK in WASM is extremely slow: Never set layout-engine: elk in vars.d2-config or pass layout: "elk" to d2_render unless the user explicitly asks. It can take several minutes per render.

width/height on containers requires ELK: grid-rows/grid-columns works with dagre, but explicit width/height on containers only takes effect with ELK layout.

Connections use keys, not labels:

server: "API Server"   # label is "API Server", key is "server"
server -> db            # correct — uses the key
"API Server" -> db      # WRONG — this creates a new shape named "API Server"

skip_fonts=true by default in conversation: Always pass skip_fonts=true when rendering for display in conversation. Only omit it (i.e. use skip_fonts=false) when saving the final SVG to disk. Each render without skip_fonts=true adds ~500KB of base64 font data to your context.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.42%
按下载量换算58

Claude

31.62%
按下载量换算55

Cursor

19.61%
按下载量换算34

Gemini CLI

8.78%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills