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/archdocnpx skills add stefanrossmeier/ai-craftkit --skill archdocgit 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/archdoc)<a href="https://agentmods.dev/skills/stefanrossmeier/ai-craftkit/archdoc"><img src="https://agentmods.dev/badge/skills/stefanrossmeier/ai-craftkit/archdoc.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.05346 |
| Opus 5 | $0.00000 | $0.02673 |
| Sonnet 5 | $0.00000 | $0.01069 |
| Haiku 4.5 | $0.00000 | $0.00535 |
Grade A, and why
archdoc 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 — 1,064 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Archdoc Skill
Command: /archdoc
Generate agent-friendly architecture documentation for the currently opened repository.
The skill inspects the repository, fills the architecture documentation templates, removes unused or irrelevant template sections, and writes the final documentation files to the repository’s docs/ folder.
Purpose
/archdoc creates four primary repository documentation files:
docs/REPO_MAP.md
docs/ARCHITECTURE.md
docs/API_SURFACE.md
docs/OPERATIONS.md
These documents help humans and agents understand a codebase quickly and safely.
Responsibility split:
REPO_MAP.md: repository orientation, important files, commands, conventions, glossary, and agent navigation.ARCHITECTURE.md: static architecture, modules, boundaries, dependencies, data ownership, and high-level interface ownership only.API_SURFACE.md: detailed public and integration-relevant interfaces such as HTTP endpoints, CLI commands, events, queues, webhooks, exports, schemas, auth rules, and compatibility notes.OPERATIONS.md: runtime behavior, local execution, deployment, configuration, debugging, failure modes, health checks, recovery, and operational verification.
The goal is not to produce generic documentation. The goal is to create a practical repository map that helps future agents:
- understand what is in the repo
- find the main entry points
- understand the static architecture
- understand how the system runs
- trace important runtime flows
- identify tests, config, deployment, and failure modes
- avoid inventing patterns that already exist
- make small, safe changes
Slash Command
Use this skill when the user calls:
/archdoc
The skill should generate or update the documentation set directly.
If the user names a specific area, document that area with enough repository context to keep the output accurate. Otherwise, inspect the repository broadly enough to produce a reliable full documentation pass.
Required Output Files
What ships with it
5 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.
- 4d ago First seen · 1,064 lines · 0 tokens per session scan A 92a892ca9713
archdoc 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 5,346 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
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.…
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.
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-decision-drivers
This skill should be used when the user asks about "decision drivers", "architectural forces", "quality attributes", "how to identify trade-offs", "non-functional requirements for ADRs", or needs help identifying, documenting, and weighing the forces that influence architectural decisions.
adr-format-madr
This skill should be used when the user asks about "MADR format", "MADR template", "Markdown Architectural Decision Records", "MADR 4.0", "MADR sections", or needs guidance on creating ADRs using the MADR (Markdown Architectural Decision Records) format.
adr-fundamentals
This skill should be used when the user asks "what is an ADR", "when should I create an ADR", "ADR best practices", "architecture decision records", "ADR lifecycle", "how to document architecture decisions", or needs guidance on ADR fundamentals, when to create ADRs, or ADR lifecycle management.