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 agentmods add skills/stefanrossmeier/ai-craftkit/c4docnpx skills add stefanrossmeier/ai-craftkit --skill c4docgit clone --depth 1 https://github.com/stefanrossmeier/ai-craftkitWrote 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/stefanrossmeier/ai-craftkit/c4doc)<a href="https://agentmods.dev/skills/stefanrossmeier/ai-craftkit/c4doc"><img src="https://agentmods.dev/badge/skills/stefanrossmeier/ai-craftkit/c4doc.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.02722 |
| Opus 5 | $0.00000 | $0.01361 |
| Sonnet 5 | $0.00000 | $0.00544 |
| Haiku 4.5 | $0.00000 | $0.00272 |
Grade A, and why
c4doc 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 4d 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 — 523 lines — stays where its author put it; the contents beside it link to each section on GitHub.
C4 Architecture Documentation Skill
Command: /c4doc
Use this skill when the user calls /c4doc or asks to generate or refresh C4 architecture documentation for the current repository.
Purpose
Use this skill to generate or refresh practical C4-style architecture documentation for a software repository.
The generated documentation must be stored in Markdown files and must use standard Mermaid diagrams that render in GitHub Markdown. Do not use Mermaid C4 syntax. Use ordinary flowchart diagrams for static architecture views and sequenceDiagram only for dynamic runtime flows.
The goal is not to force every repository into every C4 level. The goal is to create the minimum useful architecture documentation set for the repository, with clear diagrams, evidence, assumptions, and review notes.
Slash Command
Use this skill when the user calls:
/c4doc
The skill should inspect the current repository, create or refresh repository-specific C4 architecture documentation, and treat any additional user text as scoping guidance for which systems, views, or areas need attention.
Primary Output Location
Create or update files under the repository being documented:
docs/c4-documentation/
Recommended structure:
docs/c4-documentation/
index.md
architecture-model.md
generation-report.md
system-context.md
container.md
components/
<container-name>.md
code/
<component-name>.md
deployment/
<environment-or-platform>.md
dynamic/
<use-case>.md
Use stable, lowercase, hyphenated filenames.
Lightweight Provenance Block
Every generated Markdown document must include a small provenance block near the top, directly after the title and before status fields, summary tables, or document metadata.
This applies to generated C4 indexes, architecture models, generation reports, system context views, container views, component views, code views, deployment views, and dynamic views created or updated by this skill.
What ships with it
10 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.
- README.md 9.7 KB
- templates/c0-architecture-model.template.md 4.6 KB
- templates/c0-generation-report.template.md 3.9 KB
- templates/c0-index.template.md 3.8 KB
- templates/c1-system-context.template.md 2.9 KB
- templates/c2-container.template.md 4.3 KB
- templates/c3-component.template.md 5.1 KB
- templates/c4-code.template.md 3.3 KB
- templates/deployment.template.md 4.7 KB
- templates/dynamic-flow.template.md 3.8 KB
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.
- 4d ago First seen · 523 lines · 0 tokens per session scan A 8de30693224a
c4doc is a skill published in the GitHub repository stefanrossmeier/ai-craftkit (5 stars, last pushed 28d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,722 tokens. 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-31.
Other skills, from other repositories
documentation-patterns
Technical documentation patterns for READMEs, ADRs, API docs (OpenAPI 3.1), changelogs, and writing style guides. Use when creating project documentation, writing architecture decisions, documenting APIs, or maintaining changelogs.
bootstrap
Scaffold or retrofit documentation-led conventions (AGENTS.md, CLAUDE.md, CONVENTIONS.md, ADR catalogue, plan/ queue, agent/ coordination) into a repo. Use when the user asks to "set up conventions", "bootstrap ADRs", "scaffold the documentation-led layout", "add AGENTS.md and a plan queue", or invokes /bootstrap.…
doc-quality-review
Assess documentation quality across readability, consistency, audience fit, and prose clarity. Produces a scored review with actionable findings. This skill should be used before releases, during doc reviews, or when documentation feels unclear or inconsistent.
doc-completeness-audit
Audit documentation completeness by mapping what a doc set should cover against what it actually covers. Produces a prioritized gap report by topic, not just by file. This skill should be used after shipping features, before releases, or when users report missing documentation.
adr-format-structured-madr
This skill should be used when the user asks about "structured MADR", "structured-madr", "frontmatter ADR", "comprehensive ADR", "auditable ADR", or needs guidance on creating ADRs using the Structured MADR format with YAML frontmatter and audit sections.
adr-integration
This skill should be used when the user asks about "ADR integration", "ADR CI/CD", "ADR tooling", "ADR automation", "export ADRs", "ADR documentation site", or needs guidance on integrating ADRs with CI/CD, documentation sites, and other tools.