Archify

🗒️ tt-a1i/archify — an agent skill that turns a plain-English description of a system or process into a polished, self-contained HTML diagram you can open, theme-toggle, copy, and export at up to 4× resolution. Works in Claude Code, Codex CLI, and opencode. MIT-licensed. Not a drawing editor and not a Mermaid theme — its job is turning technical intent into a communication artifact.

Description

đź§© What it does:

  • Describe, don’t draw — English in, polished technical diagram out; no design skills needed.
  • Five diagram types — architecture, workflow, sequence, data-flow, lifecycle (see table below).
  • Built-in dark/light toggle — one click (shortcut T), persists across sessions.
  • Copy PNG to clipboard — paste straight into Slack / Notion / GitHub (shortcut E for the export menu).
  • Ultra-crisp export — PNG / JPEG / WebP rendered natively at up to 4Ă— source resolution (no upsampling blur), or SVG for true vector.
  • Theme-following SVG — exported SVGs ship both variable sets + @media (prefers-color-scheme), so one SVG in a GitHub README follows the reader’s system theme (no more two PNGs in a <picture>).
  • Semantic tech labels — call a node aws.lambda, postgres, redis, github-actions, openai; Archify maps it to the right visual category without a full icon library.
  • Self-contained HTML — zero dependencies; share by sending the file.
  • Iterate by chat — “add Redis”, “move auth to the left”, “highlight the rollback path” while the source JSON stays in session.

Download or use

npx skills add tt-a1i/archify -g

Installs across supported agents through the open-source skills CLI (vercel-labs/skills). Try without a permanent install:

npx skills use tt-a1i/archify@archify --agent codex   # or claude-code / opencode

Then: Use archify to map this repository's runtime architecture. Manual install = unzip archify.zip into the agent’s skills dir (~/.claude/skills/, ~/.agents/skills/, ~/.config/opencode/skills/); no npm install needed.

Reasoning for

Fills the diagram / design blind spot of a coding agent (cf. Extending Claude Code — Tools for Its Blind Spots): instead of hand-editing SVG or fighting generic auto-layout, the agent emits a typed JSON IR and a renderer produces a clean, portable artifact. Use it to:

  • Turn a repo analysis into a high-level runtime architecture (8–12 core components, one primary path, external deps, trust boundaries — detail in cards, not more edges).
  • Draw a CI/CD workflow with a clear happy path and restrained failure/rollback branches.
  • Document a data-flow / lineage view with an explicit PII boundary.
  • Ship a theme-aware SVG into a README so it follows the reader’s light/dark preference.

Diagram types

TypeBest forPrompt with
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, downstream consumersSources, transforms, stores, boundaries
LifecycleState machines, retries, waits, terminal statesStates, events, retry/cancel paths

How it works

Renderer-backed diagrams run a small, inspectable loop — the same one the packaged CLI exposes (node bin/archify.mjs render|validate|check):

StepWhat happens
Generate JSON IRAgent writes a typed description instead of hand-editing final SVG.
ValidateBundled standalone validators check the schema, no runtime deps.
RenderSelected renderer produces the HTML/SVG artifact.
CheckLayout + artifact checks catch bad coordinates, malformed SVG, unsafe routes.
IterateTargeted JSON edits applied while unrelated structure stays stable.

Optional "animation": "trace" in meta adds a demo animation that respects prefers-reduced-motion. As of writing, Archify 2.10 uses typed JSON IR across all five modes.

Preview

Same diagram, two themes, one click to switch:

DarkLight

Alternatives considered

  • Mermaid — text-to-diagram, but generic auto-layout and limited emphasis control; Archify explicitly is not a Mermaid theme and chooses hierarchy/spacing/routes for the story.
  • Excalidraw — great for hand-drawn manual diagramming, but you draw it yourself; Archify generates from a description.
  • Generic auto-layout / WYSIWYG editors — Archify’s roadmap deliberately excludes Mermaid parsing, generic auto-layout, hosted sharing, and a WYSIWYG editor.

Archify is a fork/rewrite of Cocoon-AI/architecture-diagram-generator v1.0; the original visual language is credited there. Both MIT.

Resources


Template: tool