← All guides
· 7 min read

Archify: Turn Your Codebase into an Interactive Diagram

Install Archify, the free agent skill, and have Claude Code, Codex, Cursor or OpenCode map your repo as an interactive HTML diagram. 10 minutes.

Archify: map your whole codebase

Opening a new codebase is mostly guessing which file talks to which. Archify has your coding agent read the repo and draw it as an interactive diagram you can click through and trace. This guide gets you from nothing installed to your first map.

It takes about 10 minutes. You need Node.js 18 or newer and a coding agent: Claude Code, Codex CLI, Cursor or OpenCode.

What you’re building

Archify is a free, open-source agent skill (MIT license, 85k+ GitHub stars). A “skill” is a folder of instructions and scripts your coding agent loads when a task needs it. Archify teaches the agent how to turn code, or a plain description, into a diagram.

You: "Analyze this repo, use archify"  →  agent reads the code  →  one HTML file you open in a browser

The result is a single self-contained HTML file. You open it in any browser, and you can send it to a teammate: the interactions travel with the file, and they don’t need Archify installed to view it.

Dark architecture diagram titled MCO Runtime Architecture: callers flow through entry surfaces, a command router, execution policy and provider adapters, with session state and output consumers below
A map Archify generated from the public mco-org/mco repository. Source: Archify repo.

Before you start: the honest catch

  • It runs inside a coding agent. Archify isn’t an app you open on its own. Without Claude Code, Codex, Cursor or OpenCode set up, there’s nothing to run it.
  • The agent does the work, so it uses your agent’s tokens. Archify itself is free; reading a big repo costs whatever your agent plan or API usage costs.
  • It draws what the agent wrote down. The README says the interactive views reuse the nodes and connections in the diagram “instead of inventing topology or claiming runtime impact”. Treat the map as a guided summary of the code and check anything important against the source.
  • Watch out for look-alikes. Salah-XD/archify is a different browser extension. The one in this guide is tt-a1i/archify, and its official site is archify.si.

Step 1: Check Node.js

The installer runs through npx, which comes with Node.js. Archify needs Node 18 or newer.

node --version

If it prints v18 or higher, you’re set. If not, install the LTS version from nodejs.org.

Step 2: Install the skill

Run the install command from the README:

npx skills add tt-a1i/archify -g

The -g flag installs it globally, so every project can use it. For Claude Code, the README lists the skill location as ~/.claude/skills/ (or .claude/skills/ for one project). Codex uses ~/.agents/skills/.

Cursor users who want a non-interactive install can use the README’s explicit command:

npx -y skills add tt-a1i/archify --skill archify --agent cursor --global --copy --yes

To check it worked in Claude Code, look for the folder:

ls ~/.claude/skills/archify

Restart your agent after installing so it picks up the new skill.

Step 3: Draw something small first

Before pointing it at a real repo, give it a one-line description. No repository is needed for this. Send this to your agent:

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

The agent writes the diagram, runs Archify’s checks, and saves the HTML. By default it goes in a new folder under .archify/ in your current directory. Open the .html file in your browser. If you see boxes and arrows you can click, the skill works.

Step 4: Map your own repository

Open your project in the agent and send the prompt the README recommends:

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.

Keep the component limit in the prompt. Without it, a big repo turns into a wall of boxes.

When it finishes, the agent tells you where the HTML file is. Open it.

Step 5: Explore the map

Click any box to see what it connects to. Then try the keyboard shortcuts from the README:

KeyWhat it does
/Find a component by name
RTrace a path from one component to another
LCompare one or two roles, such as backend vs database
MOpen the overview map
TSwitch light / dark theme
EOpen the Export menu
?Open the diagram guide

The most useful one on a new codebase: focus a component, then press Downstream to light up everything that depends on it.

Agent Tool Call Workflow diagram with the Agent Planner node focused and a side panel showing 2 upstream and 8 downstream connections
Focus a step, then trace everything downstream of it. Source: Archify repo.

Path tracing answers “how does a request get from here to there?”:

Cache Miss Request Sequence with the path Web App to API to Postgres highlighted and the other steps dimmed
The route from the web app to the database, everything else faded out. Source: Archify repo.

Step 6: Change it and share it

You don’t edit the diagram by hand. Ask the agent in the same chat, for example:

Highlight the rollback path
Move auth to the left

To share, send the HTML file itself, or press E and export an image. The Export menu offers PNG, JPEG, WebP and SVG, and can copy a PNG to your clipboard.

Sample Web App diagram with the Export menu open, listing Copy diagram, PNG, JPEG, WebP, SVG Auto, Light and Dark, and WebM
The Export menu. Source: Archify repo.

Troubleshooting

npx: command not found

Node.js isn’t installed or isn’t on your PATH. Install it from nodejs.org, open a new terminal, and run node --version again.

The agent doesn’t use Archify

Restart the agent so it reloads its skills, and say “use archify” in the prompt. In Claude Code, check that ~/.claude/skills/archify exists.

The diagram is too crowded

Ask for fewer components (“show 8 core components only”) or a smaller scope, such as one service or one request path, instead of the whole repo.

What else you can do with it

  • Besides architecture, the README lists workflow, sequence, data flow, lifecycle, ERD (database tables), class, tree, timeline and waterfall diagrams.
  • Ask “Use Archify to answer as one page: …” and it builds an explainer page with the conclusion first, then panels with tables, steps and diagrams.
  • It works from plain descriptions too, so you can map a plan, a process or a learning path.

Live examples: archify.si/gallery.html.

Quick recap

  1. Check you have Node.js 18+ with node --version.
  2. Install with npx skills add tt-a1i/archify -g and restart your agent.
  3. Test it: “Use Archify to draw: Browser -> API -> Redis cache -> PostgreSQL fallback.”
  4. In your project: “Analyze this repository, then use archify to create a high-level runtime architecture diagram.”
  5. Open the HTML file, click a component, and trace its downstream reach.