c4

Keep C4 diagrams in sync with codebase changes.

8|1|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/toejough/engram --skill c4-toejough
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: c4
Source: https://github.com/toejough/engram/tree/main/skills/c4
Command: npx skills add https://github.com/toejough/engram --skill c4-toejough

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Keeps C4 diagrams in sync with the codebase.

Core Features & Use Cases

  • Automated Diagram Lifecycle: Create, update, and review C4 diagrams across L1–L4.
  • Drift Detection & Propagation: Enforce cross-links and propagate changes to related diagrams.
  • Conflict-aware editing: Surface code-vs-intent conflicts and request user decisions before writes.

Quick Start

Invoke the C4 workflow to draft an initial Level 1 diagram for a target repository and review the draft before writing.

Frequently Asked Questions about c4

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

FAQPage Schema
How do I keep C4 diagrams in sync with my codebase?

To keep C4 diagrams in sync with your codebase, you need a drift-aware workflow that enforces cross-links, propagation across related artifacts, and mermaid conventions. This approach detects conflicts between code and diagram intent before writing updates.

What is diagram drift in C4 architecture and how do I manage it?

Diagram drift in C4 architecture occurs when code changes make diagrams outdated. You manage drift by enforcing a discipline that propagates changes across related L1–L4 diagrams and surfaces code-vs-intent conflicts for user decisions before writing.

How do I generate a Level 1 C4 diagram using mermaid for a new repository?

To generate a Level 1 C4 diagram using mermaid, invoke a C4 workflow to draft the initial diagram for your target repository. The draft will conform to mermaid conventions and frontmatter rules, allowing you to review it before writing.

Can I enforce cross-links between Level 1 to 4 C4 diagrams automatically?

Yes, you can enforce cross-links between Level 1 to 4 C4 diagrams automatically. The workflow applies a drift discipline that ensures changes propagate across related artifacts and maintains structural consistency throughout the hierarchy.

Does the C4 drift workflow handle conflict-aware editing when diagrams and code differ?

Yes, the C4 drift workflow handles conflict-aware editing when diagrams and code differ. It surfaces code-vs-intent conflicts and requests user decisions before applying any writes, ensuring updates are deliberate and accurate.