agentleFS
thixpinthixpin/claude-config/skills/architecture-review/SKILL.md

architecture-review

Skill8 starsChanged 4 months agoMITView on GitHub

Method for assessing a codebase's structure — duplication, single-responsibility violations, layering problems, and coupling — and recommending minimal, incremental improvements. Use when asked to review architecture, assess structure or technical debt, evaluate module boundaries, or plan a refactor. Reviews the system, not a single change: for reviewing one diff or branch use the code-quality-review skill.

52 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use asset-spec, create-control-manifest and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • cenconq25Skill

    asset-spec

    Generates per-asset visual specifications and AI-generation prompts from PRDs and the design bible. Produces structured spec files and updates a master asset manifest. Use after design bible is approved and a UX spec or PRD identifies assets to produce. Output: design/assets/<asset>.md plus design/assets/manifest.md.

    Also in 5 projects that use this

  • cenconq25Skill

    create-control-manifest

    Produces a flat, immediately-actionable rules sheet — do this, never do that, per system and per layer — extracted from accepted ADRs, technical preferences, and framework reference docs. More directly usable than ADRs for day-to-day implementation. Run after /architecture-review passes.

    Also in 5 projects that use this

  • +10 more from cenconq25

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 46 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Find where change hurts: Ask of recent or likely changes: how many places must be touched?

    line 23
  2. Distinctive:

    Do not flag incidental similarity between things that change for different reasons.

    line 32
  3. Distinctive:

    Every proposed step must leave the system working — no recommendation may require a big-bang migration.

    line 51
  4. Distinctive:

    If the architecture is sound, say so.

    line 52

“Common” is measured: kept by at least 6 in 10 of the 46 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Architecture Review

Judge structure by how safely the system can change, not by resemblance to a textbook pattern. Recommend the smallest set of moves that improves changeability; never propose a rewrite when an incremental path exists.

Scope

Reviews the system — modules, layers, and dependencies across the codebase.

Use for structural assessment: technical debt, module boundaries, coupling, duplication across modules, planning a refactor.

Do not use for:

  • Reviewing a single diff or file for quality — use code-quality-review. The same concerns (DRY, single responsibility) appear in both; the difference is altitude. Within one change, they are that skill's; across modules, they are this one's.
  • Implementing the refactor. This skill produces recommendations; carrying them out is ordinary work under CLAUDE.md.

Method

  1. Map before judging. Identify the modules/layers, what depends on what, and where the domain logic actually lives. Use the dependency direction the code has, not the one the docs claim.
  2. Find where change hurts. Ask of recent or likely changes: how many places must be touched? Files that always change together but live far apart, or single files that change for unrelated reasons, mark the real problems.
  3. Diagnose against the checklist below.
  4. Recommend minimally. Each recommendation: the problem, the concrete evidence (files/modules), the smallest fix, and what it unblocks. Order by pain relieved per effort. Explicitly list what should be left alone.

Checklist

Duplication

  • Same business rule or knowledge implemented in multiple places (the dangerous kind — they drift apart).
  • Copy-paste variants of one workflow differing only in details that should be parameters.
  • Do not flag incidental similarity between things that change for different reasons; merging those creates coupling, not reuse.

Single responsibility

  • Modules or classes that change for unrelated reasons (e.g., a "service" doing validation, persistence, formatting, and notifications).
  • God objects most of the codebase imports; files disproportionately large for their layer.

Layering & dependencies

  • Lower layers importing upward (domain logic importing web/UI types; persistence importing controllers).
  • Business rules trapped inside framework artifacts (controllers, handlers, views) where they can't be tested or reused.
  • Circular dependencies between modules.
  • Leaky boundaries: raw database rows, ORM entities, or wire DTOs flowing through layers that shouldn't know them.

Coupling & cohesion

  • Feature logic scattered across layers such that one feature change touches every layer folder ("shotgun surgery").
  • Shared mutable state or implicit ordering between modules.

Constraints

  • Respect the project's existing architectural style; recommend making it consistent before recommending replacing it.
  • Every proposed step must leave the system working — no recommendation may require a big-bang migration.
  • If the architecture is sound, say so; do not manufacture findings.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.