Create diagrams with your coding agent

Archify is an open-source visual explanation skill for coding agents. Installation examples cover Claude Code, Codex, Cursor, OpenCode, and GitHub Copilot. From a plain-language idea, an everyday plan, a complex topic, a Mermaid draft, or repository evidence, your agent writes typed JSON for one of 10 native diagram types or an .archify.md draft for a one-page explainer. Archify renders a standalone interactive HTML file and checks its structure and layout. Native diagrams get real-browser checks by default. For explainers, enable those checks with --browser-check.

Use it to make anything complex easy to see and explore — travel schedules, apartment-renting checklists, monthly cashflows, science/protocol explainers, workflows, or production system architectures. Start fast in plain words with zero diagram syntax to learn; add repository evidence when you want code-backed diagrams, or ask your agent afterward to extend the standalone HTML.

The generated diagram is a model of the facts its author supplied. Passing its checks does not prove that a running system behaves that way.

What your agent does, and what Archify does

Your agent reads the information you provide, asks about important missing facts, chooses a diagram type, and authors or revises the structured source. For a repository-backed task, the agent also examines relevant code.

Archify turns that source into an HTML artifact and applies its rendering and validation checks. The result retains a structured source you can revise through the agent. Readers can inspect the generated artifact in a browser without installing Archify themselves.

That distinction matters: Archify is not an independent source-code discovery service, a live system monitor, or a hosted team editor. A convincing picture is not evidence for a relationship that was never established.

Ten diagram types, one boundary

Archify supports ten native diagram types. The agent picks the type that fits the question, then writes its typed JSON:

  • architecture — components, responsibilities, and allowed dependencies.
  • workflow — ordered steps, branches, and hand-offs.
  • sequence — messages between participants over time.
  • dataflow — sources, transforms, stores, and sinks.
  • lifecycle — states, transitions, and guards.
  • erd — entities, keys, and relationship cardinality.
  • class — types, fields, methods, inheritance and composition, as in the payment module class diagram.
  • tree — file, organizational, or decision hierarchies, as in the payment platform capability tree.
  • timeline — dated or ordered events and their relationships, as in the payment incident timeline.
  • waterfall — timed spans, overlap, and nesting within a request or agent run, as in the checkout request waterfall.

For new architecture diagrams, the Skill uses layout.mode: "auto" to place components from their relationships while preserving any positions and routes you supply. This setting applies only to architecture diagrams.

Choose the type for the question, not the other way around. A “system overview” is often an architecture diagram; “what happens on a cache miss” is usually a sequence. The scenario guide shows selected starting recipes and does not claim that every type supports every interaction or notation.

Set up your agent

Open the agent-aware quick start. Select the agent you actually use and choose a project-scoped or global installation. The commands below are the same global, copy-based installations offered by Start, not commands for a plain web chat.

What environment does Archify need?

Use a coding-agent environment that can read and write files and execute commands with Node.js. “No repository required” means you can supply a natural-language description without existing source code; the agent still needs a workspace to write JSON and HTML and run the renderer and checks. Viewing the finished HTML only needs a browser.

The installation reference distinguishes these surfaces. Claude Code and Codex CLI support the full renderer and validation workflow. Claude.ai depends on Node.js access in its sandbox. Uploading a ZIP to Project Knowledge is a prompt-driven fallback for architecture diagrams. OpenCode and the community integrations for Hermes Agent and DeepSeek Harness have their own installation instructions.

Install Archify for Claude Code

For a global copied installation, run this in the terminal of the environment where you use Claude Code:

npx -y skills@latest add https://archify.si --skill archify --skill archify-pr --agent claude-code --global --copy --yes

Claude Code uses ~/.claude/skills/ for global skills or .claude/skills/ in the project. For a project-scoped installation instead, choose Claude Code in Start and use “This repository only” from the intended project directory.

Install Archify for Codex CLI

For a global copied installation, run this in the terminal of the environment where you use Codex CLI:

npx -y skills@latest add https://archify.si --skill archify --skill archify-pr --agent codex --global --copy --yes

Codex CLI uses ~/.agents/skills/ for global skills or .agents/skills/ in the project. For a project-scoped installation instead, choose Codex in Start and use “This repository only” from the intended project directory.

After installation, use the description or repository prompt in Start. Installation instructions are not a guarantee that every agent/version combination has been tested. If setup fails, record the agent, its version, your operating system, and the exact error before changing the diagram itself.

You can also paste a single instruction into a configured agent: “Install Archify for me by reading https://raw.githubusercontent.com/tt-a1i/archify/main/llms.txt”. The brief at llms.txt asks the agent to confirm scope, inspect destinations, and run doctor; it should not scan a repository or draw a diagram during installation.

No code repository: read a Chinese workflow diagram

Without a code repository, you can start with steps, allowances, and rules. Open the existing Chinese leave-planning workflow alongside its revision-pinned JSON source. This is a walkthrough of an existing source file, not a fresh agent execution record.

Read the two lanes, “休假计划” (leave plan) and “规则提醒” (rule reminders), separately. The diagram has 8 nodes and 7 relationships; its main path has only 6 nodes, from the opening allowance through four allocations to the final balance. Annual leave is allocated as 1 + 4 + 3 + 2, totaling 10 days. The spring allocation also uses 2 compensatory days, bringing the total to 12. Two branches connect expiry and approval reminders; they are not additional leave deductions.

Review order, allowance, and reminders separately: follow the main path to reconcile the remaining balance, then check whether a branch merely adds a constraint. Do not count a reminder as more leave. These are illustrative rules, not real calendar or company leave-policy advice. The “9/10 consecutive days off” labels are not a real-world guarantee; dates and applicable policies need separate verification.

To start from your own description, open the workflow quick start, provide only confirmed steps and rules, and mark unknown conditions.

Use Mermaid as input, not as a promise of automatic conversion

If you already have a Mermaid diagram, paste its source into your configured coding agent. The agent reads the relationships and authors fresh Archify JSON; Archify then renders and checks that JSON. This is not a Mermaid parser, a theme replacement, or a lossless round-trip converter.

For example, this small flowchart describes four steps and four directed relationships:

flowchart LR
  A[Submit request] --> B[Review request]
  B -->|Approved| C[Proceed]
  B -->|Changes needed| D[Revise request]
  D --> B

Ask your agent:

Use Archify to turn this Mermaid input into an interactive workflow diagram. Preserve the four steps, the Approved and Changes needed branch labels, and the return from Revise request to Review request. Do not invent people, deadlines, or additional steps. If a construct cannot be represented faithfully, explain the limitation before simplifying it.

This is illustrative input, not a recorded conversion or a checked output.

Review meaning before appearance:

  • Does each original step still have the same role?
  • Do both branches retain their labels and destinations?
  • Does revision return to review rather than ending the process?
  • Has anything been omitted, merged, or added?

Keep the original Mermaid alongside the new JSON so you can compare them. Mermaid styling, layout directives, and callbacks should not be assumed to carry over. The pinned Skill describes the supported input families. If your goal is to retain Mermaid syntax and render it directly on a web page, use Mermaid’s own rendering workflow instead.

Try two bounded requests: cache hit and cache miss

A sequence diagram answers “who calls whom, and in what order?” For the workflow described here, make two separate diagrams for these mutually exclusive scenarios rather than putting them on one request timeline. Try this description in your configured agent:

Use Archify to create two separate sequence diagrams: one for a cache hit and one for a cache miss. Both begin with Browser calling API and API checking Redis. On a hit, API returns the cached result to Browser. On a miss, API queries PostgreSQL, writes the result to Redis, and returns it to Browser. Clearly label the scenario each diagram represents. Do not arrange mutually exclusive paths as the chronological steps of one request. Do not add authentication, queues, retries, or measured timings that were not specified. If missing information would materially affect the order, ask me first.

This is illustrative input, not a claim about your application. The existing cache-miss example illustrates a different, miss-only request with additional authentication and trace details. It is not the output of this prompt; do not copy those extra facts into your own system without evidence.

When reviewing your result, check:

  • Are Browser, API, Redis, and PostgreSQL represented with the intended responsibilities?
  • Are there two separately labeled diagrams, with no suggestion that a hit and a miss both execute during the same request?
  • Does the miss path return a response after the database lookup and cache write described in the input?
  • Did the agent introduce any unsupported behavior or timings?

If the diagram is wrong, correct the meaning first. For example: “In our application, cache population is asynchronous. Update that part of the sequence and mark the response timing as unknown until we confirm it.” Only make that correction when it is true for your application.

Map a repository without inventing its architecture

Tell the agent which repository and behavior matter. A focused request is easier to check than “draw everything.”

Read this repository and use Archify to explain the runtime path for [specific request or job]. Identify the components and relationships supported by the code. Distinguish runtime components from build or development tools. Use repository evidence where supported, state which revision you inspected, and mark unknown deployment details rather than inventing them. Keep implementation detail in supporting cards when it does not help explain the primary path.

Before accepting a repository-backed diagram, check:

  • Scope: which request, job, module, or subsystem does it explain?
  • Revision: what repository and commit were inspected?
  • Evidence: which files support each important component and relationship?
  • Boundaries: are external services and ownership or deployment boundaries established, or merely assumed?
  • Completeness: are important failure or return paths missing from the story?
  • Unknowns: are missing facts visible rather than disguised as certainty?

Where an artifact includes verified source links, inspect them. A source link shows where the diagram’s evidence comes from; it does not by itself establish production behavior. Logs, traces, configuration, and human review may still be needed.

For an existing source-backed example, see the MCO runtime architecture and its typed source. The example describes its pinned revision, not the repository’s future state.

Follow the MCO source case: who decodes output and who writes files →

Check the dependencies with Architecture Diagnosis

Architecture Diagnosis is built into the Skill and examines dependencies in the local code. After a repository-backed architecture diagram passes its checks, the agent offers Diagnosis once per repository if it finds eligible source files. The offered analysis starts only after you agree. A standalone architecture diagram with repository metadata also has a Code Analysis button with a prompt you can copy. You can ask directly:

Use archify Code Analysis on this repository: show module coupling, dependency cycles and hotspots.

The result is one offline HTML file with a dependency star map, a rotatable 3D model and ranked findings (cycles, coupling, complexity hotspots, layer-rule breaks). You can inspect captured source evidence and copy fix tasks for your agent. Paired with your architecture diagram, it shows issue counts on components and flags imports it can map unambiguously between components when the diagram omits them. Each run uses one language adapter: JS/TS, Python, Java, Go, Rust, C or C++. Go, Rust and C/C++ need their own tooling. A regular local analysis captures the working tree, including uncommitted code, and reports static evidence. For an offline review of changes, you can also compare two pinned local commits. See the Code Analysis guide.

One diagram, or a one-page explainer?

Use a diagram when the reader needs to see structure. Use a one-page explainer when the reader needs a conclusion, its reasons, and the evidence for each part. An explainer leads with the conclusion, then answers one sub-question per panel using prose, tables, steps, charts, code excerpts from a pinned commit, and validated diagrams. Explainers support numbered source citations and reject blank chart data.

Two recorded examples show the format without implying that they were generated for you:

Explainer mode defaults to proactive. In addition to explicit page requests, the Skill can make a page for a complex flow, diagnosis, comparison, test or review report, or plan that needs tables, steps, or several sections. In your agent’s global rules file, [archify explainer: on-demand] limits pages to explicit requests, and [archify explainer: always-on] adds a compact page of up to four panels to eligible replies that reach a conclusion. Remove the rule to restore the default. A conversation instruction can override the mode. The single HTML file offers four presentation styles, long-image export as PNG, WebP, or JPG, and printing to PDF where supported.

Revise, inspect, and share

Make focused revisions through your agent: explain a missing return, rename a component, or correct a relationship. Preserve facts that have not changed. Ask the agent to rerun the applicable checks and report failures rather than presenting an unchecked revision as complete.

Open the HTML and review both its meaning and readability. Automated checks and a human visual inspection answer different questions. Do not treat one as a substitute for the other.

Share the HTML when readers need its interactions. Use a static image for a document or slide. The native diagram Viewer exports PNG, JPEG, WebP, SVG, and WebM. Availability depends on the format, browser, and local tooling, so check the artifact’s Export menu before choosing a delivery format.

Ask your agent to add a guided Story to any native diagram. Readers can scrub the timeline and read captions. Export → Story video records at 1080p and 60 fps as WebM or MP4. You can also ask for a single interactive stage or video that combines several diagrams.

For a pull request or branch change, ask your agent for a walkthrough that marks changes on the diagram. The default installation includes archify-pr, which offers a diagram while you prepare a PR with material changes. Add [archify pr: on-demand] to your agent’s global rules file to limit it to explicit requests. The agent can attach walkthroughs to GitHub PRs and static views to GitLab MRs, both in light and dark themes.

Before sharing a repository-derived artifact, check its labels, cards, embedded source, and links for information that should not leave your team. A standalone file is portable, not automatically public-safe. The coding agent’s own data handling remains separate from Archify’s artifact format.

Questions people ask

Is Archify an AI image generator?

It produces structured diagrams through an agent-authored JSON and rendering workflow. Use it for explainable parts, relationships, steps, and states, rather than treating it as a general-purpose illustration generator.

Which diagram types are available?

Archify supports architecture, workflow, sequence, dataflow, lifecycle, entity-relationship, class, tree, timeline, and waterfall diagrams. See ten diagram types for what each one is for. The scenario guide explains selected starting recipes; it is not a promise that every mode supports every interaction or notation.

Can I use it for flowcharts or UML?

Workflow mode can describe steps, branches, and participants. Class and sequence modes address particular modeling needs associated with UML. Choose the supported type for your question; do not assume complete UML-standard coverage from the existence of a class or sequence diagram.

Can I start with Mermaid?

Yes. See how to use Mermaid as agent input for a small example, a careful prompt, and the meaning to check before accepting the result.

Is a repository required?

No. A clear description can be enough. A repository becomes useful when the diagram must explain real code and you want inspectable source evidence.

When should I use Architecture Diagnosis vs. PR walkthroughs?

Use Architecture Diagnosis to run static Code Analysis on a repository and inspect dependencies, cycles, and hotspots. Use PR walkthroughs with archify-pr to mark what changed on a diagram for a GitHub PR or GitLab MR.

Is it free, and which Archify is this?

This guide concerns the tt-a1i/archify open-source project, whose official website is archify.si. Its code is Apache-2.0 licensed. Your agent or other services may have their own costs and terms. A similarly named browser extension or paid service is not affiliated with this project. See the tool comparison for when another diagramming tool fits better.

What should I do next?

Use Start for installation, the Scenario Guide to choose a recipe, the Proof Lab to inspect existing artifacts and their evidence, and the comparison page to decide whether Mermaid, Excalidraw, PlantUML, or Archify fits the task.