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 alexeyshishin/as-skill --skill docs-c4git clone --depth 1 https://github.com/alexeyshishin/as-skillWrote 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/alexeyshishin/as-skill/docs-c4)<a href="https://agentmods.dev/skills/alexeyshishin/as-skill/docs-c4"><img src="https://agentmods.dev/badge/skills/alexeyshishin/as-skill/docs-c4/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/alexeyshishin/as-skill/docs-c4"><img src="https://agentmods.dev/badge/skills/alexeyshishin/as-skill/docs-c4.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.00172 | $0.02032 |
| Opus 5.5 | $0.00069 | $0.00813 |
| Sonnet 5.5 | $0.00034 | $0.00406 |
| Haiku 4.5 | $0.00017 | $0.00203 |
Grade A, and why
docs-c4 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 12d 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 — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.
docs-c4 — C4 diagrams from the code
Goal: a diagram where a newcomer sees in a minute which parts exist, who calls whom and over what — and every box and arrow traces to the code.
Before starting, read references/rules/docs-conventions.md — section C4 diagrams.
Assets:
references/model-format.md— model fields, node kinds, layering, layout knobs, check codes.references/example-container.json— a complete container model to start from.scripts/check-c4.py— model checker; also flags a stale SVG and checks an EN/RU pair (Step 5).scripts/render.py— layout, label placement, SVG;--pngthrough headless Chrome (Step 6).
Both scripts need only python3 3.8+; --png needs Chrome or Chromium (CHROME_BIN to override).
Step 1. Pick level, scope and mode
| level | shows | scope |
|---|---|---|
context |
the system as one box, the people who use it, the external systems around it | the whole system |
container (default) |
deployable units and stores inside the system, plus the people and external systems they talk to | the whole system |
component |
parts inside one container and what they call | one container |
| situation | mode |
|---|---|
| no model for this level and scope | new |
| model exists, the code moved on | update — edit the model, re-render |
| model fine, SVG stale or layout poor | re-render — Step 6 only |
the doc that embeds the diagram has a _RUS version |
pair — also Step 6.5 |
Files: docs/architecture/c4-<level>.json + .svg next to it; component level adds the scope: c4-component-api.json. An existing location in the project wins. Ask only when the user's words don't settle level or scope.
For update read the model and git log -3 --format='%h %cs %s' -- <model> first.
Step 2. Gather facts from the code
Everything on the diagram must trace to a file. Read:
What ships with it
6 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.
- 12d ago Changed · +125 lines · +147 tokens per session 0b4032f0cc2f
- 13d ago First seen · 11 lines · 25 tokens per session scan A 7c39eb6e82f9
docs-c4 is a skill published in the GitHub repository alexeyshishin/as-skill (6 stars, last pushed yesterday), licensed MIT. It adds 172 tokens to every session and 2,032 once invoked, about $0.0007 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-11-17.
docs-c4 compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| docs-c4alexeyshishin/as-skill | Skill | 6 | yesterday | MIT | A | 172 | Claude Code, Codex |
| obsidiangapmiss/obsidian-plugin-skill | Skill | 204 | 15d ago | MIT | A | 105 | Claude Code, Codex |
| guidealeksander-dytko/ai-pm-workspace | Skill | 34 | 5d ago | MIT | A | 16 | Claude Code |
| personalizealeksander-dytko/ai-pm-workspace | Skill | 34 | 5d ago | MIT | A | 26 | Claude Code |
| todayaleksander-dytko/ai-pm-workspace | Skill | 34 | 5d ago | MIT | A | 22 | Claude Code |
| weekly-planaleksander-dytko/ai-pm-workspace | Skill | 34 | 5d ago | MIT | A | 19 | Claude Code |
| create-epicaleksander-dytko/ai-pm-workspace | Skill | 34 | 5d ago | MIT | A | 20 | Claude Code |