# Archify

> An agent skill that turns a description or a codebase into an interactive diagram

- Category: Agents & Automation / Agent Skills & Plugins
- Language: JavaScript
- Licence: MIT
- Repository: https://github.com/tt-a1i/archify
- Website: https://tt-a1i.github.io/archify/
- Canonical page: https://ai-tldr.dev/tools/archify/
- Updated: 2026-09-28

## In short

Archify is a skill for AI coding agents such as Claude Code, Codex CLI, Cursor and OpenCode. It sits in the Agent Skills & Plugins category of the Agents & Automation tools and is open-source, written in JavaScript and licensed MIT. To get started: install the skill.

## Overview

Archify is a skill for AI coding agents such as Claude Code, Codex CLI, Cursor and OpenCode. You describe a system, a plan or a process in chat, or ask the agent to read a repository, and Archify produces an interactive diagram as a single self-contained HTML file. No repository is required: a one-line description like "Browser -> API -> Redis cache -> PostgreSQL fallback" is enough to start, and you keep refining it in chat with requests such as "add Redis" or "highlight the rollback path".

Under the hood the agent writes a typed JSON source for one of five diagram types (Architecture, Workflow, Sequence, Data Flow and Lifecycle), and a bundled zero-dependency Node.js CLI validates and renders it. Schema, layout, HTML/SVG, route and label-clearance checks must pass before a new artifact replaces the previous good one, and failures come back as machine-readable JSON with stable rule codes and the supported repair, so the agent can fix the exact problem instead of guessing.

The generated page is a viewer, not a static picture. Readers can focus a node and trace what sits upstream or downstream of it, probe the route between two nodes, compare semantic roles with a lens, switch dark and light themes, enter a presentation stage, and export PNG, JPEG, WebP or SVG. Stable links restore a focused node, a route or a lens, so a specific view can be shared. Archify is MIT-licensed and written in JavaScript; the README notes it is not a general-purpose drawing editor or a Mermaid theme.

## What it does

- Five diagram types from one skill: Architecture, Workflow, Sequence, Data Flow and Lifecycle
- Source-backed repository maps where evidence-backed nodes open Git-verified files and line ranges pinned to one public commit
- Interactive viewer with node focus, upstream/downstream reach, route probing, role lenses, an overview map and keyboard shortcuts
- Validation before delivery, with JSON diagnostics that name the failing rule, the subject and the supported fix
- Portable output: one standalone HTML file, plus PNG, JPEG, WebP and SVG exports and route or reach share cards
- Architecture Delta compares validated before and after snapshots of a design for review

## Getting started

Install the skill into your coding agent, describe what you want drawn, then refine it in chat. The bundled CLI runs on Node.js 18 or newer.

1. Install the skill

   Install globally with the `skills` CLI. For an explicit, non-interactive Cursor install, or to try it once in Codex without installing, use the longer forms.

```bash
npx skills add tt-a1i/archify -g

# explicit Cursor install
npx -y skills add tt-a1i/archify --skill archify --agent cursor --global --copy --yes

# try without installing
npx skills use tt-a1i/archify@archify --agent codex
```

2. Describe a diagram

   Start from a plain description; no repository is needed.

```text
Use Archify to draw: Browser -> API -> Redis cache -> PostgreSQL fallback.
```

3. Or map a repository

   Open a repository in your agent and ask for a source-backed architecture diagram.

```text
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.
```

4. Refine in chat

   Follow up with focused requests such as `add Redis`, `move auth to the left` or `highlight the rollback path`. Archify keeps the typed source so unrelated structure stays stable between edits.

5. Use the CLI directly

   From the repository, the zero-dependency CLI checks the setup, suggests a diagram type for a scenario, and validates or delivers a JSON source.

```bash
cd archify
node bin/archify.mjs doctor
node bin/archify.mjs guide "Show an API request with Redis cache miss"
node bin/archify.mjs validate workflow examples/agent-tool-call.workflow.json --quality showcase --json
node bin/archify.mjs deliver workflow examples/agent-tool-call.workflow.json /tmp/workflow.html --quality showcase --open --json
```

## When to use it

- Get a source-backed runtime architecture map of an unfamiliar repository before changing it
- Explain a request path, CI/CD pipeline, approval workflow or state machine to a team with one shareable HTML file
- Compare the before and after of an architecture change during design or pull-request review
- Turn a non-technical plan, such as a multi-day travel itinerary or a learning map, into an interactive page

## Version history

- 2026-09-28 v3.0.0: Archify 3.0 redesigned the diagram reader, improved layout and routing for Architecture, Workflow and Sequence diagrams, added Lifecycle v2, and verified the delivered artifact across all five diagram types.
