dxarchitect

Generate standardized C4 architecture maps with mermaid diagrams from codebases.

3|2|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/mitchellfyi/dex --skill dxarchitect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dxarchitect
Source: https://github.com/mitchellfyi/dex/tree/main/skills/dxarchitect
Command: npx skills add https://github.com/mitchellfyi/dex --skill dxarchitect

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the tedious, error-prone manual work of creating and maintaining C4-level architecture documentation for software projects, which frequently drifts out of sync with the actual codebase as the system evolves.

Core Features & Use Cases

  • C4 Model Generation: Automatically creates a standardized C4 architecture map covering System Context, Container, and Component levels, with mermaid diagrams and prose fallbacks for broad renderer compatibility.
  • Codebase-Aware Mapping: Reads your project's code, manifests, and existing documentation to accurately identify people, external systems, containers, and components without requiring manual input.
  • Strict Notation Enforcement: Applies consistent C4 vocabulary and formatting rules to eliminate ambiguous or non-standard architecture documentation.
  • Use Case: A team that has just inherited a legacy codebase can use this skill to generate a clear, accurate architecture map in minutes instead of spending weeks reverse-engineering the system.

Quick Start

Invoke the dxarchitect skill to bootstrap or refresh a C4-level architecture map for your active software project.

Frequently Asked Questions about dxarchitect

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

FAQPage Schema
How do I generate C4 architecture diagrams from an existing codebase?

To generate C4 architecture diagrams from a codebase, you can automate the extraction of System Context, Container, and Component levels. This reads project manifests and code to output standardized mermaid diagrams with prose fallbacks.

What is the best way to keep software architecture documentation in sync with code?

Keeping software architecture documentation in sync involves automating map generation directly from the codebase. This eliminates manual documentation drift by applying strict C4 vocabulary enforcement to your evolving project structure.

Can I create mermaid diagrams for a C4 model without manual input?

Yes, you can create mermaid diagrams for a C4 model without manual input. The process reads your code and manifests to automatically identify people, external systems, and components, ensuring reliable renderer compatibility.

Does C4 architecture documentation work for legacy codebase onboarding?

C4 architecture documentation works effectively for legacy codebase onboarding. It allows teams to generate a clear, accurate architecture map in minutes instead of spending weeks reverse-engineering the inherited system.

How do I standardize C4 vocabulary across multiple architecture documentation outputs?

To standardize C4 vocabulary across architecture documentation outputs, apply strict notation enforcement during generation. This eliminates ambiguous or non-standard architecture documentation by enforcing consistent formatting rules.

What are the limitations of automated codebase analysis for component diagrams?

Automated codebase analysis for component diagrams relies on reading code and manifests to identify components accurately. Without proper project context management, the generated architecture map may lack necessary abstraction levels.