generate-docs

generate-docs is a command for Claude Code from AhmedHabiba/architor. It costs 0 tokens per session (1,373 once invoked), scanned A, original, MIT.

An architecture-document command that validates an accepted system design and writes a comprehensive document. Architecture documentation explains the system's components, behaviour, and important decisions.

In plain words
What is it for?
Use it after the architecture review phases are complete to simulate key requests, check component relationships, review risks, and generate an architecture document.
Why use it?
It catches missing or inconsistent details before the final document is produced. It also checks important user journeys and records risks.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it after the architecture review phases are complete to simulate key requests, check component relationships, review risks, and generate an architecture document.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ahmedhabiba/architor/generate-docs
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.

Clone the repo
git clone --depth 1 https://github.com/AhmedHabiba/architor

Made for: Claude Code.

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 generate-docs

README.md
[![agentmods](https://agentmods.dev/badge/commands/ahmedhabiba/architor/generate-docs/github.svg)](https://agentmods.dev/commands/ahmedhabiba/architor/generate-docs)
Your own site
<a href="https://agentmods.dev/commands/ahmedhabiba/architor/generate-docs"><img src="https://agentmods.dev/badge/commands/ahmedhabiba/architor/generate-docs/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 generate-docs

Your own site · 80×15
<a href="https://agentmods.dev/commands/ahmedhabiba/architor/generate-docs"><img src="https://agentmods.dev/badge/commands/ahmedhabiba/architor/generate-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,373 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.00000 $0.01373
Opus 5.5 $0.00000 $0.00549
Sonnet 5.5 $0.00000 $0.00275
Haiku 4.5 $0.00000 $0.00137

Measured 2mo ago against content hash a5ec7239af16, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

generate-docs 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 2mo 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.

.claude/commands/generate-docs.md · 164 lines

How it starts

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

Read .arch/state.json first.

GATE CHECK:

  • If current_phase is finalization and phases.finalization.document_generated is true: Say "Document already generated. Do you want to regenerate? Say 'yes' to regenerate or review the existing document at output/architecture-document.md."
  • If current_phase is not components and current_phase is not finalization, STOP: "Cannot generate documentation. Current phase is [phase]."
  • If current_phase is components and phases.components.all_accepted is not true, STOP: "All components must be accepted before generating documentation. Use /status to check which components are pending."

Read ALL architecture files:

  • .arch/phase1-evaluation.md
  • .arch/phase2-methodology.md
  • .arch/phase2-components-overview.md
  • .arch/phase2-cross-cutting.md (if exists)
  • All files in .arch/components/
  • All files in .arch/reviews/ (if any)
  • .arch/decisions.md
  • .arch/org-context.md

Pre-Generation Validation

Before generating the document, perform these validation steps:

1. End-to-End Request Simulation

Trace 3 critical user journeys through the accepted component designs:

  • Happy path: The most common user action — trace through every component it touches
  • Error path: What happens when a key dependency fails — verify fallback/circuit breaker coverage
  • Scale path: What happens at 10x expected load — verify scaling strategy holds

For each journey, verify:

  • Every integration point between components is specified in both directions
  • Data formats match (producer format = consumer expected format)
  • Authentication/authorization is checked at every boundary
  • Error handling is specified at every failure point

2. Risk Register

Create a risk register with probability x impact scoring:

# Risk Probability (1-5) Impact (1-5) Score Mitigation Owner

Include at minimum: technology risks, integration risks, operational risks, scale risks, security risks.

Read the full file on GitHub · 164 lines

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. 2mo ago First seen · 164 lines · 0 tokens per session scan A a5ec7239af16

Subscribe to this mod's changes

generate-docs is a command published in the GitHub repository AhmedHabiba/architor (6 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,373 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

generate-docs compared with commands from other repositories

generate-docs next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
generate-docsAhmedHabiba/architorCommand67mo agoMITA0Claude Code
learnReflexioAI/claude-smartCommand7914d agoApache-2.0A14Claude Code
prototypegrainulation/grainulatorCommand86yesterdayMITA0Claude Code
initazrtydxb/procoderCommand21111d agoApache-2.0A16Claude Code
genshijin-compressInterfaceX-co-jp/genshijinCommand33127d agoMITA17Claude Code
responsive-design-specialistimsaif/design-with-claudeCommand112d agoMITA36Claude Code
brand-generateferdinandobons/brand-docsCommand2914mo agoMITA0Claude Code