Archify: AI Architecture Diagram Generator in Chat
Reach for Archify if you live inside an AI agent (Claude, Codex, opencode) and want architecture or workflow diagrams without opening a drawing tool โ you describe the system, it returns a shareable HTML file you can theme and export at up to 4x. Skip it if you don't use a supported agent, or you want pixel-level manual control over layout, since you're steering an LLM through JSON rather than dragging boxes.
Diagrams That Rot the Moment the System Changes
Keeping architecture diagrams current is the chore nobody wants: you open draw.io or write Mermaid, hand-place the boxes, then redo it every time the system changes. Whiteboard photos rot immediately, and a Mermaid graph in a README ships one theme while your reader may be viewing in the other. Archify exists to cut out the manual drawing โ you describe the system to an agent you already use and get a diagram back.
One Prompt, a Self-Contained HTML Diagram
Archify is an AI architecture diagram generator packaged as an agent skill for Claude, Codex CLI, and opencode. You describe a system in plain English and it generates a single self-contained HTML file โ no dependencies, no install โ with a built-in dark/light theme toggle. It also draws workflow, sequence, data-flow, and lifecycle diagrams from a typed JSON representation. It's MIT-licensed, currently at version 2.10.
Five Diagram Types, One Theme-Aware SVG Export
- โFive diagram types from one skill: architecture, workflow, sequence, data-flow, and lifecycle/state-machine diagrams
- โOutput is a single self-contained HTML file with zero dependencies โ open it in any browser and share by sending the file
- โOne-click dark/light theme toggle (keyboard T) that persists across sessions
- โRaster export to PNG, JPEG, or WebP rendered natively at up to 4x resolution, plus SVG โ or Copy PNG straight to the clipboard
- โSVG export ships both themes with a @media (prefers-color-scheme) rule, so one file in a GitHub README follows each reader's color preference
- โRenderer-backed diagrams run through JSON-schema and layout validation plus a post-render artifact check before delivery
- โSemantic tech labels like aws.lambda, postgres, or redis map to visual categories without needing a full icon library
From a Description to a Diagram You Can Export
After installing, prompt your agent with something like `Use archify to draw an architecture diagram: React frontend calls a Node API backed by Postgres and Redis`. It returns a self-contained HTML file; open it, press T to toggle theme or E for the export menu, then save as PNG, JPEG, WebP, or SVG. Refine by chat โ `add Redis`, `move auth to the left`, `highlight the rollback path` โ and it edits the underlying JSON instead of regenerating from scratch. A bundled CLI (`bin/archify.mjs`) can render, validate, and check diagrams directly.
Adding Archify to Claude, Codex, or opencode
Install globally with one command: `npx skills add tt-a1i/archify -g`, then pick your agent (Claude Code, Codex CLI, or opencode) when prompted. To try it without a permanent install, `npx skills use tt-a1i/archify@archify --agent codex` starts a temporary copy. You can also unzip the packaged `archify.zip` into your agent's skills directory, or upload it under Settings -> Capabilities -> Skills on Claude.ai. It bundles standalone validators, so there's no `npm install` step.
Documenting Architecture, Sequences, and Data Flow
- โขDocumenting a repo's runtime architecture by asking an agent to analyze the code and diagram its components, data flow, and trust boundaries
- โขDrawing a CI/CD or approval workflow with a clear happy path plus exception and async lanes
- โขExplaining a request path as a sequence diagram โ for example a cache miss falling back from Redis to Postgres
- โขMapping a data pipeline with PII boundaries, or a task/order state machine, then iterating by chat
- โขDropping a theme-aware SVG into a GitHub README so it matches dark-mode and light-mode readers
A Mermaid Alternative for the Two-Theme README
Agent skills are the current way to add capabilities to Claude and other coding agents, and diagramming is an obvious fit โ the model already reads your codebase, so letting it draw the architecture is a small step. Archify installs with one `npx skills add` command, works across Claude, Codex CLI, and opencode, and pitches itself as a Mermaid alternative that solves the two-theme README problem.
Editing a Diagram by Chat Instead of Dragging Boxes
- โDiagrams live as plain-English prompts, so updating one means asking for the change instead of re-dragging boxes
- โThe output HTML is self-contained with no dependencies โ easy to share, embed, or commit to a repo
- โThe dual-theme SVG genuinely replaces the two-PNGs-in-a-picture-tag hack for README diagrams
- โRenderer-backed types get schema and layout validation, which catches malformed output before you see it
- โOne skill works across Claude, Codex CLI, and opencode rather than locking you to a single agent
A Young, Single-Maintainer Project
- โณIt's a young, single-maintainer project โ fine for personal docs, but weigh that before making it core to a team's workflow
- โณIt's an agent skill, not a standalone app: you need Claude, Codex CLI, or opencode to run it, and diagram quality depends on how well the model interprets your description
- โณBecause you steer an LLM through a JSON representation, complex or unusual layouts can take several chat iterations to get right, and there's no direct drag-to-position control
- โณRaster exports fall back to a system monospace font unless you install JetBrains Mono locally, and WebP plus clipboard export depend on your browser's support
- โณThe Project Knowledge install surface on Claude.ai only does architecture mode with no code execution, per the README
Mermaid, draw.io, and Excalidraw
For Agent Users Tired of Two-Theme Diagrams
Developers and teams who already work inside Claude, Codex CLI, or opencode and want architecture, workflow, or sequence diagrams as a byproduct of chatting with their agent โ especially anyone tired of maintaining two-theme diagrams in a README. If you don't use a supported agent, or you need precise manual control over every box and line, a direct tool like draw.io or Excalidraw will fit better.
Archify FAQ
Archify is an AI architecture diagram generator built as an agent skill for Claude, Codex CLI, and opencode. You describe a system in plain English and it returns a self-contained HTML diagram with a dark/light toggle and PNG/JPEG/WebP/SVG export.
It's positioned as one โ the repo is tagged mermaid-alternative and accepts Mermaid-style input guidance. The main difference is that you describe the diagram to an agent in plain English, and the SVG export is theme-aware, so a single file follows a reader's dark or light preference.
No. You install it with one `npx skills add` command and then prompt your agent in plain English. It bundles standalone validators, so there's no `npm install` or runtime dependency to set up. A CLI is available if you'd rather render or validate diagrams directly.
It works with Claude (Claude Code and the desktop app via zip upload), Codex CLI, and opencode. It produces five diagram types: architecture, workflow, sequence, data-flow, and lifecycle/state-machine.
Yes. Its SVG export bundles both themes plus a @media (prefers-color-scheme) rule, so a single .svg dropped into a GitHub README follows each reader's system preference without needing two separate images.
Related repositories
Curious whether archify is right for you?
Let ChatGPT, Claude, or Perplexity look into it โ click below and see what AI actually says about archify.
