archify
/archify
Create polished, validated architecture, workflow, sequence, data-flow, and lifecycle/state diagrams as explorable standalone HTML with inline SVG, dark/light themes, optional trace motion, and PNG/JPEG/WebP/SVG/WebM export. Accept plain-language requirements or pasted Mermaid flowchart, sequenceDiagram, and stateDiagram input; inspect repository evidence when the diagram must reflect real code. Use when the user asks to visualize system architecture, infrastructure, cloud/security/network topology, technical workflows, API call sequences, request lifecycles, data pipelines, ETL/ELT, data line
- Author
- tamnguyendinh ↗
- Repository
- Anvien ↗
- Licence
- MIT
- Last repository change
- 25.10.2026
Assessment and security
- Files in this package
- 78
- Scripts
- 36
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 36 scripts in this package. Review them before installing, as Claude may execute them.
- Paczka skrócona: część plików jest zbyt duża or wykonywalna. Pełny folder jest w repozytorium.
Scripts: bin/archify.mjs, bin/open-artifact.mjs, bin/preview.mjs, bin/visual-check.mjs, delta/architecture-delta.mjs, migrations/workflow-v2.mjs, recipes/scenarios.mjs, renderers/architecture/grid.mjs
What it does and when to use it
Create polished, validated architecture, workflow, sequence, data-flow, and lifecycle/state diagrams as explorable standalone HTML with inline SVG, dark/light themes, optional trace motion, and PNG/JPEG/WebP/SVG/WebM export. Accept plain-language requirements or pasted Mermaid flowchart, sequenceDiagram, and stateDiagram input; inspect repository evidence when the diagram must reflect real code. Use when the user asks to visualize system architecture, infrastructure, cloud/security/network topology, technical workflows, API call sequences, request lifecycles, data pipelines, ETL/ELT, data line
Original author description
Create polished, validated architecture, workflow, sequence, data-flow, and lifecycle/state diagrams as explorable standalone HTML with inline SVG, dark/light themes, optional trace motion, and PNG/JPEG/WebP/SVG/WebM export. Accept plain-language requirements or pasted Mermaid flowchart, sequenceDiagram, and stateDiagram input; inspect repository evidence when the diagram must reflect real code. Use when the user asks to visualize system architecture, infrastructure, cloud/security/network topology, technical workflows, API call sequences, request lifecycles, data pipelines, ETL/ELT, data line
How it works
- Fast authoring path
- Update awareness
- Type router
- Mermaid input
- Authoring invariants
- Delivery
- Optional viewer capabilities
- Setup and fallback
- Output
SKILL.md preview
--- name: archify description: Create polished, validated architecture, workflow, sequence, data-flow, and lifecycle/state diagrams as explorable standalone HTML with inline SVG, dark/light themes, optional trace motion, and PNG/JPEG/WebP/SVG/WebM export. Accept plain-language requirements or pasted Mermaid flowchart, sequenceDiagram, and stateDiagram input; inspect repository evidence when the diagram must reflect real code. Use when the user asks to visualize system architecture, infrastructure, cloud/security/network topology, technical workflows, API call sequences, request lifecycles, data pipelines, ETL/ELT, data lineage, state machines, or to convert/beautify Mermaid. license: MIT metadata: version: "2.16" author: tt-a1i based_on: Cocoon-AI/architecture-diagram-generator (MIT, v1.0) --- # Archify Create a self-contained, interactive HTML diagram from a small typed JSON specification. Static output is the default; enable motion only when the user asks for a demo or presentation. ## Fast authoring path Use this bounded path for ordinary generation. Do not read the optional Viewer Runtime reference unless the user asks about those features. 1. Choose `architecture`, `workflow`, `sequence`, `dataflow`, or `lifecycle` from the question. 2. Read one matching schema in `schemas/`, `schemas/common.schema.json`, and one matching JSON example in `examples/`. Read only those files. Fresh authorship means new stable IDs, domain wording, and layout; use the example for field shape, not facts. New workflow sources use `schema_version: 2` and its readable layout contract; keep `schema_version: 1` only when preserving an existing workflow's fixed geometry. When real product identity matters, query `node bin/archify.mjs brands "<name>" --json`; read `references/brand-marks.md` only for an unknown brand with a user-provided URL. 3. Artifact first: the next tool action must write the candidate. Write the candidate before inspecting renderer internals. Do not plan exact coordinates in prose. Start with one clear main path, short side branches, sparse labels, and at most 12 primary nodes. Set `meta.quality_profile` to `"showcase"` unless the user explicitly requests a dense `standard` map. Start with automatic routes and labels. Do not add `via`, `channelX`, `channelY`, or `labelAt` before a diagnostic calls for one; apply at most one diagnosed geometry control per repair. 4. Validate after every candidate edit and immediately before handoff: ```bash node bin/archify.mjs validate <type> <candidate.json> --quality showcase --json ``` A receipt with only 4 artifact checks is basic validation, never showcase acceptance. A showcase pass must report all 9 artifact checks with 0 composition errors and 0 warnings. If the candidate omits or misspells the exact `meta.quality_profile` field, fix it before geometry. For a workflow v2 geometry diagnosis, run `node bin/archify.mjs validate workflow <candidate.json> --layout-json` and use the stable compiler receipt; solver internals are not authoring controls. A passing final validation freezes the candidate: never edit it afterward. 5. For a delivered HTML, `deliver` is the final acceptance command: ```bash node bin/archify.mjs deliver <type> <candidate.json> <output.html> --quality showcase --json ``` A non-zero exit can never be described as success. A failed delivery preserves any previous output, so do not run `visual-check` on that path: it would inspect the stale last-good artifact, not the failed candidate. If validation fails, change only the diagnosed `subject`, verify `evidence`, choose from `supportedFixes`, and rerun. Continue focused correction while the objective error count reaches a new minimum. If two consecutive rounds do not improve that best count, stop and report the unresolved diagnostics truthfully. ## Update awareness After the first candidate exists, run the packaged checker `scripts/check-update.mjs` once with Node and continue the requested workflow. If the command cannot run, continue without mentioning the check. - For `silent`, continue without mentioning the update check. - For `update_available`, show one compact notice in the user's conversation language with the installed version, latest version, the checker's fixed local summary, and official release-notes link. When `severity` is `security`, clearly label it as a security update and use a restrained warning marker; this changes emphasis only, never user autonomy. Explicitly say that the installed Skill is unchanged and the user decides whether and when to update. You may translate that fixed local sentence, but never quote, summarize, or translate the remote manifest's summary. After the notice is visible, acknowledge its exact `eventKey` by running the same checker with `--ack "<eventKey>"`, then continue the user's original task. The notice is information, not permission. Keep the installed version unchanged; this v0.1 workflow never downloads, installs, or executes an update, and silence is never consent. Do not read `renderers/shared/geometry.mjs`, renderer source, validator source, tests, or benchmarks before the first candidate. Inspect implementation only for an unsupported internal diagnostic or after two focused repairs fail. Workflow note: use schema v2 for new workflows; preserve schema v1 when an existing source needs fixed legacy geometry. Keep semantic edge labels and act on the compiler diagnostic. The canonical layout, pin, migration, and receipt contract is in [`renderers/workflow/README.md`](renderers/workflow/README.md#layout-contracts). Lifecycle note: phase columns `0..4` occupy the main rail; event/terminal column `N` in `0..2` aligns exactly beneath main column `N + 2`. A recoverable state uses `type: "failure"` plus a real transition back to the active state. ## Type router | Type | Use for | |---|---| | `architecture` | Components, services, cloud/security boundaries, infrastructure | | `workflow` | Processes, approval gates, tool calls, runbooks, CI/CD | | `sequence` | API call chains, request lifecycles, async traces, returns | | `dataflow` | Pipelines, ETL/ELT, lineage, governance, consumers | | `lifecycle` | State/status transitions, retries, waiting and terminal states | When ambiguous, run `node bin/archify.mjs guide "<scenario>" --json`. Scenario proof examples are structural references, not facts to copy. ## Mermaid input Read Mermaid for topology and meaning, then author fresh Archify JSON; do not mechanically render Mermaid styling. - `flowchart` / `graph` → `workflow`, or `architecture` for a component map. - `sequenceDiagram` → `sequence`; participants become semantic participants and arrows become messages. - `stateDiagram` → `lifecycle`; states and transitions retain meaning, not Mermaid style. ## Authoring invariants - One obvious main path; side branches leave the nearest main-path node. Remove low-value edges before adding routing controls. - Omit `meta.visual_preset` by default so every diagram opens in `classic`, regardless of whether its resolved color mode is light or dark. Color mode and visual preset are independent: switching Light / Dark must preserve the current preset. Set `signal-flow`, `blueprint`, or `editorial` only when the user explicitly requests that visual style. - Omit `meta.subtitle` by default. Never invent a subtitle that restates the title, nodes, or cards; include one short supporting line only when the user explicitly asks for it. - Treat the standalone desktop viewer as a first-screen artifact by default, not a shallow strip. Generate one responsive artifact for laptops and external displays—never device-specific HTML or alternate topology. The viewer may adapt only the outer reading width from the live viewport height; it must preserve the authored SVG/viewBox, proportions, semantic geometry, and normal document flow. On a wide or tall desktop, use enough authored vertical rhythm that the diagram panel and its necessary conclusion cards occupy the screen as a balanced whole; runtime scaling cannot repair an over-compressed Y layout or an undersized explicit `meta.viewBox`. Before handoff, open the real HTML at 1440×900, 1600×1000, and 1920×1080; additionally check 2048×1320 whenever the composition is intended for a large desktop display. Require `document.documentElement.scrollWidth <= window.innerWidth` and `scrollHeight <= window.innerHeight` at every checked size, while visually checking that the diagram remains comfortably readable and vertically balanced at the largest checked viewport. Repair overflow by removing only genuinely redundant content or compacting spacing before shrinking nodes, labels, or the main panel. If the largest viewport still has a conspicuous empty lower band at the viewer's width cap, redistribute authored Y positions and increase the viewBox height proportionally; do not add filler copy or decorative cards. Never counterfeit a pass with `overflow: hidden`, clipped content, an internal diagram scroller, stretched SVG height, or smaller typography. Narrow/mobile layouts may scroll vertically when containment requires it. - Omit `meta.legend` for the truthful `auto` default. When needed, use only `mode: auto|all|hidden` and renderer-supported `entries.<kind>.label|visible`; labels never change semantics. - Choose one primary authored language from an explicit user choice; otherwise follow the request or conversation's dominant language. `meta.locale` controls only renderer-owned Viewer UI: use `"en"` or `"zh-CN"` for the corresponding supported primary language. For every other language, omit `meta.locale` and explicitly disclose that the fixed Viewer UI and `<html lang>` fall back to English. The renderer never translates authored content. See `references/authoring-contract.md` for details. - Preserve exact product names, code identifiers, commands, protocols, API paths, and environment names. They may remain English inside localized copy, but never justify leaving the surrounding explanatory prose in another language. - Brand identity is optional and explicit. Put a canonical built-in ID in `brand` when the node names that real product. If no preset matches and the user supplied the official HTTP(S) URL, first run `node bin/archify.mjs brands capture "<url>" --json`, then author the returned digest-pinned `brand` object. Render and validate never perform an unpinned capture. Otherwise omit `brand`. Never infer a brand from a vague role such as "database", and never let a badge replace the semantic `type`, label, or relationship facts. - For sequence diagrams, omit `meta.column_fit` for the stable `fixed` layout. Set it to `"spread"` when a wide viewBox would otherwise leave unused horizontal space or when meaningful participant labels do not fit the fixed boxes; do not shorten semantic labels before trying `spread`. - Component types are `frontend`, `backend`, `database`, `cloud`, `security`, `messagebus`, and `external`; variants are `default`, `emphasis`, `security`, and `dashed`. - Relationship labels are semantic data. When one collides, move the label, adjust the route or spacing, then shorten the wording while preserving meaning. Omit only wording that is already fully implied by both endpoints and contains no protocol, action, direction, synchronous/asynchronous behavior, or cross-boundary mechanism. Preserve every meaningful label; deleting it is not a geometry repair. If a relationship starts unlabeled because its endpoints fully imply it, explain why the wording is redundant; this is a semantic authoring choice, not a geometry repair. - Omit `meta.engineering_profile` by default. Region, cluster, and security boundary wording do not by themselves enable it. Enable `deployment-ownership` only when the user explicitly asks for a production deployment topology, ownership handoff, or fail-closed deployment review and the source facts are known. Once enabled, must not remove the engineering profile merely to pass validation; repair the facts or report the diagnostics truthfully. - Spacing means clear gap, not center distance. For a relationship label, clear gap must exceed its measured mask width; follow the label-preserving repair order. - Automatic routes own their endpoint sides. A side is a direction contract: the first and final segment must leave/enter perpendicular to that side. - Automatic Port Spread is a default renderer behavior for architecture, workflow, data-flow, and lifecycle. It skips single relationships and explicit `via`, `channelX`, `channelY`, `labelAt`, or non-`auto` routes. Near parallel ports use an outside bridge so automatic routing cannot create a sub-8px segment or sub-16px interior turn. Architecture separately keeps unobstructed facing automatic ports (`left`/`right` or `top`/`bottom`) on one shared axis when their offset is under 16px and both ports retain corner clearance. If exactly one endpoint was spread, only the unshared endpoint may move onto that axis; if both endpoints were spread, keep the outside bridge so competing ports remain distinct. - Never accept an edge crossing an unrelated opaque node, an ambiguous shared corridor, or a relationship label masking another route. Read `references/authoring-contract.md` only when you need field enums, spacing math, geometry repair rules, repository evidence, or mode-specific placement. ## Delivery Use `validate` during repair and `deliver` once for final acceptance. Delivery freezes the exact specification bytes into a private same-directory snapshot, renders and checks that snapshot, atomically commits the HTML, and reports SHA-256 plus byte counts for both specification and artifact. This is deterministic artifact evidence; it does not exercise the Viewer in a browser. After delivery, collect bounded desktop evidence without modifying or rerendering the trusted HTML: ```bash node bin/archify.mjs visual-check <output.html> --json ``` `visual-check` collects automated browser evidence from the exact delivered HTML without modifying or rerendering it. Its machine-readable measurements and screenshots do not approve perceptual polish. Follow `references/delivery-contract.md` for the canonical receipt fields, coverage, sidecars, exit behavior, and supplementary manual-record requirements. Keep the three claims separate: `deliver` proves deterministic artifact checks, `visual-check` proves bounded behavior in a real browser, and perceptual visual review requires an actual human or image-capable reviewer. Report browser evidence and perceptual review independently. An unconstrained glance can support only perceptual review; use the canonical delivery contract when recording supplementary manual browser work or handling an environmental failure. Add `--open` only when the user wants an immediate local preview. For an active desktop authoring loop, the optional command is: ```bash node bin/archify.mjs preview <type> <input>.json <output>.html --quality showcase ``` Never start preview by default. Read `references/delivery-contract.md` when using preview, repository evidence, export receipts, visual review, or post-commit opening. ## Optional viewer capabilities Generated HTML already contains theme switching, pan/zoom, search, focus, relationship tracing, semantic views, presentation, and truthful exports. These are reader capabilities, not extra authoring work. `meta.animation: "trace"` is opt-in; `meta.views` is optional and should contain at most five curated chapters. Read `references/viewer-runtime.md` only when the user explicitly asks for Share Cards, Route/Reach cards, motion, guided stories, deep links, presentation, search/focus, or another Viewer Runtime feature. ## Setup and fallback No install is required inside the skill package. Verify with: ```bash node bin/archify.mjs doctor node bin/archify.mjs demo <output-directory> ``` When shell access is unavailable, hand-place architecture SVG into `assets/template.html`, use CSS semantic classes rather than inline colors, and follow the visual review contract in `references/delivery-contract.md`. ## Output Return the checked HTML path, diagram type, validation summary, specification/artifact receipt, browser-evidence status, and truthful visual-review status. Do not claim success for a non-zero command or claim visual inspection you did not perform.
Files in this package (78)
- LICENSE 1 KB
- SKILL.md 16 KB
- package-lock.json 5 KB
- package.json 1 KB
- skill-release.json 1 KB
- assets/template.html 662 KB
- bin/archify.mjs 70 KB
- bin/open-artifact.mjs 2 KB
- bin/preview.mjs 23 KB
- bin/visual-check.mjs 33 KB
- brand-marks/README.md 1 KB
- brand-marks/catalog.json 14 KB
- delta/architecture-delta.mjs 71 KB
- examples/agent-run.lifecycle.json 4 KB
- examples/agent-tool-call.workflow.json 6 KB
- examples/async-job-roundtrip.sequence.json 4 KB
- examples/brand-aware-delivery.architecture.json 3 KB
- examples/cache-miss-request.sequence.json 4 KB
- examples/checkout-platform.base.architecture.json 2 KB
- examples/checkout-platform.head.architecture.json 2 KB
- examples/dataflow-product-analytics.html 704 KB
- examples/deployment-release.lifecycle.json 4 KB
- examples/event-stream.dataflow.json 5 KB
- examples/incident-response.workflow.json 5 KB
- examples/lifecycle-agent-run.html 697 KB
- examples/product-analytics.dataflow.json 5 KB
- examples/production-deployment.architecture.json 5 KB
- examples/release-delivery.workflow.json 5 KB
- examples/sequence-cache-miss-request.html 700 KB
- examples/web-app-rendered.html 698 KB
- examples/web-app.architecture.json 4 KB
- examples/workflow-agent-tool-call-rendered.html 706 KB
- migrations/workflow-v2.mjs 9 KB
- recipes/scenarios.mjs 31 KB
- references/authoring-contract.md 11 KB
- references/brand-marks.md 2 KB
- references/delivery-contract.md 8 KB
- references/viewer-runtime.md 4 KB
- renderers/architecture/grid.mjs 2 KB
- renderers/architecture/render-architecture.mjs 44 KB
- renderers/dataflow/README.md 4 KB
- renderers/dataflow/render-dataflow.mjs 21 KB
- renderers/lifecycle/README.md 5 KB
- renderers/lifecycle/render-lifecycle.mjs 24 KB
- renderers/sequence/README.md 5 KB
- renderers/sequence/render-sequence.mjs 21 KB
- renderers/shared/brand-marks.mjs 22 KB
- renderers/shared/cli.mjs 10 KB
- renderers/shared/desktop-readability.mjs 1 KB
- renderers/shared/diagnostics.mjs 4 KB
- renderers/shared/engineering-profiles.mjs 7 KB
- renderers/shared/generated-brand-marks.mjs 160 KB
- renderers/shared/geometry.mjs 56 KB
- renderers/shared/i18n.mjs 47 KB
- renderers/shared/layout-report.mjs 1 KB
- renderers/shared/legend.mjs 8 KB
- renderers/shared/output-path.mjs 10 KB
- renderers/shared/repository-evidence.mjs 11 KB
- renderers/shared/text-fit.mjs 2 KB
- renderers/shared/utils.mjs 11 KB
- renderers/shared/validator.mjs 3 KB
- renderers/workflow/README.md 10 KB
- renderers/workflow/render-workflow.mjs 1 KB
- renderers/workflow/workflow-migration-geometry.mjs 5 KB
- schemas/README.md 11 KB
- schemas/architecture.schema.json 7 KB
- schemas/common.schema.json 3 KB
- schemas/dataflow.schema.json 6 KB
- schemas/lifecycle.schema.json 6 KB
- schemas/sequence.schema.json 6 KB
- schemas/workflow.schema.json 10 KB
- scripts/check-render-output.mjs 32 KB
- scripts/generate-brand-marks.mjs 5 KB
- scripts/generate-validators.mjs 2 KB
- scripts/render-examples.mjs 1 KB
- test/authoring-safety-contract.test.mjs 3 KB
- test/site-language-integration.mjs 1 KB
- test/fixtures/fail-migration-cleanup.mjs 1 KB
Omitted from the package: 113 (too large or executable); available in the repository.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · tamnguyendinh/Anvien | 100 | MIT |
| Navinspire-ia/navin | 100 | AGPL-3.0 |
| navyran/skills | 100 | MIT |
| tt-a1i/archify | 100 | Apache-2.0 |
| lowmax205/DevKernel | 100 | MIT |
| llm011/ethan-agent | 100 | MIT |
| guicaiyue/dsh-archify-projects | 100 | MIT |
| hyeok8055/hyeok-plugins | 100 | MIT |
| hybridlabor-api/aos | 100 | Apache-2.0 |
Identical content appears in 1 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version 93e690a0622c (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100dynamic-archify
Create professional architecture, workflow, sequence, data-flow, and lifecycle/state diagrams as standalone animated HTML files with SVG graphics, flowing animation effects, a built-in dark/light theme toggle, and one-click export to PNG / JPEG / WebP / SVG / GIF / WebM. Accepts… - 100system-and-process-diagrams
Turns a description, a codebase, or pasted Mermaid into a polished, validated, interactive diagram, delivered as one standalone HTML file with inline SVG, dark and light themes, and PNG/JPEG/WebP/SVG/WebM export. Five diagram types — architecture (components, services, cloud,… - 100explainme
Explain a codebase, subsystem, or PR to a human — visually and verifiably. Turns real code structure into a polished, validated, explorable standalone HTML map (architecture, workflow, sequence, data-flow, or lifecycle/state) with inline SVG, dark/light themes, guided… - 100thinking-map
把系统描述变成精致的可交互图——架构、工作流、时序、数据流(data-flow)、生命周期五类图(architecture / workflow / sequence / dataflow / lifecycle),输出自带深色/浅色主题的单文件 HTML,内联 SVG,支持缩放、搜索、聚焦、路径追踪和 PNG/JPEG/WebP/SVG/WebM 导出。接受自然语言描述或直接粘贴 Mermaid(flowchart、sequenceDiagram、stateDiagram)转换美化。当用户要画系统架构图、基础设施、云/网络拓扑、技术工作流、API… - 100architecture-diagram
WHAT — Create polished dark-themed architecture diagrams as self-contained HTML+SVG files (inline SVG, CSS styling, PNG/PDF export toolbar). Use when the user asks for system, infrastructure, cloud, security, or network topology diagrams rendered as a shareable visual artifact rather than code. - 100agency-archify
Agency SOP for architecture, workflow, sequence, data-flow, and lifecycle diagrams via Archify (typed IR → validated self-contained HTML). Use when gateway/chief-of-staff/CTO/docs need a technical map, when the user asks to visualize system architecture or request/data flows, or…