@alin_zone: 发现一个专门给 AI Agent 画技术架构图的 Skill:Archify。 不用学 Mermaid,也不用手动拖框拉线。直接用大白话告诉 Claude Code / Codex: “读一下这几个仓库,帮我画张架构对比图。” 它就会生成…

X AI KOLs Timeline 工具

摘要

Archify is an open-source skill for AI agents like Claude Code and Codex CLI that generates interactive, self-contained HTML architecture diagrams from plain-English descriptions, supporting multiple diagram types and export formats.

发现一个专门给 AI Agent 画技术架构图的 Skill:Archify。 不用学 Mermaid,也不用手动拖框拉线。直接用大白话告诉 Claude Code / Codex: “读一下这几个仓库,帮我画张架构对比图。” 它就会生成一个可交互的单 HTML 文件。 比较讲究的是,它不是画完就交差: 自带 JSON Schema 校验 标签重叠、连线穿过节点会拒绝渲染 报错会告诉你该往哪移、调整多少像素 一键切换深色/浅色主题 支持导出 PNG、JPEG、WebP、SVG、WebM 支持 Claude Code、Codex CLI 和 opencode,MIT 开源。 安装也只要一行: npx skills add tt-a1i/archify -g 以后读陌生仓库、写技术方案、做架构对比,确实能省下不少画图时间。 传送门 https://github.com/tt-a1i/archify
查看原文
查看缓存全文

缓存时间: 2026/07/21 16:45

发现一个专门给 AI Agent 画技术架构图的 Skill:Archify。

不用学 Mermaid,也不用手动拖框拉线。直接用大白话告诉 Claude Code / Codex: “读一下这几个仓库,帮我画张架构对比图。”

它就会生成一个可交互的单 HTML 文件。 比较讲究的是,它不是画完就交差: 自带 JSON Schema 校验 标签重叠、连线穿过节点会拒绝渲染 报错会告诉你该往哪移、调整多少像素 一键切换深色/浅色主题 支持导出 PNG、JPEG、WebP、SVG、WebM

支持 Claude Code、Codex CLI 和 opencode,MIT 开源。 安装也只要一行: npx skills add tt-a1i/archify -g 以后读陌生仓库、写技术方案、做架构对比,确实能省下不少画图时间。 传送门 https://github.com/tt-a1i/archify


tt-a1i/archify

Source: https://github.com/tt-a1i/archify

English · 简体中文

Archify on Trendshift

Archify product preview

Archify

Turn plain-English system descriptions into polished architecture, workflow, sequence, data-flow, and lifecycle diagrams — directly in chat.

Archify is an agent skill for Claude, Codex CLI, and opencode. It produces a self-contained HTML diagram that opens in any modern browser, switches between dark and light themes, supports focused exploration, and exports clean static or motion assets.

  • Five diagram types — architecture, workflow, sequence, data flow, and lifecycle
  • Three visual presets — stable classic, luminous signal-flow, and precise blueprint
  • Explore real topology — find nodes, inspect relationships, trace routes, compare roles, and play guided stories
  • Motion is optional — output stays static unless meta.animation: "trace" is explicitly enabled
  • Portable exports — copy PNG or download PNG, JPEG, WebP, dual-theme SVG, and trace-enabled WebM
  • Typed and checked — JSON IR, bundled schema validation, layout checks, and opt-in quality profiles
  • Self-contained output — one shareable HTML file with no viewer runtime dependency
  • Built for agent workflows — install once, then create and refine diagrams through conversation

License Agent Skill Version

Project page · Scenario guide · Proof Lab

npx skills add tt-a1i/archify -g

Then ask your agent: Use archify to map this repository's runtime architecture.

Interactive demos in 2.11

These are generated Archify artifacts, not product mockups. Click a frame to open its live, shareable state.

Three verified Archify artifacts moving through Signal Flow, Blueprint, and Classic presets
Three real generated artifacts. Signal Flow · Blueprint · Classic · open the interactive Proof Lab ↗

Guided storyRoute probeSemantic lens
Agent workflow playing one authored chapterCache-miss sequence showing the Web App to Postgres routeProduction architecture comparing backend and database roles
Play one finite named chapter.Inspect the shortest authored directed path.Compare real traffic between semantic roles.

The Proof Lab contains all 11 checked-in scenarios, their JSON sources, named views, and validation receipts.

Preview

Same diagram, two themes, one click to switch:

DarkLight
Dark themeLight theme

The Export menu copies PNG to the clipboard and downloads static or motion formats:

Export menu

Open examples/web-app.html locally to try the complete viewer.

Quick start

1. Install

npx skills add tt-a1i/archify -g

To try it without a permanent install:

npx skills use tt-a1i/archify@archify --agent codex

Replace codex with claude-code or opencode when needed. The packaged archify.zip also works without npm install.

2. Ask for one bounded view

Analyze this repository, then use archify to create a high-level runtime architecture diagram.
Show 8–12 core components, one primary path, external dependencies, and trust boundaries.
Put supporting detail in cards instead of adding more edges.

For a focused flow:

Use archify to draw this login flow: Browser -> Web App -> API -> JWT validation ->
Redis session lookup -> PostgreSQL fallback. Keep the cache-miss path secondary.

3. Refine in chat

Continue with focused requests such as add Redis, move auth to the left, or highlight the rollback path. Archify keeps the typed source available for targeted iteration.

Choose the right diagram

TypeBest forInclude in your prompt
ArchitectureComponents, services, storage, boundariesScope, core components, primary path
WorkflowCI/CD, approvals, tool calls, runbooksParticipants, order, branches, exceptions
SequenceAPI calls, cache fallback, auth, async tracesCallers, callees, returns, timing
Data FlowPipelines, lineage, PII, consumersSources, transforms, stores, boundaries
LifecycleStates, retries, waits, terminal outcomesStates, events, retry and cancellation paths

Not sure which one fits? Use the interactive scenario guide, or ask the zero-dependency CLI:

node archify/bin/archify.mjs guide "Show an API request with Redis cache miss"
node archify/bin/archify.mjs guide "Map Kafka topics, consumer groups, replay, and DLQ" --json

Workflow keeps the happy path clear across lanes:

Workflow example

Sequence explains one interaction over time:

Sequence example

Data Flow makes movement and sensitivity boundaries explicit:

Data Flow example

Lifecycle separates progress, waits, retries, and terminal outcomes:

Lifecycle example

Architecture examples: web-app · Archify pipeline · grid placement · desktop agent

Why Archify

  • Layout judgment over generic auto-layout — the agent chooses hierarchy, spacing, routes, and emphasis for the story.
  • Typed JSON IR — every renderer-backed mode has a schema and reproducible source.
  • Validation before delivery — schema, layout, HTML/SVG, route, and optional showcase checks catch broken output.
  • Truthful interaction — focus, routes, role comparison, and stories reuse authored nodes and relationships instead of inventing topology.
  • Portable by default — the result is one HTML file; exports remain full-diagram and free of temporary viewer state.

Archify is not a general-purpose drawing editor or a Mermaid theme. It turns technical intent into a communication artifact.

How it works

StepWhat happens
GenerateThe agent creates typed JSON IR from your description.
ValidateBundled validators and layout rules check the source.
RenderThe selected renderer produces standalone HTML and SVG.
CheckArtifact checks reject malformed geometry and unsafe routes.
IterateThe agent updates the source while unrelated structure stays stable.

Useful repository commands:

cd archify
node bin/archify.mjs doctor
node bin/archify.mjs demo /tmp/archify-demo
node bin/archify.mjs guide "Show CI/CD checks, approval, deploy, and rollback"
node bin/archify.mjs render workflow examples/agent-tool-call.workflow.json /tmp/workflow.html
node bin/archify.mjs validate workflow examples/agent-tool-call.workflow.json --quality showcase --json
node bin/archify.mjs check /tmp/workflow.html

Optional motion and presentation styling are explicit:

{
  "meta": {
    "animation": "trace",
    "visual_preset": "signal-flow"
  }
}

Omit animation for a truly static diagram. classic remains the default visual preset.

Explore and share the output

ActionControl
Open the factual Diagram Guide?
Find and focus a semantic node/
Probe a directed route and inspect its journeyR or PATH
Compare one or two semantic rolesL or LENS
Open the live overview radarM or MAP
Play a guided story / change chapterP / [ ]
Enter Presentation StageF
Toggle theme / open ExportT / E
Zoom or reset+ / - / 0

Stable links can restore #focus=<id>, #relation=<id>, #route=<source>~<target>, #lens=<kind>~<kind>, and #view=<view-id>. Reader-driven motion is finite, respects prefers-reduced-motion, and never enters canonical exports.

The complete generation and viewer contract lives in archify/SKILL.md.

Installation options

SurfaceInstall location or methodCapability
Claude Code~/.claude/skills/ or .claude/skills/Full renderer + validation workflow
Codex CLI~/.agents/skills/ or .agents/skills/Full renderer + validation workflow
opencode~/.config/opencode/skills/, .opencode/skills/, or .agents/skills/Full renderer + validation workflow
Claude.aiUpload archify.zip under Settings → Capabilities → SkillsDepends on Node.js access in the sandbox
Project KnowledgeUpload archify.zip to the projectPrompt-driven architecture fallback

Reference and scope

Archify 2.11 includes typed IR across all five modes, three visual presets, optional finite motion, guided views, semantic exploration, shareable deep links, browser-native WebM recording, and explicit standard / showcase quality profiles.

Automatic Mermaid parsing, general-purpose auto-layout, hosted sharing, and WYSIWYG editing are intentionally outside the current scope.

Attribution

Archify is a fork and rewrite of Cocoon-AI/architecture-diagram-generator v1.0. The original visual language remains credited to Cocoon AI; Archify 2.x adds themes, exports, typed renderers, validation, accessibility, interaction, and a unified CLI. Both projects use the MIT License.

License

MIT — free to use, modify, and distribute.

Contributing

Issues, pull requests, and shared diagrams are welcome. For generated-output problems, include the prompt, diagram type, and Archify version. Run node scripts/build-gallery.mjs after changing bundled examples or the standalone viewer.

相似文章

@GitHub_Daily: 需要跟同事讲解项目系统架构,光说不画图效果有限,自己动手画又费时间还画得不好看。 archify,一个能装进 Claude Code、Codex CLI 和 opencode 的 Agent Skill,把一段大白话描述直接变成一张架构图…

X AI KOLs Timeline

archify 是一个能装进 Claude Code、Codex CLI 和 opencode 的 Agent Skill,可将大白话描述直接生成系统架构图、工作流程图、时序图、数据流向图和生命周期状态图,支持深色/浅色主题切换和多种格式导出。

@XAMTO_AI: 用嘴说出来就能生成架构图?这个工具确实有点东西。 跟Claude说大白话,它直接给你输出架构图、流程图、时序图、数据流图……还支持深色浅色主题一键切换,多种格式导出,一个HTML文件全搞定。 不会画图的程序员有救了,不想画图的程序员也有救…

X AI KOLs Timeline

Archify 是一个 Claude Skill,允许用户用自然语言描述生成架构图、流程图、时序图等,支持深色/浅色主题切换和多格式导出。

@geekbb: 一套让 AI 画出"对且好看"的 draw 架构图的框架加命令行工具。 靠真实 stencil 校验和自动布局,覆盖 AWS/Azure/GCP/Databricks/BPMN,专门治 AI 瞎编图形 ID 画出空白框的毛病。 https…

X AI KOLs Timeline

A framework and CLI tool that enables AI agents to generate structurally precise and aesthetically standardized draw.io diagrams for AWS, Azure, GCP, Databricks, and BPMN architectures, using real stencil validation and automatic layout to prevent hallucinated empty shapes.