C4

c4-architecture-documentation

Generates structured C4 model architecture documentation using Mermaid diagrams.

Install

mkdir -p .claude/skills/c4-architecture-documentation && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10486" && unzip -o skill.zip -d .claude/skills/c4-architecture-documentation && rm skill.zip

Installs to .claude/skills/c4-architecture-documentation

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Document system architecture using C4 model with context, container, component views and Mermaid diagrams
105 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Document system context
  • Create container diagrams
  • Generate component views
  • Build architectural decision records

How it works

Uses the C4 model framework and Mermaid diagrams to visualize system architecture at different levels of abstraction.

Inputs & outputs

You give it
System architecture details
You get back
C4 model documentation

When to use c4-architecture-documentation

  • Documenting system context views
  • Creating container and component diagrams
  • Generating security architecture documentation
  • Building architectural decision records

About this skill

C4 Architecture Documentation Skill

Purpose

Document MCP server architecture using C4 model for different abstraction levels with Mermaid diagrams.

When to Use

  • ✅ Documenting system architecture (ARCHITECTURE.md)
  • ✅ Security architecture documentation (SECURITY_ARCHITECTURE.md)
  • ✅ Future architecture planning (FUTURE_ARCHITECTURE.md)
  • ✅ Architecture decision records
  • ✅ Onboarding new developers

Required Documentation Portfolio

Current State

DocumentPurpose
ARCHITECTURE.mdComplete C4 models (Context, Container, Component)
DATA_MODEL.mdData structures, entities, relationships
FLOWCHART.mdBusiness process and data flows
STATEDIAGRAM.mdSystem state transitions and lifecycles
MINDMAP.mdSystem conceptual relationships
SWOT.mdStrategic analysis and positioning
SECURITY_ARCHITECTURE.mdCurrent security design and controls

Future State

DocumentPurpose
FUTURE_ARCHITECTURE.mdArchitectural evolution roadmap
FUTURE_DATA_MODEL.mdEnhanced data architecture plans
FUTURE_FLOWCHART.mdImproved process workflows
FUTURE_STATEDIAGRAM.mdAdvanced state management
FUTURE_MINDMAP.mdCapability expansion plans
FUTURE_SWOT.mdFuture strategic opportunities
FUTURE_SECURITY_ARCHITECTURE.mdPlanned security improvements

C4 Model Levels

Level 1: System Context

graph TB
    User[AI Assistant/Developer] -->|MCP Protocol| Server[European Parliament MCP Server]
    Server -->|REST API| EPAPI[European Parliament Open Data API]
    Server -->|JSON-LD| EPData[EP Data Portal]

Level 2: Container Diagram

graph TB
    Client[MCP Client] -->|stdio/SSE| MCPServer[MCP Server - Node.js/TypeScript]
    MCPServer -->|HTTP/JSON| EPClient[EP API Client]
    EPClient -->|REST| EPAPI[data.europarl.europa.eu]
    MCPServer -->|Zod| Schemas[Validation Schemas]

Level 3: Component Diagram

graph TB
    Tools[MCP Tools] --> Client[EP API Client]
    Resources[MCP Resources] --> Client
    Prompts[MCP Prompts] --> Client
    Client --> Cache[LRU Cache]
    Client --> RateLimiter[Rate Limiter]
    Client --> Validator[Zod Schemas]

Mermaid Diagram Standards

  • Use graph TB for top-bottom flow diagrams
  • Use sequenceDiagram for interaction flows
  • Use stateDiagram-v2 for state machines
  • Use mindmap for conceptual relationships
  • Include legends and descriptions

ISMS Policy References

When not to use it

  • When documenting non-system architecture
  • When simple text documentation suffices

Limitations

  • Requires adherence to C4 model levels
  • Mermaid diagrams are limited by text-based rendering

How it compares

Standardizes architectural documentation across projects rather than using ad-hoc diagramming.

Compared to similar skills

c4-architecture-documentation side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
c4-architecture-documentation (this skill)05moNo flagsIntermediate
adr04moNo flagsBeginner
wiki-page-writer53moNo flagsAdvanced
business-knowledge-workflow13moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

adr

landphieran

Record an Architecture Decision Record (ADR). Produces an immutable docs/architecture/ADR-[NNN]-[title].md capturing the context, options considered, decision made, and consequences. Use when making any significant technical decision about architecture, technology choice, or design pattern.

00

wiki-page-writer

microsoft

Generates rich technical documentation pages with dark-mode Mermaid diagrams, source code citations, and first-principles depth. Use when writing documentation, generating wiki pages, creating technical deep-dives, or documenting specific components or systems.

530

business-knowledge-workflow

TencentBlueKing

业务知识获取与 Skill 文档编写工作流。当用户需要熟悉新业务模块、从 iWiki 获取文档、结合代码分析生成架构文档、或将业务知识沉淀为 Skill 时使用。

15

c4-container

sickn33

Expert C4 Container-level documentation specialist. Synthesizes Component-level documentation into Container-level architecture, mapping components to deployment units, documenting container interfaces as APIs, and creating container diagrams. Use when synthesizing components into deployment containers and documenting system deployment architecture.

11

architecture-blueprint

jayeshthadani19

Comprehensive project architecture blueprint generator. Use when: generate architecture docs, create architectural blueprint, analyze codebase architecture, document tech stack, create Mermaid diagrams, map component dependencies, document API surface, detect architectural patterns, reverse-engineer

00

arc42-documentation

MikBin

arc42 architecture documentation template and guidance

00

Search skills

Search the agent skills registry