archdoc

archdoc is a skill for Claude Code, Codex from stefanrossmeier/ai-craftkit. It costs 38 tokens per session (3,234 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

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it to create repository maps, architecture overviews, API and integration references, and operational guides covering setup, deployment, configuration, debugging, health checks, and recovery.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stefanrossmeier/ai-craftkit/archdoc
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.

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/github.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/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.

agentmods 80×15 button for archdoc

Your own site · 80×15
<a href="https://agentmods.dev/skills/stefanrossmeier/ai-craftkit/archdoc"><img src="https://agentmods.dev/badge/skills/stefanrossmeier/ai-craftkit/archdoc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,234 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00038 $0.03234
Opus 5.5 $0.00015 $0.01294
Sonnet 5.5 $0.00008 $0.00647
Haiku 4.5 $0.00004 $0.00323

Measured 1mo ago against content hash 25c37c9fce5a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

skills/archdoc/SKILL.md · 325 lines

How it starts

The opening of the file, as written. The whole thing — 325 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Archdoc Skill

Command: /archdoc

archdoc is the central repository-documentation skill in ai-craftkit. It turns repository evidence into a small set of maintained architecture documents for humans and coding agents.

Outputs

Write architecture documentation under:

docs/archdoc/

Canonical files:

docs/archdoc/REPO_MAP.md
docs/archdoc/ARCHITECTURE.md
docs/archdoc/API_SURFACE.md    # when the repository exposes meaningful interfaces
docs/archdoc/OPERATIONS.md     # when runtime, build, release, deploy, or support behavior is meaningful

Always create or refresh REPO_MAP.md and ARCHITECTURE.md.

Create API_SURFACE.md only when there is a public or integration-relevant contract such as HTTP, RPC, events, CLI commands, webhooks, schemas, plugin points, or public library exports.

Create OPERATIONS.md when there is meaningful execution, packaging, runtime, deployment, observability, release, debugging, or recovery behavior. Do not create an empty operations document merely to complete a set.

Use the bundled templates as starting shapes:

skills/archdoc/templates/REPO_MAP.template.md
skills/archdoc/templates/ARCHITECTURE.template.md
skills/archdoc/templates/API_SURFACE.template.md
skills/archdoc/templates/OPERATIONS.template.md

Adapt headings to the repository and remove unresolved placeholders. For ARCHITECTURE.md, the template also defines a coverage model: a heading may be omitted, but the underlying architecture concern must first be accounted for as documented, cross-referenced, not applicable, or missing. Do not silently drop a material concern merely to make the file shorter.

Document Responsibilities

Keep the documents distinct.

REPO_MAP.md

Repository orientation only:

  • what this repository is
  • important top-level paths
  • entry points
  • important modules/packages
  • build, test, run, and verification commands that are actually evidenced
  • important config, generated, and artifact paths
  • observed repository conventions when useful
  • recommended reading order
  • known gaps

Read the full file on GitHub · 325 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. 1mo ago Changed · +42 lines 25c37c9fce5a
  2. 1mo ago Changed · -781 lines · +38 tokens per session 24dbb2926a60
  3. 2mo 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 4d ago), licensed Apache-2.0. It adds 38 tokens to every session and 3,234 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-31.

Related

archdoc compared with skills from other repositories

archdoc next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
archdocstefanrossmeier/ai-craftkitSkill54d agoApache-2.0A38Claude Code, Codex
architecture-decision-record-maintainer-skillarchitecture-decision-record/architecture-decision-recordSkill17k8d agononeA92Claude Code, Codex
architecture-decision-record-skillarchitecture-decision-record/architecture-decision-recordSkill17k8d agononeA108Claude Code, Codex
atlas-adrtonone-ai/tononeSkill7723d agoMITA51Claude Code
bootstrapEvolveHQ/docflowSkill1615d agoMITA114Claude Code, Codex
agent-waveEvolveHQ/docflowSkill1615d agoMITA82Claude Code, Codex
new-planEvolveHQ/docflowSkill1615d agoMITA118Claude Code, Codex