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
   }
  }
 }
}
