# C4 Architecture C4 Architecture

Generate comprehensive C4 architecture documentation for an existing...

- Repository: https://github.com/rmyndharis/antigravity-skills (1913 stars)
- Category: Writing
- License: MIT
- Last updated: 2026-10-14
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add rmyndharis/antigravity-skills --skill c4-architecture-c4-architecture -g -a claude-code -y`
Codex: `npx skills add rmyndharis/antigravity-skills --skill c4-architecture-c4-architecture -g -a codex -y`
Cursor: `npx skills add rmyndharis/antigravity-skills --skill c4-architecture-c4-architecture -g -a cursor -y`
Gemini CLI: `npx skills add rmyndharis/antigravity-skills --skill c4-architecture-c4-architecture -g -a gemini-cli -y`

## Description

Generate comprehensive C4 architecture documentation for an existing repository/codebase using a bottom-up analysis approach.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# C4 Architecture Documentation Workflow

Generate comprehensive C4 architecture documentation for an existing repository/codebase using a bottom-up analysis approach.

[Extended thinking: This workflow implements a complete C4 architecture documentation process following the C4 model (Context, Container, Component, Code). It uses a bottom-up approach, starting from the deepest code directories and working upward, ensuring every code element is documented before synthesizing into higher-level abstractions. The workflow coordinates four specialized C4 agents (Code, Component, Container, Context) to create a complete architectural documentation set that serves both technical and non-technical stakeholders.]

## Use this skill when

- Working on c4 architecture documentation workflow tasks or workflows
- Needing guidance, best practices, or checklists for c4 architecture documentation workflow

## Do not use this skill when

- The task is unrelated to c4 architecture documentation workflow
- You need a different domain or tool outside this scope

## Instructions

- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.

## Overview

This workflow creates comprehensive C4 architecture documentation following the [official C4 model](https://c4model.com/diagrams) by:

1. **Code Level**: Analyzing every subdirectory bottom-up to create code-level documentation
2. **Component Level**: Synthesizing code documentation into logical components within containers
3. **Container Level**: Mapping components to deployment containers with API documentation (shows high-level technology choices)
4. **Context Level**: Creating high-level system context with personas and user journeys (focuses on people and software systems, not technologies)

The rest: https://github.com/rmyndharis/antigravity-skills/blob/HEAD/skills/c4-architecture-c4-architecture/SKILL.md
