Agent Skillsmohitagw15856/pm-claude-skills › architecture-diagram

architecture-diagram

GitHub

将系统架构描述转化为结构清晰的 Mermaid 流程图,通过子图区分逻辑层,使用不同箭头样式同步/异步连接,并附带组件说明与风险提示。

exports/openclaw/architecture-diagram/SKILL.md mohitagw15856/pm-claude-skills

Trigger Scenarios

绘制系统架构图 展示组件关系 映射数据流 可视化服务依赖

Install

npx skills add mohitagw15856/pm-claude-skills --skill architecture-diagram -g -y
More Options

Non-standard path

npx skills add https://github.com/mohitagw15856/pm-claude-skills/tree/main/exports/openclaw/architecture-diagram -g -y

Use without installing

npx skills use mohitagw15856/pm-claude-skills@architecture-diagram

指定 Agent (Claude Code)

npx skills add mohitagw15856/pm-claude-skills --skill architecture-diagram -a claude-code -g -y

安装 repo 全部 skill

npx skills add mohitagw15856/pm-claude-skills --all -g -y

预览 repo 内 skill

npx skills add mohitagw15856/pm-claude-skills --list

SKILL.md

Frontmatter
{
    "name": "architecture-diagram",
    "homepage": "https:\/\/mohitagw15856.github.io\/pm-claude-skills\/skill\/architecture-diagram.html",
    "metadata": {
        "openclaw": {
            "emoji": "🖼"
        }
    },
    "description": "Diagram a system or technical architecture — services, data stores, and how they connect. Use when asked to draw an architecture, show how components fit together, map a system\/data flow, or visualize services and dependencies. Produces a ready-to-render Mermaid diagram with grouped subgraphs (renders live, exportable as PNG\/SVG) plus a component legend and notes."
}

Architecture Diagram Skill

"How does the system fit together?" is best answered with a picture. This skill turns a described system into a clean Mermaid architecture diagram — clients, services, data stores, and third parties, grouped into logical layers with labelled connections (sync vs async, protocols) — not an undifferentiated blob of boxes.

Required Inputs

Ask for these only if they aren't already provided:

  • The components — services, apps, databases, queues, external APIs.
  • How they connect — who calls whom; sync (HTTP/gRPC) vs async (queue/event); data flow direction.
  • Logical groupings — frontend / backend / data / third-party, or by team/domain.
  • Focus — the whole system or one slice (e.g. just the checkout path).

Output Format

[System name] — architecture

One line on what the diagram covers and its boundary.

flowchart LR
    subgraph Client
        Web[Web app]
        Mobile[Mobile app]
    end
    subgraph Backend
        API[API gateway]
        Svc[Order service]
    end
    subgraph Data
        DB[(Postgres)]
        Cache[(Redis)]
    end
    Web --> API
    Mobile --> API
    API --> Svc
    Svc --> DB
    Svc -.async.-> Queue[[Event bus]]
    Svc --> Cache

Component legend — one line per non-obvious component (what it is, why it's there).

Notes — trust boundaries, single points of failure, sync vs async (-.-> = async), anything to revisit.

Mermaid Rules (so it renders)

  • Use flowchart LR (or TD) with subgraph Name ... end for logical layers.
  • Databases/stores read well as [(name)]; queues/buses as [[name]].
  • Solid arrows --> for synchronous calls, dotted -.label.-> for async/events.
  • Short node labels; keep IDs unique and simple. No parentheses/quotes inside labels.

Quality Checks

  • Components are grouped into meaningful layers (subgraphs), not one flat pile
  • Connection direction reflects who calls whom; async vs sync is distinguished
  • Data stores and external/third-party systems are visually distinct from services
  • The legend explains anything non-obvious; trust boundaries / SPOFs are noted
  • The Mermaid block renders without edits

Anti-Patterns

  • Do not draw every box the same with undifferentiated arrows — show layers and connection types
  • Do not omit data stores or external dependencies — they're usually where the risk lives
  • Do not blur sync and async — they have very different failure modes
  • Do not cram the entire system when the ask is one slice — match the requested focus
  • Do not break Mermaid with special characters in labels

Based On

Architecture diagramming (C4-style grouping, logical layers, sync/async edges), expressed as renderable Mermaid.

Version History

  • 54fad50 Current 2026-07-19 12:10

Same Skill Collection

exports/openclaw/360-feedback-template/SKILL.md
exports/openclaw/401k-plan-decoder/SKILL.md
exports/openclaw/ab-test-planner/SKILL.md
exports/openclaw/ab-test-readout/SKILL.md
exports/openclaw/accessibility-audit/SKILL.md
exports/openclaw/account-plan/SKILL.md
exports/openclaw/acquirer-red-team/SKILL.md
exports/openclaw/ad-copy/SKILL.md
exports/openclaw/aeo-optimizer/SKILL.md
exports/openclaw/agenda-or-cancel/SKILL.md
exports/openclaw/agent-design-review/SKILL.md
exports/openclaw/agent-hiring-panel/SKILL.md
exports/openclaw/agent-observability-spec/SKILL.md
exports/openclaw/agent-severance/SKILL.md
exports/openclaw/agent-spec/SKILL.md
exports/openclaw/agm-in-a-box/SKILL.md
exports/openclaw/ai-ethics-review/SKILL.md
exports/openclaw/ai-eval-plan/SKILL.md
exports/openclaw/ai-feature-prd/SKILL.md
exports/openclaw/ai-product-canvas/SKILL.md
exports/openclaw/air-quality/SKILL.md
exports/openclaw/altitude-shifter/SKILL.md
exports/openclaw/ambiguity-resolver/SKILL.md
exports/openclaw/analyst-relations-brief/SKILL.md
exports/openclaw/announcement-card/SKILL.md
exports/openclaw/api-docs-writer/SKILL.md
exports/openclaw/api-test-plan/SKILL.md
exports/openclaw/api-versioning-strategy/SKILL.md
exports/openclaw/apology-letter/SKILL.md
exports/openclaw/architecture-decision-record/SKILL.md
exports/openclaw/archive-strategy/SKILL.md
exports/openclaw/assumption-bounty/SKILL.md
exports/openclaw/assumption-mapper/SKILL.md
exports/openclaw/async-update-format/SKILL.md
exports/openclaw/auto-repair-estimate-decoder/SKILL.md
exports/openclaw/autopilot-charter/SKILL.md
exports/openclaw/behavior-intervention-plan/SKILL.md
exports/openclaw/benefits-decoder/SKILL.md
exports/openclaw/bennett-time-audit/SKILL.md
exports/openclaw/bid-tender-review/SKILL.md
exports/openclaw/board-deck-narrative/SKILL.md
exports/openclaw/board-game-designer/SKILL.md
exports/openclaw/board-minutes/SKILL.md
exports/openclaw/board-pre-read/SKILL.md
exports/openclaw/bom-cost-review/SKILL.md
exports/openclaw/bookkeeping-categorization/SKILL.md
exports/openclaw/boolean-search-builder/SKILL.md
exports/openclaw/brag-doc/SKILL.md
exports/openclaw/brainstorming/SKILL.md

Metadata

Files
0
Version
e4def4c
Hash
89c9e733
Indexed
2026-07-19 12:10

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-31 05:11
浙ICP备14020137号-1 $방문자$