YOGO STUDIOPERSONAL JOURNAL
⌕
← Back to posts
github · 工具软件 · 效率 · Nov 24, 2026

Archify: Let AI Turn Your Codebase into 10 Interactive Diagrams — Hands-On with the 94K-Star Open Source Project

Archify is an open source Skill that lets AI read your codebase and generate 10 types of interactive web diagrams, with nodes linked to source code locations, supporting major editors…

The user wants me to translate a Simplified Chinese Markdown blog post into idiomatic English, preserving all Markdown markers and placeholder tokens exactly.

Let me translate this carefully, maintaining the tone and structure. </think>Taking over an unfamiliar project, the three things you most want to figure out first are: how modules are split, how a request flows through, and how tables connect. You dig through code until your head is spinning, and hand-drawn diagrams can't keep up with code changes.

Archify was built for exactly this: an open-source Skill for coding agents that lets AI read through a codebase and turn its structure into an interactive web diagram you can click, search, and zoom. It supports 10 diagram types and works with agents like Claude Code, Codex, Cursor, and OpenCode. Currently at 94,615 stars.

How to Use It

No commands to memorize, no config to write yourself. Just tell your agent something like "Use Archify to draw the login flow as a sequence diagram," and it will read the source code on its own, note down file paths and line numbers, then generate the diagram.

The 10 diagrams below were all generated from the same real project (RuoYi monolithic edition — 6 modules, 285 Java files, 21 tables). Every node's source location can be traced back to the actual code.

Ten Diagrams, All in One Place

1. Architecture Diagram: 11 nodes string the login flow into a single line — Browser → Shiro Filter Chain → Controller → Realm → Service → Mapper → MySQL — with password validation and async persistence hanging off as side branches. Three cards at the bottom summarize entry rules, module responsibilities, and security checkpoints.

2. Sequence Diagram: A single login laid out over time — 7 participants, 11 messages, from POST /login through subject.login, validate, database lookup, and AuthenticationInfo population, ending with an async write to sys_logininfor. Every step is labeled with the method name called.

3. Data Flow: The same story from a different angle — input, validation, query, session, and audit laid out horizontally across five stages, with each segment showing what form the data takes at that point.

4. Workflow: Five swimlanes — frontend, controller, security layer, service layer, data layer — with 7 nodes showing who does what at each step. Cross-layer arrows are easy to follow at a glance.

5. Lifecycle: How a session moves through six states — unauthenticated, authenticating, logged in, session expired, active logout — plus a branch for lockout after too many wrong passwords. When retries are allowed and when you get kicked back to the login page is spelled out right on the arrows.

6. ERD: Six tables with field types, primary/foreign keys, and one-to-many relationships all on one diagram — sys_user, sys_role, sys_menu, sys_dept, plus two join tables. The permission model laid bare.

7. Class Diagram: 5 classes and 1 interface, method signatures written inside each box, dependencies as dashed lines and implementations as triangle arrows. No more guessing who calls whom.

8. Tree Diagram: 6 Maven modules broken down into key packages — 18 nodes total. The project skeleton fits on one screen, perfect for building a mental map when you first take over.

9. Timeline: Real commits from the repo arranged on a timeline, split into three swimlanes — dependency upgrades, security hardening, and feature adjustments. Much more intuitive than scrolling through git log.

10. Waterfall Diagram: Where the time goes in a single request — 7 segments laid out against a 186ms total, making it clear which parts run in parallel. This one illustrates the timing structure; it's not a load-test result.

Impressions

The most useful thing is that every node on the diagram carries its source location — click it and you know exactly which file and which lines. During code review, you never have to ask "where is this class?" again.

It has its limits, though: no drag-and-drop editing, so if you want to adjust the layout you'll need to modify the structured data and regenerate. And it only guarantees structural accuracy — whether the semantics are right is still something you have to verify yourself.

Comments · 0

Leave a note

No comments yet — be the first.

Your email stays private and is only used for the avatar.

Published Nov 24 ·