Archify diagrams

This directory contains architecture diagrams generated with the Archify skill bundled in Bob. Each diagram is a pair of files:

FilePurpose
<name>.architecture.jsonEditable source spec
<name>.htmlSelf-contained rendered artifact (open in any browser)
<name>.visual-check.*.pngScreenshot sidecars produced by visual-check

The JSON spec and the HTML are independent. Editing the JSON has no effect on the HTML until you re-deliver.


Prerequisites

node --version   # requires Node.js ≥ 18

The Archify CLI lives at:

~/.bob/skills/archify/bin/archify.mjs

All commands below assume you run them from the repo root (~/repos/sk/skupper-okf).


Editing an existing diagram

  1. Open the .architecture.json file and make your changes.

  2. Validate the spec:

    node ~/.bob/skills/archify/bin/archify.mjs \
      validate architecture generated/<name>.architecture.json \
      --quality showcase --json

    A showcase pass reports 9/9 checks, 0 errors, 0 warnings. Fix any reported diagnostics before proceeding.

  3. Deliver (re-render) the HTML:

    node ~/.bob/skills/archify/bin/archify.mjs \
      deliver architecture generated/<name>.architecture.json \
      generated/<name>.html --quality showcase
  4. Regenerate the screenshot sidecars:

    node ~/.bob/skills/archify/bin/archify.mjs \
      visual-check generated/<name>.html

Creating a new diagram from scratch

Ask Bob:

“Use archify to create a diagram for <topic>, source code is in <path>”

Bob will inspect the code, author a candidate JSON, validate, deliver, and run visual-check automatically.

The JSON lands in debug/ during authoring (archify’s working directory). After delivery, copy it to generated/:

cp debug/<name>.architecture.json generated/<name>.architecture.json

Diagram types

TypeUse for
architectureComponents, services, boundaries, infrastructure
workflowProcesses, approval gates, CI/CD pipelines
sequenceAPI call chains, request lifecycles
dataflowPipelines, ETL/ELT, data lineage
lifecycleState/status transitions, retries

Replace architecture in every command above with the appropriate type.


Key JSON fields

{
  "schema_version": 1,
  "diagram_type": "architecture",
  "meta": {
    "title": "My Diagram",
    "output": "my-diagram.html",   // used by deliver for default output path
    "quality_profile": "showcase"  // required for showcase validation
  },
  "components": [
    // id, type, label, sublabel, pos [x,y], size [w,h]
    { "id": "api", "type": "backend", "label": "API Server", "pos": [100, 100], "size": [150, 60] }
  ],
  "boundaries": [
    // kind: "region" | "security-group" | "cluster"
    { "kind": "region", "label": "My Service", "wraps": ["api"] }
  ],
  "connections": [
    // from/to reference component ids; variant: "dashed" | "security" | "emphasis"
    { "id": "c1", "from": "client", "to": "api", "label": "REST", "variant": "emphasis" }
  ],
  "cards": [
    // supporting detail shown below the diagram
    { "dot": "cyan", "title": "My section", "items": ["Bullet one", "Bullet two"] }
  ]
}

Component types

frontend · backend · database · cloud · security · messagebus · external

Connection label placement

If a label overlaps a component or another label, use labelAt: [x, y] to pin it to an explicit coordinate. The validator reports the exact suggested coordinates in its diagnostic output.


Diagrams in this directory