Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Structurizr

$ structurizr Official Low Risk
Structurizr · Design & Docs · Apache-2.0 · macos / linux / windows

Structurizr CLI (structurizr) validates Structurizr DSL/JSON workspaces and exports C4 views to PlantUML, Mermaid, WebSequenceDiagrams, static HTML, SVG/PNG, or Structurizr JSON. Local validate and export run offline without credentials, while push/pull sync with Structurizr cloud or on-premises workspaces.

FCRS-1.0 Score
81 /100
Good
Medium Confidence
Zero-Friction Install
brew install structurizr
CLI vs MCP Decision CLI Only

Validating workspace.dsl and exporting PlantUML/Mermaid/JSON diagrams runs directly on the local repository via structurizr.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

Deterministic validate and export -format json|mermaid|plantuml with clean exit codes, though single-dash -workspace flags are non-standard and logs are plain text.

  • validate provides zero-write syntax checking
  • export -format json emits structured workspace JSON
Trust & Safety 22 / 25

Offline validate and export are safe local operations; remote writes only happen on explicit push / lock subcommands.

  • Separate read/export vs. remote push/pull commands
Setup & Portability 11 / 15

Packaged via brew install structurizr and release zips, but requires a Java JRE/JDK and export -format png|svg requires browser tooling.

  • Java runtime dependency; PNG/SVG export uses browser renderer
Utility & Efficiency 13 / 15

Canonical C4 DSL tooling with multi-format exports (plantuml, c4plantuml, mermaid, json, static).

  • Rich C4 model validation and export targets
Maintenance & Lineage 8 / 10

Official Structurizr project maintained by Simon Brown / Structurizr under Apache-2.0.

  • Official Structurizr CLI distribution
Docs & Verifiability 8 / 10

Clear command and flag pages at docs.structurizr.com/cli.

  • Official docs at docs.structurizr.com/cli

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key Config File
Credential Storage

Local validate and export need no auth; push/pull take workspace -id, -key, and -secret flags or properties.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

CLI is free and open-source (Apache-2.0); optional Structurizr Cloud / Lite / On-premises hosting varies by edition.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Structurizr Agent Rules
- Note Structurizr CLI uses single-dash Java-style flags (`-workspace`, `-format`, `-output`), not `--` flags.
- Run `structurizr validate -workspace workspace.dsl` after any DSL edit.
- Never run `structurizr push` or pass `-key`/`-secret` unless explicitly syncing to a remote Structurizr server.

Agent-Ready Command Recipes

Safe Read-Only Queries

Validate a Structurizr DSL workspace
structurizr validate -workspace workspace.dsl

Parses and validates workspace.dsl syntax and model relationships without writing files.

Controlled Writes & Previews

Export C4 views to Mermaid or JSON
structurizr export -workspace workspace.dsl -format mermaid -output ./diagrams

Exports all workspace views as Mermaid .mmd files into ./diagrams (use -format json for workspace JSON).

Strengths for Agents

  • + Canonical C4 workspace.dsl validation and export to plantuml, mermaid, static, and json.
  • + Clean separation between offline validate/export and remote push/pull.

Caveats & Pitfalls

  • ! Requires Java runtime; single-dash flags (-workspace, -format) differ from POSIX -- conventions.
  • ! Direct -format png|svg export delegates to a headless browser renderer (exporting mermaid/plantuml is simpler).

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI