[input-file] Typed IR file
Optional path to a typed JSON IR diagram. Omit it only when the IR will be authored in-session before compile.
/ak:diagram architecture.json --format html --out ./build/diagram.html Quick Ref / Command
Engineer Kit
/ak:diagram
Compile typed JSON IR into validated interactive system maps, SVG, embeddable fragments, and self-contained HTML readers without browser dependencies.
Select archetype
Author typed IR
Apply schema invariants
Choose compile flags
Rule 01
Pick by target artifact, not by the word diagram.
Rule 02
Typed JSON IR is the source; compile it offline to SVG, fragment, or HTML.
Rule 03
Identical IR bytes must emit identical output bytes.
Rule 04
Whiteboard sketches, print charts, and inline Mermaid belong to other skills.
Core lanes from input to output, aligned with the command's real execution path.
Start
Input, scope, route
Work
Agent / skill execution
Verify
Gate, review, validation
Close
Report, handoff, artifact
How to invoke the skill: syntax, positional arguments, shared options, then each subcommand with its own syntax and outcome.
Syntax
/ak:diagram [input-file] [--format <svg|fragment|html>] [--preset <classic|signal-flow|blueprint|editorial>] [--theme <light|dark>] [--out <path>][input-file] Typed IR file
Optional path to a typed JSON IR diagram. Omit it only when the IR will be authored in-session before compile.
/ak:diagram architecture.json --format html --out ./build/diagram.html --format <svg|fragment|html> Output format
Compile to a clean vector SVG, an embeddable scoped HTML fragment, or a standalone interactive HTML reader. Default compile path is the self-contained HTML reader.
/ak:diagram architecture.json --format svg --out ./build/diagram.svg --preset <classic|signal-flow|blueprint|editorial> Visual preset
classic is a clean slate, signal-flow uses emerald/cyan glow, blueprint is technical dark blue, and editorial is warm serif.
/ak:diagram architecture.json --format fragment --preset signal-flow --theme dark --theme <light|dark> Color theme
light or dark theme for the compiled SVG, fragment, or HTML reader. Finite trace animation, if requested, stays at most eight seconds and respects reduced motion.
/ak:diagram architecture.json --format html --theme dark --out ./build/diagram.html --out <path> Output path
Destination file for the compiled artifact. Identical IR bytes emit identical SHA-256 output bytes across environments.
/ak:diagram architecture.json --format html --out ./build/diagram.html --format svg|fragment|html Compile format
--preset Visual preset
--theme Light or dark
--out Output path
Zero network
Compilation operates offline in pure Node.js; no remote calls, telemetry, or font downloads.
Reduced motion
Trace animation stays finite and disables automatically under prefers-reduced-motion.
Concrete invocations for each flag, subcommand, mode, or route available in the live workflow.
/ak:diagram architecture.json /ak:diagramarchitecture.json--formathtml--themedark--out./build/diagram.html
/ak:diagramarchitecture.json--formatsvg--out./build/diagram.svg
/ak:diagramarchitecture.json--formatfragment--presetsignal-flow--themedark
Compiled diagram
Pattern
<out>.html | <out>.svg | scoped HTML fragment Self-contained interactive HTML reader, clean vector SVG, or embeddable scoped fragment compiled from typed JSON IR.