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.
npx skills add coco-research/coco --skill c4-architecturegit clone --depth 1 https://github.com/coco-research/cocoWrote 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.
[](https://agentmods.dev/skills/coco-research/coco/c4-architecture)<a href="https://agentmods.dev/skills/coco-research/coco/c4-architecture"><img src="https://agentmods.dev/badge/skills/coco-research/coco/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.
<a href="https://agentmods.dev/skills/coco-research/coco/c4-architecture"><img src="https://agentmods.dev/badge/skills/coco-research/coco/c4-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.03572 |
| Opus 5.5 | $0.00016 | $0.01429 |
| Sonnet 5.5 | $0.00008 | $0.00714 |
| Haiku 4.5 | $0.00004 | $0.00357 |
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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 347 lines — stays where its author put it; the contents beside it link to each section on GitHub.
C4 Architecture Documentation
Generate architecture documentation using C4 model Mermaid diagrams. Use when asked to create architecture diagrams, document system architecture, visualize software structure, create C4 diagrams, or generate context/container/component/deployment diagrams. Triggers include "architecture diagram", "C4 diagram", "system context", "container diagram", "component diagram", "deployment diagram", "document architecture", "visualize architecture".
Workflow
- Understand scope — Determine which C4 level(s) are needed based on audience
- Analyze codebase — Explore the system to identify components, containers, and relationships
- Generate diagrams — Create Mermaid C4 diagrams at appropriate abstraction levels
- Document — Write diagrams to markdown files with explanatory context
C4 Diagram Levels
Select the appropriate level based on the documentation need:
| Level | Diagram Type | Audience | Shows | When to Create |
|---|---|---|---|---|
| 1 | C4Context | Everyone | System + external actors | Always (required) |
| 2 | C4Container | Technical | Apps, databases, services | Always (required) |
| 3 | C4Component | Developers | Internal components | Only if adds value |
| 4 | C4Deployment | DevOps | Infrastructure nodes | For production systems |
| - | C4Dynamic | Technical | Request flows (numbered) | For complex workflows |
Key Insight: "Context + Container diagrams are sufficient for most software development teams." Only create Component/Code diagrams when they genuinely add value.
Quick Start Examples
System Context (Level 1)
C4Context
title System Context - Workout Tracker
Person(user, "User", "Tracks workouts and exercises")
System(app, "Workout Tracker", "Vue PWA for tracking strength and CrossFit workouts")
System_Ext(browser, "Web Browser", "Stores data in IndexedDB")
Rel(user, app, "Uses")
Rel(app, browser, "Persists data to", "IndexedDB")
What ships with it
3 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.
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.
- 1mo ago Changed · +48 lines 916bad2f9a1c
- 3mo ago First seen · 299 lines · 40 tokens per session scan A a8a8d19bdc43
c4-architecture is a skill published in the GitHub repository coco-research/coco (323 stars, last pushed yesterday), licensed Apache-2.0. It adds 40 tokens to every session and 3,572 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
c4-architecture compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| c4-architecturecoco-research/coco | Skill | 323 | yesterday | Apache-2.0 | A | 40 | Claude Code, Codex |
| session-handoffwanshuiyin/HERO-Anti-OverDefense | Skill | 929 | 12d ago | MIT | A | 34 | Claude Code, Codex |
| proxmox-fullmarcusquinn/aidevops | Skill | 476 | today | MIT | A | 27 | Claude Code |
| a-philosophy-of-software-designciembor/agent-rules-books | Skill | 3.4k | 2mo ago | MIT | A | 33 | Claude Code, Codex |
| handoffChemaclass/agnostic-ai | Skill | 31 | today | MIT | A | 14 | Claude Code, Codex |
| template-autopoiesisdocxology/template | Skill | 25 | today | Apache-2.0 | A | 51 | Claude Code, Codex |
| template-publishdocxology/template | Skill | 25 | today | Apache-2.0 | A | 52 | Claude Code, Codex |