C4 Codebase Architecture

Helps an agent inspect a repository and produce C4 architecture documentation. Use this when reverse engineering a codebase, documenting system context, containers, components, or clarifying architecture from code and infrastructure.

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add lmammino/c4-codebase-architecture-skill --skill c4-codebase-architecture
Manual install
git clone --depth 1 https://github.com/lmammino/c4-codebase-architecture-skill.git /tmp/c4-codebase-architecture-skill
mkdir -p ~/.claude/skills
cp -r /tmp/c4-codebase-architecture-skill/skills/c4-codebase-architecture ~/.claude/skills/c4-codebase-architecture

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# C4 Model Codebase Documentation Skill

## Purpose

This skill helps an agent inspect a codebase and produce useful C4-style architecture documentation. It should combine evidence from the repository with targeted follow-up questions whenever code inspection alone is not enough to determine system boundaries, responsibilities, runtime topology, or business intent.

The skill should be pragmatic rather than dogmatic. The goal is not to force every repository into a perfect set of four diagrams, but to produce the clearest possible architecture view at the right level of detail.

---

## When to use this skill

Use this skill when the user wants to:

* understand the architecture of an existing codebase
* produce C4 documentation for a repository
* generate a system context, container, or component view
* onboard new engineers with architecture docs
* reverse engineer system structure from code and infrastructure definitions
* compare intended architecture with implemented architecture

This skill works best when the repository includes at least some of the following:

* source code
* infrastructure as code
* deployment descriptors
* README or docs
* API specifications
* CI/CD configuration
* test suites

---

## What this skill should produce

The skill should aim to produce some or all of the following, depending on what the codebase supports:

1. **System Context**

   * the system under study
   * human users or personas
Read the full skill on GitHub

Details

Skill name
c4-codebase-architecture
Path
skills/c4-codebase-architecture/SKILL.md
License
MIT
Repo updated
9 April 2026

FAQ

What does the C4 Codebase Architecture skill do?

Helps an agent inspect a repository and produce C4 architecture documentation. Use this when reverse engineering a codebase, documenting system context, containers, components, or clarifying architecture from code and infrastructure.

How do I install the C4 Codebase Architecture skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add lmammino/c4-codebase-architecture-skill --skill c4-codebase-architecture. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is C4 Codebase Architecture popular?

It lives in lmammino/c4-codebase-architecture-skill, which has 24 GitHub stars and 0 forks, and is included in 1 curated skill list.

Related skills

Reddit Skill

29

openslow/reddit-skill

通过 Reddit OAuth2 API 搜索和阅读 Reddit 帖子、评论和子版块内容。当用户要求搜索 Reddit 讨论、浏览子版块帖子、阅读 Reddit 帖子内容和评论、了解 Reddit 社区对某个话题的看法时使用此 skill。支持按时间范围和排序方式筛选,支持读取完整帖子正文和嵌套评论树。

Software Development

Ros Skill

27

lpigeon/ros-skill

Controls ROS/ROS2 robots via rosbridge WebSocket CLI. Use when the user asks about ROS topics, services, nodes, parameters, actions, robot movement, sensor data, or any ROS/ROS2 robot interaction.

Software Development

Olakunlevpn Filament Skills

25

olakunlevpn/olakunlevpn-filament-skills

Use when writing, reviewing, or refactoring Filament PHP v5 code -- resources, forms, tables, infolists, actions, widgets, panels, relation managers, multi-tenancy, testing, or plugin development. Always apply these standards to all Filament work.

Software Development

Ego Decision Layer

30

jiangkoumo/ego-decision-layer

多步线性浏览器任务(连续点击、翻页、搜索表单提交、导航跳转)的默认入口:用 `ego-decision-layer` 一条命令让决策层在单个 ego-browser 进程内闭环决策(默认 System One / Jev,可换本地 OpenAI 兼容后端;browser automation / multi-step click chain / form submit / navigation),不再每步退回大模型思考。单步动作、精确 DOM/选择器、批量抓取仍走 ego-browser 原生 API;也可把官方 ego-browser 技能入口接管成路由层。当任务涉及浏览器多步操作、要写 ego-browser nodejs 脚本(await import / fetch / 凭证落盘)时读它。

Software Development

Rails Conventions

19

ethos-link/rails-conventions

Modern Ruby and Rails application architecture, implementation, and review guidance for production codebases. Use when building or reviewing Ruby on Rails 8 features across models, controllers, routes, Hotwire, jobs, APIs, performance, security, and testing. Trigger for requests mentioning Rails 8, Active Record, Active Job, GoodJob, Solid Queue, Turbo/Stimulus, REST resources, migrations, code quality, naming, and production readiness.

Software DevelopmentIn 1 list

Betaflight

30

SebGalina/betaflight-claude-skill

Use whenever the user mentions Betaflight, FPV drone firmware, flight-controller config, PID/filter/rates tuning, or blackbox log analysis — or shares a Betaflight artifact: a CLI diff/dump (lines like 'diff all', 'set ', 'feature ', 'resource ') or a .bbl/.bfl blackbox log, even when not named as such — or runs a chirp tuning session via Sweep Studio / FPVLogForge (a chirp log ID to analyse, 'analyse log', 'résultat chirp', iterative Bode/step/Ms tuning). Covers flight symptoms (oscillations, wobble, propwash, jello, hot motors, drift), motor/ESC and RX/ELRS/CRSF setup, builds from 3" to 10"

Software Development

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.