Architecture.md Generator

•
8
•

Generates high-level architectural overview documents that help contributors navigate and understand complex codebases.

The Architecture.md Generator automates the creation and maintenance of ARCHITECTURE.md files, providing a high-value mental map for developers. By exploring the project root, directory structures, and entry points, it identifies top-level modules and data flows to explain where changes should be made rather than internal implementation details. It adheres to strict guidelines to keep documentation concise, up-to-date, and focused on architectural invariants that aid onboarding and long-term project maintenance.

Key Features

01Integrates project-specific guidelines from local reference files
02Focuses on architectural invariants and where to implement specific features
03Identifies key modules, data flows, and layer boundaries automatically
04Performs deep codebase exploration to build an accurate mental model
05Generates concise, under-300-line documentation for maximum readability
068 GitHub stars

Use Cases

01Onboarding new contributors by providing a clear entry point to the project structure
02Updating outdated architecture summaries after major refactors or reorganizations
03Documenting high-level design decisions and architectural boundaries during a build
name architecture-md
description Generate or update an ARCHITECTURE.md file for a codebase. Use when the user asks to create, write, update, or improve an ARCHITECTURE.md, or asks for a high-level architectural overview document of their project.

ARCHITECTURE.md Generator

Generate a concise, high-value ARCHITECTURE.md that gives contributors a mental map of the codebase. The document answers: "Where do I make a change for feature X?" — not "How does module Y work internally?"

Process

  1. Explore the codebase — read the project root, directory tree, key config files (package.json, Cargo.toml, etc.), and entry points to build a mental model
  2. Identify the architecture — determine top-level modules, key types, important files, data flow, and layer boundaries
  3. Draft the document — follow the structure and rules in references/guidelines.md
  4. Review with the user — present the draft, iterate based on feedback
  5. Write the file — save as ARCHITECTURE.md at the project root

Key Rules

  • Read references/guidelines.md before writing any content
  • Explore broadly before writing — read directory listings and key files across the entire project, not just one area
  • Keep the document under 300 lines; aim for the length of a single README section
  • Name files, modules, and types directly — never use hyperlinks (they rot)
  • State architectural invariants, especially things the codebase deliberately does NOT do
  • Write for a new contributor, not for yourself

Resources

references/

  • guidelines.md — the complete set of rules and structure for writing ARCHITECTURE.md files. Always read this before generating content.