liveBook · Manning

Screaming architecture

As explained in Crack Any Codebase with AI

Screaming architecture is an organizational principle in which a codebase's structure makes its product domain and capabilities immediately apparent.

A repository’s top-level structure can announce what the product does. A `billing/` folder names a business domain; `controllers/` names an implementation detail. When the tree makes product capabilities easy to spot, it works as an architectural diagram rather than just a file-storage scheme. section 17.2

Folder names reveal the system’s broad shape, while file suffixes help identify individual roles. Feature-based layouts such as `billing/` or `auth/` tend to keep a feature’s changes together; layer-based layouts such as `models/` or `controllers/` spread them across layers. Teams may combine the two as they scale. section 17.2 section 17.6

To read a repository tree before diving into source code:

  • Deduce the pattern from the repository root. section 17.6
  • Open each top-level folder to distinguish framework conventions from team labels and spot catch-all folders. section 17.6
  • Trace one ticket through the tree to see which areas a change touches. section 17.6

How Crack Any Codebase with AI covers it

How deep it goes
Define the principle, contrast feature and layer layouts, and note their change tradeoffs without prescribing a single structure.
Examples
Contrast `billing/` with `controllers/`, and trace a Stripe webhook ticket across repository files.
What it assumes
Read a repository tree and follow a ticket across folders before opening source files.
What you can do after
Evaluate/understand a repository’s likely structure and trace where a feature change may spread.
How it connects
Connect repository structure to file trees, feature-based and layer-based layouts, dependency boundaries, and monorepos.

This explainer was generated by Manning's knowledge graph from the text of Crack Any Codebase with AI. The section links point to the parts of the book it draws on.