← 返回 Skills 市场
zmy1006-sudo

Architecture Diagram Generator (FMTWiki Fork)

作者 mingyuan · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
146
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install fmtwiki-architecture-diagram
功能描述
Create professional, dark-themed architecture diagrams as standalone HTML files with inline SVG graphics. Use when the user asks for system architecture diag...
使用说明 (SKILL.md)

Architecture Diagram Skill

Create professional technical architecture diagrams as self-contained HTML files with inline SVG graphics and CSS styling.

When to Use

  • User asks for "architecture diagram", "system diagram", "技术架构图"
  • User wants to visualize system components and relationships
  • User needs cloud architecture (AWS/GCP/Azure), network topology, or security diagrams
  • User asks to "生成架构图", "画一个系统图", "可视化XXX架构"

Design System

Color Palette

Use these semantic colors for component types:

Component Type Fill (rgba) Stroke
Frontend rgba(8, 51, 68, 0.4) #22d3ee (cyan-400)
Backend rgba(6, 78, 59, 0.4) #34d399 (emerald-400)
Database rgba(76, 29, 149, 0.4) #a78bfa (violet-400)
AWS/Cloud rgba(120, 53, 15, 0.3) #fbbf24 (amber-400)
Security rgba(136, 19, 55, 0.4) #fb7185 (rose-400)
Message Bus rgba(251, 146, 60, 0.3) #fb923c (orange-400)
External/Generic rgba(30, 41, 59, 0.5) #94a3b8 (slate-400)

Typography

Use JetBrains Mono for all text:

\x3Clink href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">

Font sizes: 12px for component names, 9px for sublabels, 8px for annotations, 7px for tiny labels.

Visual Elements

Background: #020617 (slate-950) with subtle grid pattern:

\x3Cpattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse">
  \x3Cpath d="M 40 0 L 0 0 0 40" fill="none" stroke="#1e293b" stroke-width="0.5"/>
\x3C/pattern>

Component boxes: Rounded rectangles (rx="6") with 1.5px stroke, semi-transparent fills.

Security groups: Dashed stroke (stroke-dasharray="4,4"), transparent fill, rose color.

Region boundaries: Larger dashed stroke (stroke-dasharray="8,4"), amber color, rx="12".

Arrows: Use SVG marker for arrowheads:

\x3Cmarker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">
  \x3Cpolygon points="0 0, 10 3.5, 0 7" fill="#64748b" />
\x3C/marker>

Arrow z-order: Draw connection arrows early in the SVG (after the background grid) so they render behind component boxes.

Masking arrows behind transparent fills: Since component boxes use semi-transparent fills, draw an opaque background rect first:

\x3C!-- Opaque background to mask arrows -->
\x3Crect x="X" y="Y" width="W" height="H" rx="6" fill="#0f172a"/>
\x3C!-- Styled component on top -->
\x3Crect x="X" y="Y" width="W" height="H" rx="6" fill="rgba(76, 29, 149, 0.4)" stroke="#a78bfa" stroke-width="1.5"/>

Spacing Rules

  • Standard component height: 60px for services, 80-120px for larger components
  • Minimum vertical gap between components: 40px
  • Place inline connectors (message buses) IN the gap between components, not overlapping

Legend Placement

Place legends OUTSIDE all boundary boxes. Place at least 20px below the lowest boundary. Expand SVG viewBox height if needed.

Layout Structure

  1. Header - Title with pulsing dot indicator, subtitle
  2. Main SVG diagram - Contained in rounded border card
  3. Summary cards - Grid of 3-4 cards below diagram with key details
  4. Footer - Minimal metadata line

Output

Always produce a single self-contained .html file with:

  • Embedded CSS (no external stylesheets except Google Fonts)
  • Inline SVG (no external images)
  • No JavaScript required (pure CSS animations)

Deploy with the deploy tool to a /tmp/xxx/index.html directory.

Example: Component Box

\x3Crect x="100" y="100" width="160" height="70" rx="6" fill="#0f172a"/>
\x3Crect x="100" y="100" width="160" height="70" rx="6"
      fill="rgba(8, 51, 68, 0.4)" stroke="#22d3ee" stroke-width="1.5"/>
\x3Ctext x="180" y="126" fill="white" font-size="11" font-weight="600" text-anchor="middle">Frontend\x3C/text>
\x3Ctext x="180" y="142" fill="#94a3b8" font-size="9" text-anchor="middle">React + TypeScript\x3C/text>
安全使用建议
This skill appears internally consistent and focused on producing a standalone HTML/SVG architecture diagram. Before installing or using it: (1) verify you are comfortable with the agent writing files to local paths (SKILL.md suggests /tmp/xxx/index.html) and ensure the deploy tool it references is the expected platform helper; (2) note the template links to Google Fonts (external network request when the HTML is loaded)—if you require fully offline artifacts, swap the font or embed it; (3) review generated HTML for any sensitive data (domain names, metadata) before sharing or deploying publicly; (4) if you want additional assurance, check the upstream repo referenced in SKILL.md (Cocoon-AI/architecture-diagram-generator) and the MIT license attribution. No environment variables, secrets, installers, or hidden endpoints were found.
功能分析
Type: OpenClaw Skill Name: fmtwiki-architecture-diagram Version: 1.0.0 The skill bundle provides instructions and a template for generating professional architecture diagrams as self-contained HTML files with inline SVGs. No malicious code, data exfiltration, or harmful prompt injection was found; the behavior is entirely consistent with the stated purpose of visualizing technical systems.
能力标签
cryptorequires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
Name/description match the provided SKILL.md and assets: the skill is an instruction-only generator for dark-themed SVG-based architecture HTML files. No unrelated binaries, credentials, or config paths are requested.
Instruction Scope
SKILL.md confines runtime behavior to producing a single self-contained .html file (inline SVG/CSS, no JS) and suggests deploying with a 'deploy' tool to /tmp/xxx/index.html. It references Google Fonts (an external resource) which is consistent with its typography requirement but does cause an external network fetch when the file is opened.
Install Mechanism
There is no install spec and no executable code included (instruction-only plus an HTML template). This minimizes installation risk; nothing is downloaded or extracted by the skill itself.
Credentials
The skill declares no required environment variables, credentials, or config paths and the instructions do not attempt to read secrets or unrelated system data.
Persistence & Privilege
always is false and the skill does not request persistent presence or elevated privileges. The only side-effect is writing a generated HTML file (the SKILL.md recommends /tmp), which is proportional to its purpose.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install fmtwiki-architecture-diagram
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /fmtwiki-architecture-diagram 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Fork of Cocoon-AI architecture-diagram-generator: dark SVG with semantic colors, JetBrains Mono, grid bg, FMTWiki examples
元数据
Slug fmtwiki-architecture-diagram
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Architecture Diagram Generator (FMTWiki Fork) 是什么?

Create professional, dark-themed architecture diagrams as standalone HTML files with inline SVG graphics. Use when the user asks for system architecture diag... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 146 次。

如何安装 Architecture Diagram Generator (FMTWiki Fork)?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install fmtwiki-architecture-diagram」即可一键安装,无需额外配置。

Architecture Diagram Generator (FMTWiki Fork) 是免费的吗?

是的,Architecture Diagram Generator (FMTWiki Fork) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Architecture Diagram Generator (FMTWiki Fork) 支持哪些平台?

Architecture Diagram Generator (FMTWiki Fork) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Architecture Diagram Generator (FMTWiki Fork)?

由 mingyuan(@zmy1006-sudo)开发并维护,当前版本 v1.0.0。

💬 留言讨论