Create diagrams with your coding agent
Archify is an open-source visual explanation skill for coding agents including 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 across 10 native diagram types or an .archify.md one-page explainer; Archify renders a polished, standalone interactive HTML file and runs structure/layout validation (with default real-browser checks for native diagrams; opt-in via --browser-check for explainers).
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.
- tree — file, organizational, or decision hierarchies.
- timeline — dated or ordered events and their relationships.
- waterfall — staged totals, contributions, and deltas.
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, not the same execution environment. Other integrations have their own requirements.
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
A diagram shows the architecture you described; Architecture Diagnosis shows how the code actually depends on itself. It is built into the Skill. After a repository-backed architecture diagram passes its checks, the agent’s summary ends with what Diagnosis can do, and it runs only if you say yes. You can also ask directly:
Use archify Code Analysis on this repository: show module coupling, dependency cycles and hotspots.
The result is one offline HTML file: a dependency star map, a rotatable 3D model and ranked findings (cycles, coupling, complexity hotspots, layer-rule breaks), each linked to its source with a fix task you can hand back to the agent. Paired with your architecture diagram, every component shows its issue count, and imports the diagram does not show are flagged. JS/TS, Python, Java, Go, Rust, C and C++ are supported; Go, Rust and C/C++ need their own toolchains. Findings come from static analysis of one pinned revision, not from runtime traces. 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 an argument: 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. Claims cite numbered sources, and blank chart data is rejected rather than drawn as zero.
Two recorded examples show the format without implying that they were generated for you:
- What happens on a first TLS visit walks through a protocol sequence panel by panel.
- Why P99 latency spikes turns a routine performance question into a conclusion-first investigation.
Explainer mode defaults to proactive: in addition to explicit page requests, the Skill can create a page unasked for a complex flow, diagnosis, trade-off comparison, or review report. Add [archify explainer: on-demand] to your agent rules file when you want pages created only on explicit request. The artifact is still a single HTML file; readers can switch among four presentation styles and export a long image or PDF where the environment supports it.
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 an image export when a document or slide needs a static view. Archify documents PNG, JPEG, WebP, SVG, and WebM exports, and a diagram with an attached story adds a 1080p Story video (WebM or MP4); availability depends on the format, browser, and local tooling. Inspect the actual artifact’s export menu before committing to a delivery format. An exported image does not preserve the HTML’s interactive controls.
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.
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.