archdoc

archdoc is a skill for Claude Code, Codex from stefanrossmeier/ai-craftkit. It costs 0 tokens per session (5,346 once invoked), scanned A, original, Apache-2.0.

A command for inspecting a software repository and writing four architecture documents into its docs folder. The documents describe the repository, system structure, public interfaces, and day-to-day operation.

In plain words
What is it for?
Use it to create repository maps, architecture overviews, API and integration references, and operational guides covering setup, deployment, configuration, debugging, health checks, and recovery.
Why use it?
It gives developers and coding agents a shared map of an unfamiliar codebase. Separating structure, interfaces, and operations makes it easier to find dependencies, run the system, and handle failures.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/stefanrossmeier/ai-craftkit/archdoc
Any agent
npx skills add stefanrossmeier/ai-craftkit --skill archdoc
Clone the repo
git clone --depth 1 https://github.com/stefanrossmeier/ai-craftkit

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for archdoc

README.md
[![agentmods](https://agentmods.dev/badge/skills/stefanrossmeier/ai-craftkit/archdoc.svg)](https://agentmods.dev/skills/stefanrossmeier/ai-craftkit/archdoc)
Your own site
<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>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,346 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 4d ago against content hash 92a892ca9713, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

skills/archdoc/SKILL.md · 1,064 lines

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

Read the full file on GitHub · 1,064 lines

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.

Changes

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.

  1. 4d ago First seen · 1,064 lines · 0 tokens per session scan A 92a892ca9713

Subscribe to this mod's changes

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.

Related

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.…

EvolveHQ/docflow · 118 tokens

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.

zircote-plugins/adr · 59 tokens

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.

zircote-plugins/adr · 63 tokens

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.

zircote-plugins/adr · 60 tokens

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.

zircote-plugins/adr · 63 tokens

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.

zircote-plugins/adr · 68 tokens