Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问clear审计异常

adr-graph-easy-architectadr 图简单架构师

Agent Skill

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

总安装

2,147

周安装

86

GitHub Stars

38

下载量

695
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/terrylica/cc-skills --skill adr-graph-easy-architect

简介

adr-graph-easy-architect 用于为架构决策记录(ADR)生成基于 graph-easy 的 ASCII 架构图,纯文本输出无需图像渲染。

  • 适用于编写新 ADR、描述迁移或集成变更、请求决策可视化或审查现有图表的场景。
  • 需确保 graph-easy 已安装并运行,通过 npx 命令从指定仓库安装并使用。
  • 使用前请确认是否涉及联网、文件读写或命令执行,并注意权限与维护状态。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

ADR Graph-Easy Architect

Create comprehensive ASCII architecture diagrams for Architecture Decision Records (ADRs) using graph-easy. Pure text output with automatic layout - no image rendering required.

Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

When to Use This Skill

  • Writing new ADR that involves architectural changes
  • ADR describes migration, integration, or system changes
  • User asks for visual representation of a decision
  • Existing ADR diagram needs review or update

Preflight Check

Ensure graph-easy is installed and functional before rendering diagrams.

Full setup instructions: Preflight Setup

Quick verify:

echo "[Test] -> [OK]" | graph-easy --as=boxart &>/dev/null && echo "✓ graph-easy ready"

DSL Quick Reference

Full syntax with examples, node styling, edge styles, and emoji rules: DSL Syntax Reference

Essential Syntax

[Node]                          # Node
[A] -> [B]                      # Edge
[A] -- label --> [B]            # Labeled edge
[A] <-> [B]                     # Bidirectional
( Group: [Node A] [Node B] )    # Group/container
[id] { label: "Display"; }     # Custom label

Flow Direction (MANDATORY)

graph { flow: south; }   # Top-to-bottom (architecture, decisions)
graph { flow: east; }    # Left-to-right (pipelines, sequences)

Graph Label (MANDATORY: EVERY diagram MUST have emoji + title)

WARNING: This is the most commonly forgotten requirement. Diagrams without labels are invalid.

Correct:

graph { label: "🔄 Database Migration"; flow: south; }
[Old DB] -> [New DB]

Anti-Pattern (INVALID):

graph { flow: south; }
[Old DB] -> [New DB]

Missing label: with emoji. The preflight validator will BLOCK any ADR containing diagrams without graph {label: "emoji...";}.

Emoji Selection (for graph labels ONLY - never inside nodes)

Diagram TypeEmojiDiagram TypeEmoji
Migration/Change🔄Architecture🏗️
Deployment/Release🚀Network/API🌐
Data Flow📊Storage/Database💾
Security/Auth🔐Monitoring📡
Error/Failure⚠️Hook/Event🪝
Decision/Branch🔀Before/After⏮️/⏭️

Node & Edge Styling Summary

StyleSyntaxUse For
Rounded corners{shape: rounded;}Start/end nodes
Double border{border: double;}Critical/emphasis
Bold border{border: bold;}Important nodes
Dotted border{border: dotted;}Optional/skippable
Solid arrow->Main/happy path
Dotted arrow..>Conditional/alternate
Bold arrow==>Emphasized/critical
Labeled edge-- label -->Annotated connections

Character Safety

  • Graphical emojis INSIDE nodes: NEVER (breaks box alignment)
  • Unicode symbols inside nodes (checkmark, cross, warning): OK (single-width)
  • ASCII markers inside nodes ([x] [+] [!]): ALWAYS safe
  • Graphical emojis in graph {label:}: OK

Full symbol reference: Monospace-Safe Symbols


Common Diagram Patterns

Migration (Before -> After)

graph { flow: south; }
[Before] -- migrate --> [After]

Multi-Component System

graph { flow: south; }
[A] -> [B] -> [C]
[B] -> [D]

Pipeline (Left-to-Right)

graph { flow: east; }
[Input] -> [Process] -> [Output]

Decision with Options

graph { flow: south; }
[Decision] -> [Option A]
[Decision] -> [Option B]

Grouped Components

( Group:
  [Component 1]
  [Component 2]
)
[External] -> [Component 1]

Bidirectional Flow

[Client] <-> [Server]
[Server] -> [Database]

More patterns by ADR type: Diagram Examples


Rendering

Command (MANDATORY: Always use boxart)

graph-easy --as=boxart << 'EOF'
graph { flow: south; }
[A] -> [B] -> [C]
EOF

Never use --as=ascii - it produces ugly +--+ boxes instead of clean ┌──┐ lines.

Validation Workflow

# 1. Write DSL to heredoc
# 2. Render with boxart
# 3. Review output
# 4. Iterate if needed
# 5. Copy final ASCII to ADR

Embedding in ADR

Every rendered diagram MUST include a collapsible <details> block with graph-easy source. Full format guide and GFM syntax rules: ADR Embedding Guide

Required format:

┌───────┐ ┌──────┐ │ Build │ --> │ Test │ └───────┘ └──────┘


<details>
<summary>graph-easy source</summary>

graph { label: "🚀 Pipeline"; flow: east; } [Build] -> [Test]


</details>

The <details> block is MANDATORY - never embed a diagram without its source.


Mandatory Checklist (Before Rendering)

Graph-Level (MUST have)

  • graph {label: "🚀 Title";} - semantic emoji + title (MOST FORGOTTEN - check first!)
  • graph {flow: south;} or graph {flow: east;} - explicit direction
  • Command uses --as=boxart - NEVER --as=ascii

Embedding (MUST have - non-negotiable)

  • <details> block with source - EVERY diagram MUST have collapsible source code block
  • Format: rendered diagram in ``` ` `` block, followed by <details><summary>graph-easy source</summary>` with source
  • Never commit a diagram without its reproducible source

Node Styling (Visual hierarchy)

  • Start/end nodes: {shape: rounded;} - entry/exit points
  • Critical/important nodes: {border: double;} or {border: bold;}
  • Optional/skippable nodes: {border: dotted;}
  • Long labels use \n for multiline - max ~15 chars per line

Edge Styling (Semantic meaning)

  • Main/happy path: -> solid arrow
  • Conditional/alternate: ..> dotted arrow
  • Emphasized/critical: ==> bold arrow
  • Edge labels are SHORT (1-3 words): -- YES -->, -- error -->

Character Safety (Alignment)

  • NO graphical emojis inside nodes (break alignment)
  • Unicode symbols OK inside nodes (single-width)
  • ASCII markers ALWAYS safe ([x] [+] [!] [OK])
  • Graphical emojis ONLY in graph {label: "...";} title

Structure (Organization)

  • Groups (Name:...) used for logical clustering when 4+ related nodes
  • Node IDs short, labels descriptive: [db] {label: "PostgreSQL";}
  • No more than 7-10 nodes per diagram (split if larger)

Success Criteria

Correctness

  1. Parses without error - graph-easy accepts the DSL
  2. Renders cleanly - no misaligned boxes or broken lines
  3. Matches content - all key elements from description represented
  4. Source preserved (MANDATORY) - EVERY diagram has <details> block with source

Aesthetics

  1. Uses boxart - clean Unicode lines, not ASCII +--+
  2. Visual hierarchy - start/end rounded, important bold/double, optional dotted
  3. Consistent styling - same border style = same semantic meaning throughout
  4. Readable labels - multiline with \n, no truncation
  5. Clear flow - direction matches natural reading (top-down or left-right)

Comprehensiveness

  1. Semantic emoji in title - emoji chosen to match diagram purpose
  2. Legend if needed - multiline title with \n for complex diagrams
  3. Edge semantics - solid=normal, dotted=conditional, bold=critical
  4. Logical grouping - related nodes in (Group:...) containers

Troubleshooting

IssueCauseSolution
command not foundgraph-easy not installedRun preflight check
Misaligned boxesUsed --as=asciiAlways use --as=boxart
Box border brokenGraphical emoji in nodeRemove emojis from nodes, use ASCII markers
Nodes overlapToo complexSplit into multiple diagrams (max 7-10 nodes)
Edge labels cut offLabel too longShorten to 1-3 words
No title showingWrong syntaxUse graph {label: "Title"; flow: south;}
Weird layoutNo flow directionAdd graph {flow: south;} or flow: east
Parse errorSpecial chars in nodeEscape or simplify node names

Resources

Post-Execution Reflection

After this skill completes, check before closing:

  1. Did the command succeed? — If not, fix the instruction or error table that caused the failure.
  2. Did parameters or output change? — If the underlying tool's interface drifted, update Usage examples and Parameters table to match.
  3. Was a workaround needed? — If you had to improvise (different flags, extra steps), update this SKILL.md so the next invocation doesn't need the same workaround.

Only update if the issue is real and reproducible — not speculative.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

29.73%
按下载量换算207

OpenCode

22.39%
按下载量换算156

Antigravity

19.73%
按下载量换算137

Gemini CLI

14.15%
按下载量换算98

windsurf

8.76%
按下载量换算61

trae

4.23%
按下载量换算29

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills