Better solutions start with understanding your architecture.
Miyorgi C4 turns architecture conversations into interactive diagrams. Describe a system or a design change to your coding agent. It updates the C4 model, and Miyorgi draws each view.
New to C4? Learn about the C4 model
Walkthrough
Play with itMiyorgi C4
The model will appear after the first prompt.
Modelling request
Model how I use a coding agent and the Miyorgi C4 skill to create an architecture model.
workspace "Miyorgi C4: model, visualise, share" {
model {
author = person "Architect" "Explores and improves the architecture."
agent = softwareSystem "Coding agent" "Uses the C4 skill to help model architecture."
miyorgi = softwareSystem "Miyorgi C4" "Helps turn architecture conversations into diagrams." {
skill = container "C4 skill" "Instructions that guide the coding agent." "Markdown files" {
tags "Files"
}
model = container "Architecture model" "Editable architecture and view definitions." "Structurizr DSL file" {
tags "Files"
}
}
author -> agent "Discusses architecture with"
agent -> skill "Reads modelling guidance from"
agent -> model "Updates"
}
views {
systemContext miyorgi "Context" {
title "Miyorgi C4"
description "Public product view: the architect works with a coding agent and Miyorgi."
include *
}
container miyorgi "Containers" {
title "Model architecture with the skill"
description "A focused first step: the agent reads skill instructions and edits the model. Visualisation is added next."
include *
}
styles {
element "Person" {
shape Person
}
element "Files" {
shape Folder
}
element "CLI" {
shape Terminal
}
element "Browser" {
shape WebBrowser
}
}
}
}
Modelling request
Add the Miyorgi CLI so I can visualise that model.
workspace "Miyorgi C4: model, visualise, share" {
model {
author = person "Architect" "Explores and improves the architecture."
agent = softwareSystem "Coding agent" "Uses the C4 skill to help model architecture."
miyorgi = softwareSystem "Miyorgi C4" "Helps turn architecture conversations into diagrams." {
skill = container "C4 skill" "Instructions that guide the coding agent." "Markdown files" {
tags "Files"
}
model = container "Architecture model" "Editable architecture and view definitions." "Structurizr DSL file" {
tags "Files"
}
cli = container "Miyorgi CLI" "Checks the model and produces diagrams locally." "Local CLI" {
tags "CLI"
}
viewer = container "Diagram viewer" "Interactive diagrams in the desktop preview pane." "Browser" {
tags "Browser"
}
}
author -> agent "Discusses architecture with"
agent -> skill "Reads modelling guidance from"
agent -> model "Updates"
agent -> cli "Runs"
cli -> model "Reads"
viewer -> cli "Loads diagrams from"
author -> viewer "Explores diagrams in"
}
views {
systemContext miyorgi "Context" {
title "Miyorgi C4"
description "Public product view: the architect works with a coding agent and Miyorgi."
include *
}
container miyorgi "Containers" {
title "Model and visualise architecture"
description "Public product parts: skill instructions, model files, CLI and browser viewer. Implementation internals are omitted."
include *
}
dynamic miyorgi "UpdateFlow" {
title "Update the architecture"
description "The agent edits the model; Miyorgi produces the updated diagram for review."
author -> agent "Requests a change"
agent -> skill "Reads modelling guidance"
agent -> model "Updates the model"
agent -> cli "Checks and previews the model"
cli -> model "Reads the model"
author -> viewer "Reviews the diagram"
viewer -> cli "Loads the updated diagram"
}
image miyorgi "Sequence" {
title "Update the architecture"
description "One illustrative edit and review, using the same model as the other views."
plantuml "UpdateFlow"
}
styles {
element "Person" {
shape Person
}
element "Files" {
shape Folder
}
element "CLI" {
shape Terminal
}
element "Browser" {
shape WebBrowser
}
}
}
}
Modelling request
Add sharing an SVG with a teammate.
workspace "Miyorgi C4: model, visualise, share" {
model {
author = person "Architect" "Explores and improves the architecture."
agent = softwareSystem "Coding agent" "Uses the C4 skill to help model architecture."
miyorgi = softwareSystem "Miyorgi C4" "Helps turn architecture conversations into diagrams." {
skill = container "C4 skill" "Instructions that guide the coding agent." "Markdown files" {
tags "Files"
}
model = container "Architecture model" "Editable architecture and view definitions." "Structurizr DSL file" {
tags "Files"
}
cli = container "Miyorgi CLI" "Checks the model and produces diagrams locally." "Local CLI" {
tags "CLI"
}
viewer = container "Diagram viewer" "Interactive diagrams in the desktop preview pane." "Browser" {
tags "Browser"
}
exported = container "Shared diagram" "An exported SVG for a teammate to review." "SVG file" {
tags "Files"
}
}
author -> agent "Discusses architecture with"
agent -> skill "Reads modelling guidance from"
agent -> model "Updates"
agent -> cli "Runs"
cli -> model "Reads"
viewer -> cli "Loads diagrams from"
author -> viewer "Explores diagrams in"
reviewer = person "Teammate" "Reviews the shared architecture diagram."
viewer -> exported "Exports"
reviewer -> exported "Reviews"
}
views {
systemContext miyorgi "Context" {
title "Miyorgi C4"
description "Public product view: the architect works with a coding agent and Miyorgi."
include *
}
container miyorgi "Containers" {
title "Model and visualise architecture"
description "Public product parts: skill instructions, model files, CLI and browser viewer. Implementation internals are omitted."
include *
}
dynamic miyorgi "UpdateFlow" {
title "Update the architecture"
description "The agent edits the model; Miyorgi produces the updated diagram for review."
author -> agent "Requests a change"
agent -> skill "Reads modelling guidance"
agent -> model "Updates the model"
agent -> cli "Checks and previews the model"
cli -> model "Reads the model"
author -> viewer "Reviews the diagram"
viewer -> cli "Loads the updated diagram"
}
image miyorgi "Sequence" {
title "Update the architecture"
description "One illustrative edit and review, using the same model as the other views."
plantuml "UpdateFlow"
}
styles {
element "Person" {
shape Person
}
element "Files" {
shape Folder
}
element "CLI" {
shape Terminal
}
element "Browser" {
shape WebBrowser
}
}
}
}
Walkthrough complete
Model how I use a coding agent and the Miyorgi C4 skill to create an architecture model.
Playground
Watch the walkthroughCustom system
Your first diagram will appear here.
Your model will appear after your first change.
What you get
To see how your architecture fits together and to spend more time improving it.
AI-assisted architecture modelling
Think through your architecture with your coding agent. It handles the model edits.
No drawing. No manual layout.
Miyorgi arranges the diagrams as your model changes.
Zero AI tokens for rendering
Layout and rendering run locally, without AI calls.
Your architecture, versioned in Git
Review model changes alongside code in the same pull request.
One C4 model. Connected views.
Explore context, containers, components and flows from a Structurizr DSL model.
Ready to share
Export SVG, PNG or interactive HTML for docs, slides and reviews.
Install the skill
Run in your terminal.
npx skills add miyorgi/skills --skill c4Then ask your coding agent to use the C4 skill to model this system
.
The skill helps you install the macOS CLI to check models and render diagrams locally.
Use the CLI on its own
Preview an existing Structurizr DSL workspace with the standalone CLI. Miyorgi supports a subset of the language.
- Install the CLI with Homebrew.
brew install --cask miyorgi/tap/c4 - Preview your workspace from its project folder.
miyorgi c4 serve --file workspace.dsl --view SystemContextUse a view key from your DSL in place of
SystemContext.
Standalone Mac download
Unzip the archive, then use the path to its bin/miyorgi executable in the preview command above.