Here is an in-depth, technical exploration of tt-a1i/archify, formatted as an engaging engineering blog post!
If you have ever spent two hours tweaking arrows in Miro, fighting with Mermaid.js auto-layout algorithms, or pasting screenshot snippets into PRs that instantly become outdated, raise your hand!
Enter Archify (tt-a1i/archify).
Archify isn’t just another diagram tool or a pretty CSS skin over PlantUML. It is an agentic skill designed specifically for modern AI code assistants (Cursor, Claude Code, Codex CLI, OpenCode) that transforms codebases or prompt-based system descriptions into deterministic, verifiable, interactive, single-file HTML system maps.
Let’s dive deep under the hood to see how Archify works, what architectural magic powers it, and how you can level up your system design workflow!
What Makes Archify Different? (The Architectural Core)
Traditional diagram tools usually fall into two categories:
- Manual Canvas Tools (Figma, Excalidraw, Lucidchart): Beautiful, but non-reproducible, drift out of date instantly, and require tedious manual alignment.
- Text-to-Diagram Converters (Mermaid, PlantUML): Automated and code-driven, but prone to “edge spaghetti” (overlapping arrows), rigid layout engines, and static outputs.
Archify flips the script.
It operates on a Compiler & Intermediate Representation (IR) model where an AI agent acts as the frontend compiler, and Archify acts as the deterministic layout engine and rendering backend.
The 5 Pillars of Archify’s Engineering
1.
Typed JSON IR (Intermediate Representation)
Rather than producing brittle graphical DSLs, your agent converts architectural logic into a strongly typed JSON schema. Whether you’re mapping a microservice topology or an OAuth sequence flow, everything is explicitly structured with components, boundaries, semantic roles, and typed connections.
2.
Atomic Validation Gates & Repair Receipts
Ever had an AI tool generate broken HTML or invalid syntax and fail silently?
Archify enforces a strict fail-closed atomic gate. Before replacing the last known good output, Archify runs checks for:
Schema compliance
Layout overlap and label-to-route clearance
Structural completeness
If validation fails, Archify returns a Machine Repair Receipt containing exact stable rule codes, measured spatial evidence, and valid repair instructions back to the agent so it can correct itself automatically!
3.
Deterministic Engine with Smart Routing
Instead of relying on chaotic force-directed physics layouts, Archify uses deterministic placement rules. It enforces:
- Shared endpoint distribution: Prevents 10 arrows from piling onto a single anchor point on a database node.
- Grid awareness & trust boundaries: Groups components seamlessly into logical zones (e.g., VPC, Private Subnet, Edge Gateway).
4.
Architectural Delta Reviews (Before / Delta / After)
How do you review architecture changes in a Pull Request today? Usually by squinting at text notes!
Archify introduces Architecture Delta:
- Compares
base.jsonandhead.json. - Renders visual diffs showing exact added, removed, changed, moved, and rerouted components.
- Generates a machine-readable receipt for automated CI workflows!
Bash
5.
Provenance & Code Evidence Mapping (SRC n)
When requested, Archify can link architecture diagram nodes directly to Git-verified source code files and line ranges pinned to a specific commit hash (SRC n). Clicking a node in the interactive map opens the exact file location in your repository!
Diagram Types & Visual Presets
Archify doesn’t limit you to a single boxes-and-lines view. It provides 5 specialized diagram types:
| Diagram Type | Primary Use Case | Key Elements |
| Architecture | High-level system structure, cloud setups, VPCs | Services, Databases, Edge Routing, Boundaries |
| Workflow | CI/CD pipelines, runbooks, multi-agent flows | Lanes, Branching paths, Exceptions, Approvals |
| Sequence | Async traces, API calls, Auth handshakes | Timelines, Callers, Callees, Retries |
| Data Flow | Data pipelines, PII tracing, ETL processes | Sources, Transformations, Sinks, Data Privacy Scope |
| Lifecycle | Finite State Machines (FSM), job states | States, Terminal outcomes, Event transitions |
Visual Presets out of the box 
- Signal Flow (Glowing paths & animated traffic motion)
- Blueprint (Technical grid aesthetic)
- Classic (Clean, professional corporate presentation)
- Dark & Light Modes: Toggle with a single click in the output HTML!
Quick Start: Zero to Diagram in 60 Seconds
Ready to test it in your favorite IDE? Here’s how simple it is to get started!
Step 1: Install the Skill
Add Archify globally to your AI coding setup:
Bash
(Works out of the box with Cursor, Claude Code, Codex CLI, and OpenCode!)
Step 2: Prompt Your Agent 
No repo? No problem! Just prompt in your agent chat:
“Use Archify to render a system diagram: Browser -> API Gateway -> Redis Cache -> PostgreSQL fallback with dark mode default.”
Inside a large repository? Ask:
“Analyze this repository, then use archify to create a high-level runtime architecture diagram. Show core components, primary data flow paths, external dependencies, and trust boundaries.”
Step 3: Open & Present! 
Archify generates a zero-dependency self-contained .html file.
Open it in any browser to enjoy:
Interactive Search & Focus
Route Probing: Trace upstream and downstream reach with exact paths.
1200×630 Export Cards: Export canonical PNG share cards for GitHub READMEs, Slack messages, or Twitter/X posts!
Summary: Why Archify Belongs in Your AI Stack
| Feature | Old School Diagrams | Archify |
| Authoring | Manual drag-and-drop | Natural language in Agent Chat |
| Format | Static PNG / SVG | Interactive, Motion-enabled, Portable HTML |
| PR Diffs | “Trust me bro” PR text | Visual Architecture Delta (Before / Delta / After) |
| Verification | Hallucination prone | Deterministic schema & clearance validation gates |
| Code Link | Disconnected | Pinpoint file & line commit references (SRC n) |
If you care about software architecture, agent-first development, and clean developer communication, tt-a1i/archify is a must-have tool in your skill library.
Check out the project on GitHub: https://github.com/tt-a1i/archify
Lets try to use the same in our github copilot setup
Step 1- Install it in your project using the command
npx skills add tt-a1i/archify -g
By default it will install skill globally for github copilot. you can also select additional coding agent to install same skill.
Check if the installation is done properly using the /archify in chat windows.
Now lets creat the sequence diagrame for our back end system using this prompt.
/archify create sequence diagram from @file:backend
















No comments:
Post a Comment