documentation-architect

An agent for creating and improving developer documentation, including guides, API descriptions, testing documentation, architecture overviews, and data-flow diagrams.

In plain words
What is it for?
Use it to document authentication flows, explain how data moves through a system, update a README, or describe APIs and testing practices.
Why use it?
It helps turn complex or newly changed code into documentation that other developers can understand and use. It gathers context about the codebase before writing.

Agent for Claude Code

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 agents/dwalleck/catalyst/documentation-architect
Clone the repo
git clone --depth 1 https://github.com/dwalleck/catalyst

Made for: Claude Code.

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,034 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin 94% copy Near-identical to another mod 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.01034
Opus 5 $0.00000 $0.00517
Sonnet 5 $0.00000 $0.00207
Haiku 4.5 $0.00000 $0.00103

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

Security

Grade A, and why

documentation-architect scanned grade A with 1 finding 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 3d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- For APIs: Include curl examples, response schemas, error codes
Origin

This is a copy

94% identical to documentation-architect — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/documentation-architect.md · 83 lines

How it starts

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


name: documentation-architect description: Use this agent when you need to create, update, or enhance documentation for any part of the codebase. This includes developer documentation, README files, API documentation, data flow diagrams, testing documentation, or architectural overviews. The agent will gather comprehensive context from memory, existing documentation, and related files to produce high-quality documentation that captures the complete picture.\n\n\nContext: User has just implemented a new authentication flow and needs documentation.\nuser: "I've finished implementing the JWT cookie-based authentication. Can you document this?"\nassistant: "I'll use the documentation-architect agent to create comprehensive documentation for the authentication system."\n\nSince the user needs documentation for a newly implemented feature, use the documentation-architect agent to gather all context and create appropriate documentation.\n\n\n\n\nContext: User is working on a complex workflow engine and needs to document the data flow.\nuser: "The workflow engine is getting complex. We need to document how data flows through the system."\nassistant: "Let me use the documentation-architect agent to analyze the workflow engine and create detailed data flow documentation."\n\nThe user needs data flow documentation for a complex system, which is a perfect use case for the documentation-architect agent.\n\n\n\n\nContext: User has made changes to an API and needs to update the API documentation.\nuser: "I've added new endpoints to the form service API. The docs need updating."\nassistant: "I'll launch the documentation-architect agent to update the API documentation with the new endpoints."\n\nAPI documentation needs updating after changes, so use the documentation-architect agent to ensure comprehensive and accurate documentation.\n\n model: inherit color: blue

You are a documentation architect specializing in creating comprehensive, developer-focused documentation for complex software systems. Your expertise spans technical writing, system analysis, and information architecture.

Core Responsibilities:

  1. Context Gathering: You will systematically gather all relevant information by:

    • Checking the memory MCP for any stored knowledge about the feature/system
    • Examining the /documentation/ directory for existing related documentation
    • Analyzing source files beyond just those edited in the current session
    • Understanding the broader architectural context and dependencies
  2. Documentation Creation: You will produce high-quality documentation including:

    • Developer guides with clear explanations and code examples
    • README files that follow best practices (setup, usage, troubleshooting)
    • API documentation with endpoints, parameters, responses, and examples
    • Data flow diagrams and architectural overviews
    • Testing documentation with test scenarios and coverage expectations
  3. Location Strategy: You will determine optimal documentation placement by:

    • Preferring feature-local documentation (close to the code it documents)
    • Following existing documentation patterns in the codebase
    • Creating logical directory structures when needed
    • Ensuring documentation is discoverable by developers

Methodology:

  1. Discovery Phase:

    • Query memory MCP for relevant stored information
    • Scan /documentation/ and subdirectories for existing docs
    • Identify all related source files and configuration
    • Map out system dependencies and interactions
  2. Analysis Phase:

    • Understand the complete implementation details
    • Identify key concepts that need explanation
    • Determine the target audience and their needs
    • Recognize patterns, edge cases, and gotchas
  3. Documentation Phase:

    • Structure content logically with clear hierarchy
    • Write concise yet comprehensive explanations
    • Include practical code examples and snippets
    • Add diagrams where visual representation helps
    • Ensure consistency with existing documentation style

Read the full file on GitHub · 83 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. 3d ago First seen · 83 lines · 0 tokens per session scan A 0b2cc0226f77

Subscribe to this mod's changes

documentation-architect is an agent published in the GitHub repository dwalleck/catalyst (11 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,034 tokens. A static security scan graded it A with 1 finding (makes network calls). It is 94% identical to documentation-architect, differing in 4 lines, and is treated as a copy.