Skip to main content
plugin

c4-architecture · softaworks — Claude Code plugin: C4 architecture diagrams

c4-architecture — a Claude Code plugin that generates architecture diagrams in C4 notation as Mermaid graphs. Use it to visualize system structure, document components, and show how parts interact.

MIT ★ 2,707 updated 2026-03-05

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add softaworks/agent-toolkit
/plugin install c4-architecture@agent-toolkit
Open on GitHub

What c4-architecture does

The plugin creates architecture diagrams following the C4 model, which breaks down a system into context, containers, components, and code levels. Diagrams render as Mermaid visuals, viewable directly in Claude Code or embedded in docs.

Works for microservices, external service integrations, and module dependencies. Helpful when you need to map out how a system is built before writing code or discussing design with your team.

Diagrams build from text descriptions that Claude generates on request. The Mermaid syntax is standard, so you can edit the output or move it elsewhere.

What it helps with

  • Visualize microservice architecture and how services connect
  • Document multi-level system structure in C4 notation
  • Create diagrams showing component interaction and external APIs
  • Generate Mermaid graphs from architecture descriptions

Example prompts for the agent

  • Draw a C4 diagram for an e-commerce platform with API, database, and payment service
  • Create a C4 architecture diagram for our microservice, showing containers and components
  • Generate a Mermaid diagram of how a mobile app talks to the backend and third-party APIs

How to install c4-architecture

Plugin marketplace

/plugin marketplace add softaworks/agent-toolkit
/plugin install c4-architecture@agent-toolkit

Step by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own

Questions about c4-architecture

How do I install c4-architecture in Claude Code?

Run two commands in order: /plugin marketplace add softaworks/agent-toolkit, then /plugin install c4-architecture@agent-toolkit. The plugin will be ready in Claude Code.

What does the c4-architecture plugin do?

It generates C4 model architecture diagrams as Mermaid graphs. You get a visual breakdown of your system at different levels, from overall context down to individual components.

What format are the diagrams in?

Diagrams use Mermaid syntax, which Claude Code renders as visuals. You can copy, edit, or paste them into documentation.

Source text

c4-architecture · MIT
Generate architecture documentation using C4 model Mermaid diagrams. Use when asked to create architecture diagrams, document system architecture, visualize software structure.

Skills: skills/c4-architecture

© softaworks · MIT · softaworks/agent-toolkit

Similar plugins

All plugins for Writing and docs →

c4-architecture by other authors comes first.

c4-architecture Seth Hobson Generates C4 architecture documentation through bottom-up codebase analysis, mapping containers and building context diagrams. CX Codex ★ 42,780repo stars architecture-diagrams aj-geddes Generates system architecture diagrams, data flows, and C4 models using code formats like Mermaid and PlantUML. Useful when documenting service design directly inside your coding agent. CX Codex +1 2,000installs c4-codebase-architecture lmammino c4-codebase-architecture — a skill that walks an agent through a repository and writes C4 architecture docs: system context, containers, components. Handy for onboarding or picking up someone else's code. CX Codex +1 ★ 24repo stars architecture-blueprint-generator official github architecture-blueprint-generator analyzes a codebase and creates an architecture blueprint with components, dependencies, and diagrams. Use it before extending a project or onboarding developers. CX Codex +1 12,196installs c4-context Seth Hobson Builds top-level C4 context documentation, covering a system, its people, and its external dependencies. Use it to produce a context diagram and map key user journeys. CX Codex ★ 42,780repo stars c4-code Seth Hobson c4-code is a Claude Code subagent that documents code at the C4 level. It runs on requests to map individual directories and modules. CX Codex ★ 42,780repo stars create-architecture-documentation davila7 create-architecture-documentation — a Claude slash command that turns your repo into architecture documentation: diagrams, ADRs and component descriptions. CX Codex +1 6,136installs

From the same set79

The whole set →
frontend-to-backend-requirements frontend-to-backend-requirements — a Claude Code plugin that extracts frontend data needs and formats them for backend developers. Use it when you need to pass a list of endpoints, data structures or request parameters. ★ 2,707repo stars excalidraw Plugin for working with Excalidraw files in Claude Code. Visualize system architecture, flowcharts, and diagrams without leaving the IDE. ★ 2,707repo stars draw-io Builds, edits, and reviews draw.io diagrams inside Claude Code. Useful for modifying raw XML layouts, adding AWS icons, and converting to PNG. ★ 2,707repo stars crafting-effective-readmes crafting-effective-readmes is a Claude Code plugin that generates and refines repository README files, matching templates and sections to the audience and project type. ★ 2,707repo stars backend-to-frontend-handoff-docs backend-to-frontend-handoff-docs creates API handoff documentation for frontend teams once backend development is finished. ★ 2,707repo stars skill-judge skill-judge — a Claude Code plugin that evaluates Agent Skills against official specifications and best practices. Use it to review SKILL.md files and skill packages, catching structural and formatting issues before publication. ★ 2,707repo stars plugin-forge plugin-forge — a Claude Code plugin that streamlines plugin creation and management, handling structure, manifests, and marketplace integration. Automates work with plugin.json, component setup, and version bumps. ★ 2,707repo stars command-creator command-creator builds custom slash commands for Claude Code. Helps convert routine multi-step workflows into reusable commands. ★ 2,707repo stars

Project sponsors

Companies that keep this analytics open