กลับไปหน้า Tools

GetNotes Tools

tt-a1i/archify

Tool นี้คืออะไร

Archify เป็นเครื่องมือ Node.js ที่ช่วยให้นักพัฒนาและสถาปนิกระบบสามารถแปลงโค้ดเบสหรือคำอธิบายระบบให้เป็นแผนผังระบบแบบโต้ตอบที่สวยงามได้โดยตรงในแชท เหมาะสำหรับผู้ที่ต้องการสร้าง, ตรวจสอบ, และนำเสนอการเปลี่ยนแปลงสถาปัตยกรรมระบบได้อย่างมีประสิทธิภาพและเข้าใจง่าย

ข้อมูลโปรเจกต์

ดาว

64.3K

Forks

4.3K

License

MIT

อัปเดต GitHub ล่าสุด

16 ก.ย. 2569

เพิ่มใน GetNotes

16 ก.ย. 2569

Repository

tt-a1i/archify

เหมาะกับงาน

AutomationCoding Agentsข้อมูลและ AnalyticsDeveloper Tools

เหมาะกับอาชีพ

Ecosystem

JavaScript

แปลและเรียบเรียงโดย AI

เนื้อหาฉบับภาษาไทย

ใช้อ่านเพื่อทำความเข้าใจเบื้องต้น โปรดตรวจสอบรายละเอียดสำคัญกับเอกสารต้นฉบับด้านล่าง

Archify on Trendshift

Archify product preview

Archify

เปลี่ยนโค้ดเบสหรือคำอธิบายระบบให้เป็นแผนผังระบบแบบโต้ตอบที่สวยงาม — โดยตรงในแชท

Archify คือระบบเรนเดอร์และตรวจสอบ Node.js สำหรับ Cursor, Claude Code, Codex CLI และ OpenCode เอเจนต์จะสร้าง Typed JSON IR; Archify จะคอมไพล์เป็น HTML/SVG อย่างแม่นยำ

  • เปิดและนำเสนอ — แผนภาพห้าประเภท, สี่พรีเซ็ต, ธีมมืด/สว่าง, แบรนด์มาร์กในตัว และการเคลื่อนไหวที่จำกัด
  • ตรวจสอบการเปลี่ยนแปลงสถาปัตยกรรมก่อนการรวมโค้ด — เปรียบเทียบสแนปช็อตที่ผ่านการตรวจสอบสองรายการเป็น Before / Delta / After พร้อมข้อเท็จจริงที่เพิ่ม, ลบ, เปลี่ยนแปลง, ย้าย และเปลี่ยนเส้นทางอย่างแม่นยำ
  • ทุกการโต้ตอบยังคงมีพื้นฐาน — ค้นหาโหนด, เลือกเปิดแหล่งที่มาที่ผ่านการตรวจสอบการแก้ไข, ติดตามการเข้าถึงที่เขียนขึ้นต้นน้ำ/ปลายน้ำและเส้นทางที่แน่นอน, เปรียบเทียบบทบาท และเล่นเรื่องราวที่แนะนำโดยไม่ต้องสร้างโทโพโลยี
  • ไฟล์เดียว, พร้อมเชื่อถือและแบ่งปัน — Typed JSON IR และการตรวจสอบที่แม่นยำจะสร้าง HTML ที่รวมอยู่ในตัวเอง พร้อมด้วย PNG, SVG, WebM และการ์ดแชร์ขนาด 1200×630

License Agent Skill Development Version

เวอร์ชันการพัฒนาปัจจุบัน: v2.17.0-dev.1 ดู Changelog

หน้าโปรเจกต์ · คู่มือสถานการณ์ · Proof Lab

bash
npx skills add tt-a1i/archify -g

ใช้ Cursor อยู่ใช่ไหม? เปิด agent-aware quick start สำหรับคำสั่ง global และ project ที่แน่นอน

ไม่จำเป็นต้องมี Repository: อธิบายระบบในแชทของเอเจนต์ใดก็ได้

❤️ ผู้สนับสนุน

SupercodeSupercode Editor’s Choice — Archify

ต้องการสนับสนุน Archify ใช่ไหม? ติดต่อเราทางอีเมล

ดู Archify ในการทำงาน

สิ่งเหล่านี้คืออาร์ติแฟกต์ Archify ที่สร้างขึ้น ไม่ใช่ภาพจำลองผลิตภัณฑ์ คลิกที่เฟรมเพื่อเปิดสถานะที่ใช้งานได้จริงและสามารถแชร์ได้

เรื่องราวแนะนำการตรวจสอบเส้นทางเลนส์เชิงความหมาย
Agent workflow playing one authored chapterCache-miss sequence showing the Web App to Postgres routeProduction architecture comparing backend and database roles
เล่นบทที่กำหนดชื่อบทเดียวตรวจสอบเส้นทางที่เขียนขึ้นโดยตรงที่สั้นที่สุดเปรียบเทียบการรับส่งข้อมูลจริงระหว่างบทบาทเชิงความหมาย

Proof Lab มีสถานการณ์ที่ตรวจสอบแล้วทั้ง 11 รายการ, แหล่งที่มา JSON, มุมมองที่กำหนดชื่อ และใบเสร็จการตรวจสอบ

Repository จริง, แมปจากแหล่งที่มา

MCO runtime architecture generated from the public mco-org/mco repository

Archify ได้ติดตาม mco-org/mco ที่ 9f1a1cf และสร้างแผนที่ที่ตรวจสอบแล้วนี้ เปิดเลย ↗ · ติดตามการเข้าถึง ↗ · แหล่งที่มาแบบ Typed

ตัวอย่าง

แผนภาพเดียวกัน, สองธีม, คลิกเดียวเพื่อสลับ:

มืดสว่าง
Dark themeLight theme

เมนู Export จะคัดลอก PNG ไปยังคลิปบอร์ดและดาวน์โหลดรูปแบบคงที่หรือแบบเคลื่อนไหว:

Export menu

ใช้ Copy Share Card เมื่อคุณต้องการภาพขนาด 1200×630 ที่เป็นมาตรฐานสำหรับ README, การเผยแพร่ หรือโพสต์โซเชียล

หลังจากติดตามเส้นทางแล้ว Export → Route Share Card จะดาวน์โหลดเส้นทางที่เขียนขึ้นนั้นเป็น PNG ขนาด 1200×630 โดยยังคงแผนภาพทั้งหมดไว้เพื่อเป็นบริบท

Route Share Card showing the exact Users to API Server path with the full architecture retained as context

หลังจากติดตามการเข้าถึง Upstream หรือ Downstream ที่เขียนขึ้นแล้ว Export → Reach Share Card จะจับภาพการอ่านที่แน่นอนนั้นโดยไม่กล่าวอ้างถึงผลกระทบในขณะรันไทม์

MCO downstream Reach Share Card showing authored relationships from Command Router

เปิด examples/web-app.html ในเครื่องเพื่อลองใช้โปรแกรมดูแบบสมบูรณ์

เริ่มต้นอย่างรวดเร็ว

1. ติดตั้ง

bash
npx skills add tt-a1i/archify -g

สำหรับการติดตั้ง Cursor แบบชัดเจนและไม่โต้ตอบ:

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

หากต้องการลองโดยไม่ต้องติดตั้ง:

bash
npx skills use tt-a1i/archify@archify --agent codex

DSH community opt-in: dsh plugin --profile web add @tt-a1i/archify-dsh@0.1.0

ตัวสลับเอเจนต์ ครอบคลุม cursor, codex, claude-code และ opencode สำหรับการติดตั้ง ZIP ด้วยตนเองของ Raven ให้แตกไฟล์ archify.zip ไปยัง ~/.raven/workspace/skills; ซึ่งจะสร้าง ~/.raven/workspace/skills/archify Raven ไม่ใช่เป้าหมายของตัวสลับ

Archify อาจ GET manifest ที่เสถียรแบบตายตัวเพียงเพื่อแสดงการแจ้งเตือนเสริม; จะไม่มีการดาวน์โหลดหรือติดตั้งการอัปเดต การตรวจสอบที่สำเร็จจะรอประมาณ 72 ชั่วโมง (±20%); การใช้งานที่ใช้งานอยู่จะลองใหม่เมื่อเกิดข้อผิดพลาดหลังจาก 6 ชั่วโมง จากนั้น 24 ชั่วโมง เซิร์ฟเวอร์จะเห็นข้อมูลเมตา HTTP ปกติ (IP และเวลา) แต่ไม่ได้รับเวอร์ชัน, เอเจนต์, ข้อมูลโปรเจกต์, พรอมต์, ID บัญชี/อุปกรณ์ หรือ ETag คุณเป็นผู้ตัดสินใจว่าจะอัปเดตเมื่อใดและอย่างไร ตั้งค่า ARCHIFY_UPDATE_CHECK_DISABLED=1 เพื่อปิดการเชื่อมต่อเครือข่ายและการเขียนสถานะการแจ้งเตือน

2. เริ่มต้นจากคำอธิบาย — ไม่ต้องมี Repository

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

สำหรับหลักฐานจาก Source ให้เปิด repository และถาม:

text
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.

3. ปรับแต่งในแชท

ดำเนินการต่อด้วยคำขอที่เน้นเฉพาะเจาะจง เช่น add Redis, move auth to the left หรือ highlight the rollback path Archify จะเก็บ source ที่พิมพ์ไว้สำหรับการปรับปรุงแบบเจาะจง

เลือกไดอะแกรมที่เหมาะสม

ประเภทเหมาะที่สุดสำหรับสิ่งที่ควรรวมใน Prompt ของคุณ
Architectureส่วนประกอบ, บริการ, ที่เก็บข้อมูล, ขอบเขตขอบเขต, ส่วนประกอบหลัก, เส้นทางหลัก
WorkflowCI/CD, การอนุมัติ, การเรียกใช้เครื่องมือ, Runbookผู้เข้าร่วม, ลำดับ, สาขา, ข้อยกเว้น
Sequenceการเรียก API, การสำรองแคช, การยืนยันตัวตน, การติดตามแบบอะซิงโครนัสผู้เรียก, ผู้ถูกเรียก, การส่งคืน, เวลา
Data FlowPipeline, Lineage, PII, ผู้บริโภคSource, การแปลง, ที่เก็บข้อมูล, ขอบเขต
Lifecycleสถานะ, การลองใหม่, การรอ, ผลลัพธ์สุดท้ายสถานะ, เหตุการณ์, เส้นทางการลองใหม่และการยกเลิก

โปรไฟล์ deployment-ownership ที่เป็นทางเลือกของ Architecture จะล้มเหลวเมื่อเจ้าของที่ระบุ, ตำแหน่งภูมิภาค, ขอบเขตฐานข้อมูลส่วนตัว หรือการข้ามที่ระบุชื่อหายไป; มันไม่เคยเป็นโดยนัยและไม่ได้ตรวจสอบโครงสร้างพื้นฐานที่ใช้งานจริง ดู checked deployment proof

สำหรับการออกแบบหรือการตรวจสอบ PR, Architecture Delta จะเปรียบเทียบสแนปช็อต Before / Delta / After ที่ผ่านการตรวจสอบแล้วพร้อมใบเสร็จจากเครื่อง เลือกการเปลี่ยนแปลงที่ระบุหรือเล่น Review แบบจำกัด, ดูได้อย่างเดียว; มันไม่สรุปผลกระทบ, ความเสี่ยง หรือความปลอดภัยในการรวมโค้ด

node archify/bin/archify.mjs compare architecture base.json head.json architecture-delta.html --json

Architecture Delta showing added, removed, changed, and moved authored facts

ไม่แน่ใจว่าอันไหนเหมาะสม? ใช้ interactive scenario guide หรือสอบถาม CLI ที่ไม่มี dependency:

bash
node archify/bin/archify.mjs guide "Show an API request with Redis cache miss"
node archify/bin/archify.mjs guide "Map Kafka topics, consumer groups, replay, and DLQ" --json

Workflow ทำให้เส้นทางปกติชัดเจนในแต่ละเลน:

Workflow example

Sequence อธิบายการโต้ตอบหนึ่งครั้งในช่วงเวลาหนึ่ง:

Sequence example

Data Flow ทำให้การเคลื่อนไหวและขอบเขตความละเอียดอ่อนชัดเจน:

Data Flow example

Lifecycle แยกความคืบหน้า, การรอ, การลองใหม่ และผลลัพธ์สุดท้าย:

Lifecycle example

ตัวอย่าง Architecture: web-app · Archify pipeline · grid placement · desktop agent

ทำไมต้อง Archify

  • การตัดสินใจจัดวางแทนการจัดวางอัตโนมัติแบบทั่วไป — Agent จะเลือกโครงสร้างลำดับชั้น, ระยะห่าง, เส้นทาง และการเน้น; จุดสิ้นสุดอัตโนมัติที่ใช้ร่วมกันจะกระจายอย่างเป็นระเบียบแทนที่จะซ้อนลูกศรบนจุดกึ่งกลางเดียว
  • Typed JSON IR — ทุกโหมดที่รองรับ Renderer มี Schema และ Source ที่สามารถสร้างซ้ำได้
  • การตรวจสอบแบบ Atomic ก่อนการส่งมอบ — การตรวจสอบ Schema, การจัดวาง, HTML/SVG, เส้นทาง และการเคลียร์ Label-to-route ทั้งหมดต้องผ่านก่อนที่ Artifact ที่แสดงจะมาแทนที่ Output ที่ดีที่สุดที่ทราบล่าสุด
  • ความล้มเหลวมาพร้อมกับใบเสร็จการซ่อมแซมvalidate --json และ deliver --json จะส่งคืนรหัสกฎที่เสถียร, Subject ที่แน่นอน, หลักฐานที่วัดได้ และการควบคุมการซ่อมแซมที่รองรับเท่านั้น แทนที่จะเป็น Node stack หรือการคาดเดาการลองใหม่ที่ไม่มีโครงสร้าง
  • Last-good live preview — ลูปเดสก์ท็อปที่เป็นทางเลือกจะเฝ้าดูไฟล์ JSON หนึ่งไฟล์, รีเฟรชเฉพาะหลังจากที่ Candidate ล่าสุดผ่านทุกเกต และแสดงไดอะแกรมที่ตรวจสอบแล้วก่อนหน้าเมื่อการบันทึกไม่สมบูรณ์หรือไม่ถูกต้อง
  • การโต้ตอบที่แท้จริง — การโฟกัส, การเข้าถึง Upstream/Downstream, เส้นทางที่แน่นอน, การเปรียบเทียบบทบาท และเรื่องราวจะใช้ Node และความสัมพันธ์ที่ระบุไว้ซ้ำ แทนที่จะสร้าง Topology หรืออ้างสิทธิ์ผลกระทบใน Runtime
  • หลักฐานจาก Source, เฉพาะเมื่อร้องขอ — Node Architecture ที่มีหลักฐานจะทำเครื่องหมายตัวเองว่า SRC n และเปิดไฟล์และช่วงบรรทัดที่ตรวจสอบโดย Git ซึ่งปักหมุดไว้ที่ Commit สาธารณะหนึ่งรายการ; Artifact ทั่วไปจะยังคงไม่มี Source
  • พกพาได้โดยค่าเริ่มต้น — ผลลัพธ์คือไฟล์ HTML หนึ่งไฟล์; การส่งออกยังคงเป็นไดอะแกรมเต็มรูปแบบและไม่มีสถานะ Viewer ชั่วคราว

Archify ไม่ใช่โปรแกรมแก้ไขภาพวาดทั่วไปหรือธีม Mermaid มันเปลี่ยนความตั้งใจทางเทคนิคให้เป็น Artifact สำหรับการสื่อสาร

วิธีการทำงาน

ขั้นตอนสิ่งที่เกิดขึ้น
GenerateAgent สร้าง Typed JSON IR จากคำอธิบายของคุณ
Validateตัวตรวจสอบและกฎการจัดวางที่รวมมาจะตรวจสอบ Source; ความล้มเหลวจะระบุการซ่อมแซมภายในที่แน่นอนในรูปแบบ JSON ที่เครื่องอ่านได้
Preview (ทางเลือก)เซสชันเดสก์ท็อปแบบ Loopback เท่านั้นจะเฝ้าดู Source หนึ่งรายการและโหลดเฉพาะ Revision ที่ตรวจสอบแล้วใหม่; ความล้มเหลวจะเก็บ Artifact ที่ดีที่สุดล่าสุดไว้
DeliverCandidate ในไดเรกทอรีเดียวกันจะถูก Render และตรวจสอบ; เฉพาะ Artifact ที่ผ่านเท่านั้นที่จะแทนที่ Target แบบ Atomic จากนั้น --open ที่เป็นทางเลือกจะเปิดไฟล์นั้น
IterateAgent จะอัปเดต Source ในขณะที่โครงสร้างที่ไม่เกี่ยวข้องยังคงเสถียร

คำสั่ง Repository ที่มีประโยชน์:

bash
cd archify
node bin/archify.mjs doctor
node bin/archify.mjs demo /tmp/archify-demo
node bin/archify.mjs guide "Show CI/CD checks, approval, deploy, and rollback"
node bin/archify.mjs validate workflow examples/agent-tool-call.workflow.json --quality showcase --json
node bin/archify.mjs preview workflow examples/agent-tool-call.workflow.json /tmp/workflow.html --quality showcase
node bin/archify.mjs deliver workflow examples/agent-tool-call.workflow.json /tmp/workflow.html --quality showcase --open --json

preview เป็นโหมดเดสก์ท็อปแบบ Loopback เท่านั้นที่ชัดเจน: มันจะเฝ้าดูไฟล์ JSON หนึ่งไฟล์บนพอร์ต 127.0.0.1 แบบสุ่ม, เก็บ Output ที่ตรวจสอบแล้วล่าสุดไว้แม้จะเกิดความล้มเหลว, หยุดด้วย Ctrl-C และไม่เพิ่ม Runtime ของ HTML ที่สร้างขึ้น ใช้ --no-open สำหรับการทดสอบหรือการเปิด URL ด้วยตนเอง

deliver --open เป็นการส่งมอบแบบครั้งเดียวหลังจาก Commit ที่เลือกใช้ได้ ความล้มเหลวของ Opener จะรักษาความสำเร็จไว้; JSON ยังคงอยู่บน stdout และเส้นทางสำรองแบบ Absolute จะไปที่ stderr

เมื่อเกิดความล้มเหลว, validate --json และ deliver --json จะส่งออกออบเจกต์ JSON หนึ่งรายการ ใช้เฉพาะ supportedFixes ของ Subject ใน diagnostics[] ภายในสองรอบการแก้ไขของ Skill; การตรวจสอบด้วยสายตายังคงแยกต่างหาก

การตั้งค่า:

json
{
  "meta": {
    "locale": "en",
    "animation": "trace",
    "visual_preset": "signal-flow"
  }
}

meta.locale=en|zh-CN จะแปลชื่อหน้า, Legend, สถานะ/ข้อผิดพลาด, a11y, HTML/SVG lang — ไม่ใช่เนื้อหาที่ระบุไว้ มิฉะนั้นให้ละเว้น; รักษาสำเนาภาษาที่ร้องขอ; เปิดเผยภาษาอังกฤษสำรอง Static จะละเว้น animation; classic เป็นค่าเริ่มต้น

สำรวจและแบ่งปัน Output

การกระทำการควบคุม
เปิด Diagram Guide ที่เป็นข้อเท็จจริง?
ค้นหาและโฟกัส Node เชิงความหมาย/
ติดตามการเข้าถึง Upstream/Downstream ที่ระบุโฟกัส Node → Upstream / Downstream
ตรวจสอบเส้นทางที่มีทิศทางและตรวจสอบการเดินทางR หรือ PATH
เปรียบเทียบบทบาทเชิงความหมายหนึ่งหรือสองบทบาทL หรือ LENS
เปิดเรดาร์ภาพรวมแบบสดM หรือ MAP
เล่นเรื่องราวที่มีคำแนะนำ / เปลี่ยนบทP / [ ]
เข้าสู่ Presentation StageF
เลือกสไตล์ภาพ (S วนรอบ) / สลับธีม / เปิด ExportS / T / E
ซูมหรือรีเซ็ต+ / - / 0

ลิงก์ที่เสถียรสามารถกู้คืน #focus=<id>, #focus=<id>&reach=upstream|downstream, #relation=<id>, #route=<source>~<target>, #lens=<kind>~<kind> และ #view=<view-id> การเคลื่อนไหวที่ขับเคลื่อนโดยผู้อ่านมีจำกัด, เคารพ prefers-reduced-motion และไม่เคยเข้าสู่การส่งออก Canonical

สัญญาการสร้างและ Viewer ที่สมบูรณ์อยู่ใน archify/SKILL.md

ตัวเลือกการติดตั้ง

พื้นผิวตำแหน่งหรือวิธีการติดตั้งความสามารถ
RavenZIP ด้วยตนเองไปยัง ~/.raven/workspace/skills~/.raven/workspace/skills/archifyRenderer เต็มรูปแบบ + Workflow การตรวจสอบ
Claude Code~/.claude/skills/ หรือ .claude/skills/Renderer เต็มรูปแบบ + Workflow การตรวจสอบ
Codex CLI~/.agents/skills/ หรือ .agents/skills/Renderer เต็มรูปแบบ + Workflow การตรวจสอบ
opencode~/.config/opencode/skills/, .opencode/skills/ หรือ .agents/skills/Renderer เต็มรูปแบบ + Workflow การตรวจสอบ
Claude.aiอัปโหลด archify.zip ภายใต้ Settings → Capabilities → Skillsขึ้นอยู่กับการเข้าถึง Node.js ใน Sandbox
Project Knowledgeอัปโหลด archify.zip ไปยังโปรเจกต์การสำรอง Architecture ที่ขับเคลื่อนด้วย Prompt
DeepSeek Harnessเลือกใช้: dsh plugin --profile web add @tt-a1i/archify-dsh@0.1.0. เรียกใช้: Use the archify skill to map this repository's runtime architecture. ลบ: dsh plugin --profile web remove @tt-a1i/archify-dsh.การรวมชุมชนสำหรับ Developer-preview @deepseek-ai/dsh@0.1.0-rc.6; Node ^22.19.0 || >=24.0.0; ไม่ใช่ผลิตภัณฑ์ DeepSeek อย่างเป็นทางการ ไม่มี Telemetry ไฟล์ Shell ต้องการเส้นทาง Workspace ที่แน่นอน ไม่ใช่ Web Produced Files รายละเอียด.

การอ้างอิงและขอบเขต

การแยกวิเคราะห์ Mermaid อัตโนมัติ, การจัดวางอัตโนมัติแบบทั่วไป, การแชร์แบบโฮสต์ และการแก้ไขแบบ WYSIWYG อยู่นอกขอบเขตปัจจุบันโดยเจตนา

ใบอนุญาต

MIT — ใช้งาน แก้ไข และเผยแพร่ได้ฟรี

การมีส่วนร่วม

ยินดีรับ Issues, pull requests และไดอะแกรมจากโลกจริง เริ่มต้นด้วย คู่มือการมีส่วนร่วม, ใช้แบบฟอร์มรายงานข้อผิดพลาดที่สามารถทำซ้ำได้สำหรับความล้มเหลว หรือส่งไดอะแกรมที่ผ่านการตรวจสอบแล้วผ่าน แบบฟอร์มแสดงผลงานของชุมชน &nbsp;·&nbsp;LINUX&nbsp;DO

ประวัติ Star

Star History

เอกสารโปรเจกต์

อ่านเอกสารต้นฉบับ

README วิธีติดตั้ง วิธีใช้งาน และข้อกำหนดจาก repository ต้นฉบับ

ดูไฟล์บน GitHub
Archify on Trendshift

Archify product preview

Archify

Turn a codebase or system description into a polished, interactive system map — directly in chat.

Archify is a Node.js rendering and validation system for Cursor, Claude Code, Codex CLI, and OpenCode. Agents produce typed JSON IR; Archify deterministically compiles it into HTML/SVG.

  • Open it and present — five diagram types, four presets, dark/light themes, built-in brand marks, and finite motion
  • Review architecture changes before merge — compare two validated snapshots as Before / Delta / After, with exact added, removed, changed, moved, and rerouted facts
  • Every interaction stays grounded — search nodes, optionally open revision-verified source, trace upstream/downstream authored reach and exact routes, compare roles, and play guided stories without inventing topology
  • One file, ready to trust and share — typed JSON IR and deterministic checks produce self-contained HTML plus PNG, SVG, WebM, and 1200×630 share cards

License Agent Skill Development Version

Current development version: v2.17.0-dev.1. See Changelog.

Project page · Scenario guide · Proof Lab

bash
npx skills add tt-a1i/archify -g

Using Cursor? Open the agent-aware quick start for exact global and project commands.

No repository is required: describe the system in any agent chat.

❤️ Sponsors

SupercodeSupercode Editor’s Choice — ArchifyArchify × Raven

Want to sponsor Archify? Contact us by email.

See Archify in action

These are generated Archify artifacts, not product mockups. Click a frame to open its live, shareable state.

Three verified Archify artifacts moving through Signal Flow, Blueprint, and Classic presets
Guided storyRoute probeSemantic lens
Agent workflow playing one authored chapterCache-miss sequence showing the Web App to Postgres routeProduction architecture comparing backend and database roles
Play one finite named chapter.Inspect the shortest authored directed path.Compare real traffic between semantic roles.

The Proof Lab contains all 11 checked-in scenarios, their JSON sources, named views, and validation receipts.

A real repository, mapped from source

MCO runtime architecture generated from the public mco-org/mco repository

Archify traced mco-org/mco at 9f1a1cf and produced this checked map. Open it ↗ · trace reach ↗ · typed source

Preview

Same diagram, two themes, one click to switch:

DarkLight
Dark themeLight theme

The Export menu copies PNG to the clipboard and downloads static or motion formats:

Export menu

Use Copy Share Card when you want a canonical 1200×630 image for a README, release, or social post.

After tracing a route, Export → Route Share Card downloads that authored path as a 1200×630 PNG with the full diagram retained for context.

Route Share Card showing the exact Users to API Server path with the full architecture retained as context

After tracing authored Upstream or Downstream reach, Export → Reach Share Card captures that exact reading without claiming runtime impact.

MCO downstream Reach Share Card showing authored relationships from Command Router

Open examples/web-app.html locally to try the complete viewer.

Quick start

1. Install

bash
npx skills add tt-a1i/archify -g

For an explicit, non-interactive Cursor install:

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

To try without installing:

bash
npx skills use tt-a1i/archify@archify --agent codex

DSH community opt-in: dsh plugin --profile web add @tt-a1i/archify-dsh@0.1.0

The agent switcher covers cursor, codex, claude-code, and opencode. For Raven's manual ZIP install, extract archify.zip into ~/.raven/workspace/skills; it yields ~/.raven/workspace/skills/archify. Raven is not a switcher target.

Archify may GET the fixed stable manifest solely to show an optional reminder; it never downloads or installs updates. Successful checks wait about 72 hours (±20%); active use retries failures after 6, then 24 hours. The server sees normal HTTP metadata (IP and time), but receives no version, Agent, project data, prompts, account/device ID, or ETag. You decide whether and when to update. Set ARCHIFY_UPDATE_CHECK_DISABLED=1 to disable networking and reminder-state writes.

2. Start from a description — no repository required

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

For source evidence, open a repository and ask:

text
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.

3. Refine in chat

Continue with focused requests such as add Redis, move auth to the left, or highlight the rollback path. Archify keeps the typed source available for targeted iteration.

Choose the right diagram

TypeBest forInclude in your prompt
ArchitectureComponents, services, storage, boundariesScope, core components, primary path
WorkflowCI/CD, approvals, tool calls, runbooksParticipants, order, branches, exceptions
SequenceAPI calls, cache fallback, auth, async tracesCallers, callees, returns, timing
Data FlowPipelines, lineage, PII, consumersSources, transforms, stores, boundaries
LifecycleStates, retries, waits, terminal outcomesStates, events, retry and cancellation paths

Architecture's optional deployment-ownership profile fails closed when authored owners, region placement, private database scope, or named crossings are missing; it is never implicit and does not inspect live infrastructure. See the checked deployment proof.

For design or PR review, Architecture Delta compares validated Before / Delta / After snapshots with a machine receipt. Select an authored change or play one finite, viewer-only Review; it infers no impact, risk, or merge safety.

node archify/bin/archify.mjs compare architecture base.json head.json architecture-delta.html --json

Architecture Delta showing added, removed, changed, and moved authored facts

Not sure which one fits? Use the interactive scenario guide, or ask the zero-dependency CLI:

bash
node archify/bin/archify.mjs guide "Show an API request with Redis cache miss"
node archify/bin/archify.mjs guide "Map Kafka topics, consumer groups, replay, and DLQ" --json

Workflow keeps the happy path clear across lanes:

Workflow example

Sequence explains one interaction over time:

Sequence example

Data Flow makes movement and sensitivity boundaries explicit:

Data Flow example

Lifecycle separates progress, waits, retries, and terminal outcomes:

Lifecycle example

Architecture examples: web-app · Archify pipeline · grid placement · desktop agent

Why Archify

  • Layout judgment over generic auto-layout — the agent chooses hierarchy, spacing, routes, and emphasis; shared automatic endpoints spread deterministically instead of piling arrows on one midpoint.
  • Typed JSON IR — every renderer-backed mode has a schema and reproducible source.
  • Atomic validation before delivery — schema, layout, HTML/SVG, route, and label-to-route clearance checks must all pass before a showcase artifact replaces the last known good output.
  • Failures come with a repair receiptvalidate --json and deliver --json return stable rule codes, the exact subject, measured evidence, and only supported repair controls instead of a Node stack or an unstructured retry guess.
  • Last-good live preview — an optional desktop loop watches one JSON file, refreshes only after the latest candidate passes every gate, and keeps the previous verified diagram visible when a save is incomplete or invalid.
  • Truthful interaction — focus, upstream/downstream reach, exact routes, role comparison, and stories reuse authored nodes and relationships instead of inventing topology or claiming runtime impact.
  • Source evidence, only when requested — Evidence-backed Architecture nodes mark themselves SRC n and open Git-verified files and line ranges pinned to one public commit; ordinary artifacts stay source-free.
  • Portable by default — the result is one HTML file; exports remain full-diagram and free of temporary viewer state.

Archify is not a general-purpose drawing editor or a Mermaid theme. It turns technical intent into a communication artifact.

How it works

StepWhat happens
GenerateThe agent creates typed JSON IR from your description.
ValidateBundled validators and layout rules check the source; failures identify the exact local repair in machine-readable JSON.
Preview (optional)A loopback-only desktop session watches one source and reloads only verified revisions; failures keep the last-good artifact.
DeliverA same-directory candidate is rendered and checked; only a passing artifact atomically replaces the target, then optional --open launches that exact file.
IterateThe agent updates the source while unrelated structure stays stable.

Useful repository commands:

bash
cd archify
node bin/archify.mjs doctor
node bin/archify.mjs demo /tmp/archify-demo
node bin/archify.mjs guide "Show CI/CD checks, approval, deploy, and rollback"
node bin/archify.mjs validate workflow examples/agent-tool-call.workflow.json --quality showcase --json
node bin/archify.mjs preview workflow examples/agent-tool-call.workflow.json /tmp/workflow.html --quality showcase
node bin/archify.mjs deliver workflow examples/agent-tool-call.workflow.json /tmp/workflow.html --quality showcase --open --json

preview is an explicit loopback-only desktop mode: it watches one JSON file on a random 127.0.0.1 port, keeps the last verified output through failures, stops with Ctrl-C, and adds no generated-HTML runtime. Use --no-open for tests or manual URL opening.

deliver --open is an opt-in one-shot handoff after commit. Opener failure preserves success; JSON remains on stdout and the absolute fallback path goes to stderr.

On failure, validate --json and deliver --json emit one JSON object. Apply only each diagnostics[] subject's supportedFixes, within the Skill's two correction rounds; visual review remains separate.

Settings:

json
{
  "meta": {
    "locale": "en",
    "animation": "trace",
    "visual_preset": "signal-flow"
  }
}

meta.locale=en|zh-CN localizes page title, Legend, states/errors, a11y, HTML/SVG lang—never authored content. Otherwise omit; preserve requested-language copy; disclose English fallback. Static omits animation; classic defaults.

Explore and share the output

ActionControl
Open the factual Diagram Guide?
Find and focus a semantic node/
Trace upstream/downstream authored reachFocus a node → Upstream / Downstream
Probe a directed route and inspect its journeyR or PATH
Compare one or two semantic rolesL or LENS
Open the live overview radarM or MAP
Play a guided story / change chapterP / [ ]
Enter Presentation StageF
Choose visual style (S cycles) / toggle theme / open ExportS / T / E
Zoom or reset+ / - / 0

Stable links can restore #focus=<id>, #focus=<id>&reach=upstream|downstream, #relation=<id>, #route=<source>~<target>, #lens=<kind>~<kind>, and #view=<view-id>. Reader-driven motion is finite, respects prefers-reduced-motion, and never enters canonical exports.

The complete generation and viewer contract lives in archify/SKILL.md.

Installation options

SurfaceInstall location or methodCapability
RavenManual ZIP into ~/.raven/workspace/skills~/.raven/workspace/skills/archifyFull renderer + validation workflow
Claude Code~/.claude/skills/ or .claude/skills/Full renderer + validation workflow
Codex CLI~/.agents/skills/ or .agents/skills/Full renderer + validation workflow
opencode~/.config/opencode/skills/, .opencode/skills/, or .agents/skills/Full renderer + validation workflow
Claude.aiUpload archify.zip under Settings → Capabilities → SkillsDepends on Node.js access in the sandbox
Project KnowledgeUpload archify.zip to the projectPrompt-driven architecture fallback
DeepSeek HarnessOpt-in: dsh plugin --profile web add @tt-a1i/archify-dsh@0.1.0. Invoke: Use the archify skill to map this repository's runtime architecture. Remove: dsh plugin --profile web remove @tt-a1i/archify-dsh.Community integration for developer-preview @deepseek-ai/dsh@0.1.0-rc.6; Node ^22.19.0 || >=24.0.0; not an official DeepSeek product. No telemetry. Shell files need exact workspace paths, not Web Produced Files. Details.

Reference and scope

Automatic Mermaid parsing, general-purpose auto-layout, hosted sharing, and WYSIWYG editing are intentionally outside the current scope.

License

MIT — free to use, modify, and distribute.

Contributing

Issues, pull requests, and real-world diagrams are welcome. Start with the contribution guide, use the reproducible bug form for failures, or submit a validated diagram through the community showcase form.&nbsp;·&nbsp;LINUX&nbsp;DO

Star History

Star History
#agent-skills#architecture-as-code#architecture-diagram#claude-skill#code-visualization#codex#coding-agents#data-flow-diagram#deepseek-harness#developer-tools#diagram-as-code#diagrams