---
name: "plantuml-c4-model-architecture"
description: "Document software systems across 4 abstraction levels with C4-PlantUML standards."
metadata:
  author: "C4-PlantUML"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "draw c4 context diagram plantuml"
  - "create c4 container architecture"
  - "document system boundary c4"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# PlantUML C4 Model Architecture Diagrams

Implements the C4 model (Context, Container, Component, Deployment) using C4-PlantUML: Person, System_Ext, ContainerDb, Rel(), and enterprise system boundaries.

## When to Invoke
Invoke this skill whenever you need to:
- draw c4 context diagram plantuml
- create c4 container architecture
- document system boundary c4

## Execution SOP & Rules
1. Include standard C4 library definitions: !include <C4/C4_Container>.
2. Declare elements using Person(alias, label, desc) and Container(alias, label, tech, desc).
3. Model interactions and protocols with Rel(from, to, "Submits payment", "HTTPS/JSON").
4. Keep diagram scope constrained to a single abstraction level per diagram.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
