SKILL.md--- name: archify description: "Create validated architecture, workflow, sequence, data-flow, lifecycle/state, ERD, class, tree, timeline, and waterfall diagrams as explorable standalone HTML with dark/light themes, motion and image/SVG/WebM export. Accept requirements or Mermaid and trace repository evidence for code-backed diagrams. Use when visualizing systems, API calls, pipelines, schemas, histories, timings, or everyday steps and relationships. Investigate repository architecture, coupling and refactoring scope with Code Analysis. Add guided stories and video to native diagrams. For page or explainer requests (做成一页, 用页面讲), turn the answer into a one-page Explainer with the conclusion first, structured panels, native diagrams and charts. By default, briefly offer a page for a complex flow, diagnosis, comparison or test/review report and generate only on request. Set [archify explainer: on-demand] to silence offers or [archify explainer: proactive] to generate for eligible answers unasked. Not for dashboards." license: Apache-2.0 metadata: version: "3.3" author: tt-a1i --- # Archify Run commands from your working directory. Unless the user names another location, give each new artifact request its own folder `.archify/<type>-<slug>-<YYYYMMDD-HHMMSS>/` there (local time, chosen once): keep the candidate and `<slug>.html` in it and reuse it for repairs. Native diagrams use `candidate.json` with `meta.output` relative to the working directory; explainers may use `candidate.archify.md` and a portable output filename. A later request gets a new folder. Replace `bin/archify.mjs` in every command with the installed package's absolute path, or its path relative to your working directory; CLI input and output paths resolve from that directory. For a native diagram of a real codebase, read [Repository authoring](references/repository-authoring.md) while tracing the requested behavior. A system description uses the native steps below; a frozen candidate uses the handoff path. ## Choose the artifact - For drawing a system, flow, schema or history, use a native diagram and the Type router. Deliver the requested diagram through `finalize`; code analysis is a separate mode. - For local repository architecture health, module coupling, cycles, layer violations, large files, complexity hotspots or refactoring orientation, use Code Analysis below; the agent handles commands and no architecture JSON is required. - For a guided walkthrough, animated/static dual-theme SVG, interactive stage player, or 1080p MP4/WebM video over one or more native diagrams, read [Story authoring](references/story-authoring.md). Use `story draft`/`attach` to add playback to a native Viewer, or `story validate`/`svg`/`stage`/`video` for declarative component choreography. - Only when the user explicitly asks to explain or visualize a pull request, a branch change or a `git diff`, or to