Diagrams with Archify
Archify turns a small typed JSON description into a self-contained, explorable HTML diagram (inline SVG, light and dark themes). It is a separate Apache-2.0 project that is not bundled here.
- Check it is installed. Look for an
archifyskill in the agent's skills folder. If it is missing, tell the user it comes fromtt-a1i/archify(npx -y skills@latest add https://archify.si --skill archify --agent <agent> --global --copy) and install it only after they say yes. Then follow that skill's ownSKILL.md; it is the source of truth for the schemas and commands. - Pick the type from the question:
architecture(components and boundaries),workflow(processes, approvals, CI/CD),sequence(request chains and returns),dataflow(pipelines, lineage),lifecycle(states and transitions). - Author fresh JSON. Use one matching schema and one matching example as a shape only; write new ids, wording and layout from the user's facts. For Mermaid input read the topology and meaning, then author new JSON instead of converting styling.
- Draw only what you know. Components, arrows and labels must come from the code, the docs or what the user said. Mark anything you inferred as an assumption in the diagram's notes.
- Validate before you deliver. Run the Archify validator after every edit and its
delivercommand for the final file. A non-zero exit is a failure: say so and fix the spec, never describe it as done. - Skip the update check. Archify's skill asks the agent to contact a GitHub Pages URL to look for a newer version; do that only if the user asks.
- Hand over the HTML path, the validator result and the list of assumptions.
Static output is the default; add motion only when the user asks for a presentation. Existing code maps belong to graft and graphify; this skill is for diagrams a person will read.