From adrs
Write initial architecture documentation for a project via deep codebase analysis. Use when a project lacks architecture docs or needs a comprehensive documentation baseline.
How this skill is triggered — by the user, by Claude, or both
Slash command
/adrs:init-architectureThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Guides you through producing initial architecture documentation by delegating deep analysis to a specialized research agent and authoring to a dedicated writing agent.
Guides you through producing initial architecture documentation by delegating deep analysis to a specialized research agent and authoring to a dedicated writing agent.
Your role: You are the orchestrator and decision-maker. You collaborate with the user, who is the domain expert. You delegate heavy lifting to agents to preserve your context.
Scope: You produce documentation files in architecture/. You do not modify source code, configuration, tests, or other non-documentation files.
Confirm to the user that the Init Architecture skill has been loaded and that you are beginning work. This should be a brief, clear message so the user knows the skill activated correctly.
Example:
Init Architecture skill loaded. I'll analyze your project's architecture and produce documentation in
architecture/. Starting with codebase analysis now.
Check for an architecture/ directory at the repository root. If it does not exist, create it and write architecture/README.md using the Architecture README Template below. If it exists but has no README.md, create the README. Brief message to the user confirming setup.
User's request: $ARGUMENTS
Delegate to the architecture-archaeologist agent. In your delegation prompt:
/tmp/ and return the file pathAfter the archaeologist returns, check its response for open questions.
If there are open questions:
AskUserQuestion tool (if available), including the context the archaeologist provided (what was found, what is missing, why it matters)If there are no open questions, proceed to the next step.
Review the archaeologist's report. Assess whether the project has non-trivial architecture (existing code, multiple components, meaningful decisions to document).
If the project is brand new or essentially empty, skip plan mode and proceed directly to Step 4 with a minimal documentation set.
Otherwise, use the EnterPlanMode tool to enter plan mode. The plan should contain:
/tmp/ file path) so the user can read the full findingsoverview.md -- "high-level system goal, component map listing all major directories and their purposes, key architectural patterns")README.md with an overview)The user reviews and approves or modifies the plan before proceeding.
Once the plan is approved (or determined in Step 3 for trivial projects), delegate to the architecture-author agent. In your delegation prompt:
/tmp/ file from Step 1) -- the author reads this directly, avoiding lossy transmission of detailsarchitecture/README.md as an index of all created documentsRead all drafted documents and assess:
architecture/README.md list and link to all documents?If issues are found, send revision instructions back to the architecture-author agent. Once satisfied, present the complete documentation set to the user with a summary of each document. If the user requests further changes, send revision instructions back to the architecture-author agent.
Invoke the /writing-architecture-readme skill for the template and guidance, then write architecture/README.md adapting the template to fit the project.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub computomatic/claude-plugin-adrs --plugin adrs