c4-architecture

c4-architecture is a skill for Claude Code from Peter-N91/hve-squad-mcp. It costs 63 tokens per session (1,235 once invoked), scanned A, a copy of c4-architecture, MIT.

A software architecture documentation tool based on the C4 model, a set of diagrams that show a system from broad context down to code structure. It creates or updates system context, container, component, and deployment diagrams through a chosen renderer.

In plain words
What is it for?
Use it to document existing systems, plan new ones, explain what users and external systems connect to, show separately deployable units, and map components to code.
Why use it?
It turns code or requirements into diagrams suited to different audiences, making system structure and deployment easier to discuss. It also keeps updates limited to the requested parts when the diagram format supports them.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to document existing systems, plan new ones, explain what users and external systems connect to, show separately deployable units, and map components to code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/peter-n91/hve-squad-mcp/c4-architecture
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Peter-N91/hve-squad-mcp --skill c4-architecture
Clone the repo
git clone --depth 1 https://github.com/Peter-N91/hve-squad-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for c4-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/peter-n91/hve-squad-mcp/c4-architecture/github.svg)](https://agentmods.dev/skills/peter-n91/hve-squad-mcp/c4-architecture)
Your own site
<a href="https://agentmods.dev/skills/peter-n91/hve-squad-mcp/c4-architecture"><img src="https://agentmods.dev/badge/skills/peter-n91/hve-squad-mcp/c4-architecture/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for c4-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/peter-n91/hve-squad-mcp/c4-architecture"><img src="https://agentmods.dev/badge/skills/peter-n91/hve-squad-mcp/c4-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,235 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.01235
Opus 5.5 $0.00025 $0.00494
Sonnet 5.5 $0.00013 $0.00247
Haiku 4.5 $0.00006 $0.00123

Measured 5d ago against content hash b100a480b723, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

c4-architecture scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to c4-architecture — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

host/upstream-runtime/.github/skills/hve-core/c4-architecture/SKILL.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

C4 Architecture Skill

Goal

Produce audience-appropriate C4 diagrams for existing systems from code or planned systems from requirements. Create new diagrams with the selected renderer, or update existing diagrams when their renderer is supported.

Supported Diagrams

These defaults apply when creating new diagrams. Updates change only what the request targets.

Diagram Generated by default User selection Answers
Level 1: System Context Yes Which system when several qualify Who uses the system and what does it interact with
Level 2: Container Yes None What separately deployable or runnable units make up a system
Level 3: Component Yes Which containers when several qualify What major building blocks sit inside one container
Level 4: Code On request only Which component to detail How one component maps to code structures
Deployment Offered when evidenced Opt-in and which environment Where container instances run in one named environment

Supported Renderers

Read the selected renderer reference in full before generating or modifying diagrams. Apply every relevant rule.

Renderer Reference Status
mermaid references/renderer-mermaid.md Default

Process

Follow these steps when activating this skill:

  1. Ensure the renderer required by the user is available.
  2. Inspect the relevant code and documentation to identify architecture elements, boundaries, relationships, and deployment evidence.
  3. Read and apply the C4 modelling instructions, including its modelling-uncertainty decision.
  4. When creating new diagrams, identify which diagrams, systems, and levels are required. Ask the user to clarify if unclear from context.
  5. When updating an existing diagram document, read the complete document first and apply only the requested model delta. Preserve existing nodes, relationships, comments, layout controls, and stable identifiers unless the requested change affects them. Ask the user before removing content whose relevance is uncertain.
  6. Before responding, validate each created/edited diagram rule by rule against the selected renderer reference and correct every violation.

Read the full file on GitHub · 83 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 83 lines · 63 tokens per session scan A b100a480b723

Subscribe to this mod's changes

c4-architecture is a skill published in the GitHub repository Peter-N91/hve-squad-mcp (3 stars, last pushed 2d ago), licensed MIT. It adds 63 tokens to every session and 1,235 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to c4-architecture, differing in 0 lines, and is treated as a copy.

Related

c4-architecture compared with skills from other repositories

c4-architecture next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
c4-architecturePeter-N91/hve-squad-mcpSkill32d agoMITA63Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill331k3d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code