/selamy-skills:c4-architecturefrom selamy-skills
Use when documenting a system's architecture, not just drawing one diagram. Apply the C4 model — context, container, component, deployment — choosing the level by audience, stopping at context plus container for most teams, and writing the result into versioned markdown.
Ships in selamy-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
C4 is a methodology, not a notation: it documents a system at four zoom levels so each audience sees the right amount of detail. The discipline is choosing the level deliberately and stopping early — most teams over-diagram.
| Level | Diagram | Audience | Shows | When |
|---|---|---|---|---|
| 1 | C4Context | Everyone | The system + the people/systems around it | Always |
| 2 | C4Container | Technical | Apps, services, databases inside it | Always |
| 3 | C4Component | Developers | Internals of one container | Only if it adds value |
| 4 | C4Deployment | Ops | Infra nodes the containers run on | Production systems |
Context + Container is enough for most software teams. Reach for Component only when one container is complex enough that its internals are a real question; reach for Deployment when how-it-runs matters. A diagram nobody asked a question about is maintenance debt.
mermaid-diagrams
for the rendering mechanics).C4Context
title System Context — Orders Service
Person(customer, "Customer", "Places orders")
System(orders, "Orders Service", "Accepts and tracks orders")
System_Ext(payments, "Payments", "Third-party processor")
Rel(customer, orders, "Places order")
Rel(orders, payments, "Charges via", "HTTPS")
Architecture docs are only valuable if they match reality — diagram the containers that actually deploy, and update the C4 markdown in the same PR that changes the architecture. A pretty diagram of a system that no longer exists is worse than none.
Adapted from the MIT-licensed softaworks/agent-toolkit c4-architecture skill.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub selamy-labs/agent-skills --plugin selamy-skills111 skills in this plugin
/adaptive-estimationUse when tracking a slowly-varying latent quantity from noisy measurements with quantifiable uncertainty — a drifting metric, capacity, latency trend, or confidence. Prefer a Kalman-style adaptive estimator over fixed moving averages or static thresholds./adaptive-loop-budgetingUse when an autonomous loop needs explicit limits on attempts, time, cost, tool calls, verification depth, or risk, and a clear stop, continue, yield, or escalate decision./adopt-and-deleteUse when adopting a shared module, library, chart, or service, or doing any consolidation, migration, or refactor that supersedes existing code. The change that adds the replacement must REMOVE what it replaced, in the same atomic change.Other plugins' skills for the same job