c4-documentation

Generate C4 architecture documentation and diagrams from project inputs.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/Anders-planck/opencode-config --skill c4-documentation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: c4-documentation
Source: https://github.com/Anders-planck/opencode-config/tree/main/skills/c4-documentation
Command: npx skills add https://github.com/Anders-planck/opencode-config --skill c4-documentation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables teams to produce consistent C4 architecture documentation and diagrams across projects, with narrative alignment and render validation.

Core Features & Use Cases

  • Template-driven C4 documentation: Provides reusable templates for System Context, Container, Component, and Deployment views, ensuring consistency across systems.
  • Diagram validation guidance: Includes Mermaid/Structurizr DSL validation to ensure diagrams render correctly.
  • Narrative alignment guidance: Offers narrative structure and a C4 documentation template for cohesive storytelling.

Quick Start

Document your system by starting with a System Context diagram for your primary system.

Frequently Asked Questions about c4-documentation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate C4 architecture diagrams and documentation from project inputs?

You can generate C4 architecture diagrams and documentation by using template-driven structures for System Context, Container, Component, and Deployment views. This approach ensures narrative alignment and applies render validation to verify diagram accuracy across projects.

What is the best way to maintain narrative alignment in architecture documentation?

Maintaining narrative alignment in architecture documentation involves using a standardized C4 documentation template that structures your storytelling cohesively. This ensures the textual narrative matches the visual diagrams across multiple architectural levels.

Can I use Mermaid and Structurizr DSL for C4 diagram definitions and validation?

Yes, you can use both Mermaid and Structurizr DSL for C4 diagram definitions and validation. The process includes validation steps to ensure your diagrams render correctly and accurately reflect your system architecture.

How do I validate that my C4 architecture diagrams render correctly?

To validate that your C4 architecture diagrams render correctly, you apply Mermaid or Structurizr DSL validation steps during generation. This render validation ensures your System Context, Container, and Component diagrams display accurately.

Do I need templates to create consistent C4 documentation across multiple projects?

Yes, you need templates to create consistent C4 documentation across multiple projects. Template-driven documentation provides reusable structures for System Context, Container, Component, and Deployment views, ensuring standardization across different systems.