c4-model

Generate synchronized C4 architecture diagrams in Mermaid syntax from source code analysis.

1|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/agnaldo4j/kanban-vision-api-kt --skill c4-model-agnaldo4j
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: c4-model
Source: https://github.com/agnaldo4j/kanban-vision-api-kt/tree/main/.claude/skills/c4-model
Command: npx skills add https://github.com/agnaldo4j/kanban-vision-api-kt --skill c4-model-agnaldo4j

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of architecture documentation drift by ensuring that diagrams remain synchronized with the evolving codebase, preventing outdated or inaccurate system representations.

Core Features & Use Cases

  • Automated Diagram Generation: Creates accurate Mermaid-based C4 diagrams (Context, Container, Component) directly from code analysis.
  • Wiki Synchronization: Maintains a centralized, versioned documentation hub for architecture, operations, and observability.
  • Use Case: When a developer adds a new microservice or API route, this Skill analyzes the project structure and updates the corresponding architecture wiki pages to reflect the new system topology.

Quick Start

Invoke the c4-model skill to analyze the recent changes in the http_api module and update the corresponding architecture diagrams in the wiki.

Frequently Asked Questions about c4-model

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

FAQPage Schema
How do I automate C4 architecture diagrams from source code analysis?

You can automate C4 architecture diagrams by analyzing Gradle modules, domain models, and HTTP route definitions to generate Mermaid syntax for system context, container, and component diagrams. This ensures diagrams accurately reflect the current codebase topology.

What's the best way to keep architecture documentation synchronized with a wiki repository?

To keep architecture documentation synchronized within a wiki repository, you can analyze recent project structure changes and automatically update the corresponding architecture pages. This prevents documentation drift when new microservices or API routes are added.

Can I generate Mermaid sequence diagrams for HTTP routes using the C4 model?

Yes, you can generate Mermaid sequence diagrams for HTTP routes alongside system context, container, and component diagrams. The Skill performs static analysis of route definitions to accurately map interactions within the software architecture.

Does static analysis of Gradle modules require any specific dependencies to map software design?

No specific dependencies are required to perform static analysis of Gradle modules for software design mapping. The Skill directly analyzes the project structure and domain models to extract architectural information for documentation.

How do I update wiki architecture pages when a developer adds a new microservice?

To update wiki architecture pages when a microservice is added, the Skill analyzes the modified project structure and regenerates the corresponding C4 diagrams. This maintains a centralized, versioned documentation hub reflecting the new system topology.