c4

    1

    Scaffold, model, and export C4 architecture diagrams using Structurizr DSL and Nygard ADRs.

    $5

    /mo

    Subscription · cancel anytime

    Secure checkout via Stripe

    • Always the latest version
    • Delivered live to your agent via MCP
    • Cancel anytime, access ends at period end
    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    c4

    Example session with this skill installed

    We just added a Redis cache between the API gateway and the Postgres DB. Update the C4 workspace to reflect this and export it as a Mermaid diagram.

    • Read your context and instructions
    • Compiled the output

    I have updated the workspace.dsl to include the new Redis cache container and established the relationships between the API Gateway and the PostgreSQL database. I also generated the updated Mermaid diagram files.

    Architecture Update

    ActionComponentDescription
    AddedcacheRedis container for session storage and query caching.
    Updatedapi_gatewayAdded dependency on cache for read-aside operations.
    UpdateddatabaseMaintained as primary persistence layer.
    ExportedmermaidGenerated container-diagram.mmd for documentation.
    graph TD
      subgraph "System Boundary"
        gateway[API Gateway]
        cache[(Redis Cache)]
        db[(Postgres DB)]
      end
    
      gateway -->|Reads/Writes| cache
      gateway -->|Persists| db
      cache -.->|Invalidates| db
    

    Next steps

    1. Review the new relationships in workspace.dsl.
    2. Commit the generated .mmd file to the docs/architecture directory.
    3. Run c4 preview if you want to see the updated styles in your browser.
    $5/mo

    Subscription · always the latest version

    • Secure checkout via Stripe
    • Cancel anytime
    • Delivered live via MCP (optional)

    About this skill

    Architecture diagrams often rot because the friction of updating DSLs or manual drawing is too high. This skill automates the creation and maintenance of C4 model architecture using the Structurizr DSL, ensuring your system design stays in sync with your implementation.

    What it does

    • Scaffold workspaces by generating the initial Structurizr DSL structure, ADR folders, and documentation templates.
    • Model infrastructure to map codebases, AWS environments, or Kubernetes clusters into C4 containers and components.
    • Manage ADRs using the Nygard format to record, supersede, and track architectural decisions alongside the model.
    • Export diagrams into multiple formats including Mermaid, PlantUML, JSON, and static HTML sites for documentation.
    • Live preview diagrams in a local browser with auto-reload capabilities during the editing process.
    • Validate syntax to catch Structurizr DSL errors before they break your CI/CD or documentation pipeline.

    How it works

    1. Dispatch by identifying if the project needs a new workspace, an update to an existing model, or a validation check.
    2. Apply conventions to ensure ADR numbering, naming, and style guides match the project's architectural standards.
    3. Execute workflows to modify workspace.dsl, add views, or update deployment environments.
    4. Render and export the final visual assets for use in READMEs, wikis, or stakeholder presentations.

    Frameworks & tools

    This tool uses the Structurizr DSL, Nygard Architecture Decision Records (ADRs), PlantUML, and Mermaid. It interacts with the local filesystem and Docker for rendering and validation.

    Why this beats prompting it yourself

    Generic LLMs often hallucinate DSL syntax or ignore strict ADR numbering conventions. This skill follows specific workflows for validation and style consistency, preventing the broken relationships and syntax errors common in manual prompting.

    Use cases

    • Scaffold a new architecture-as-code repository for a microservices project.
    • Update a C4 container diagram after adding a new database or message queue.
    • Export Mermaid diagrams from a DSL to embed directly into GitHub READMEs.
    • Track a major technology shift by recording a Nygard ADR that supersedes a previous decision.

    Known limitations

    Requires a local environment capable of running Bash and Docker for full rendering and validation features. DSL files must be structured according to the tool's expected workspace layout.

    How to use

    Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean 6 days ago

    Listed6 days ago

    What's inside

    Frequently Asked Questions