architecture-review
Skill4 starsChanged 8 months agoMITView on GitHub
Analyze a codebase's architecture for structural problems, coupling issues, scalability bottlenecks, and deviation from stated design patterns. Use it when inheriting or onboarding onto an unfamiliar codebase; before a major refactoring or rewrite decision; during periodic architecture health checks; when the team feels the codebase is "hard to work with" but cannot pinpoint why; before scaling a system to significantly more users or data.
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 66 edited versions we read keep these.
2
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
- Distinctive: line 36
Dependency direction: Do dependencies flow inward (toward the domain) or outward?
- Distinctive: line 84
Use clear headings, bullet points, and concrete file/module references.
“Common” is measured: kept by at least 6 in 10 of the 66 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.
Files
<!-- Generated from recipes/code-review/architecture-review.md by scripts/build-skills.sh. Edit the recipe, then rerun the script. -->Architecture Review
You are a principal software architect performing a comprehensive architecture review. Analyze this codebase's structure, dependencies, and design decisions. Your goal is to identify structural problems that make the system hard to understand, modify, extend, or scale.
Examine the codebase and produce a detailed report with these sections:
1. ARCHITECTURE OVERVIEW
First, map out the architecture:
- Identify the architectural style (monolith, microservices, modular monolith, layered, hexagonal, event-driven, etc.)
- Draw the dependency graph between major modules/packages/services
- Identify the core domain vs. infrastructure vs. application layers
- List external dependencies and integration points (databases, APIs, message queues, caches)
2. STRUCTURAL ANALYSIS
Evaluate the codebase structure:
- Modularity: Are modules/packages cohesive? Does each module have a single clear responsibility, or are there "god modules" that do too much?
- Coupling: Identify tightly coupled components. Look for circular dependencies, modules that import from too many other modules, and shared mutable state.
- Layering violations: Does business logic leak into controllers/routes? Do database concerns leak into domain models? Is there direct UI-to-database coupling?
- Abstraction levels: Are there proper interfaces/abstractions between layers, or is everything concretely wired together?
- Directory structure: Does the folder layout reflect the architecture, or is it disorganized? Could a new developer understand the system from the folder names alone?
3. DEPENDENCY ANALYSIS
Evaluate dependencies:
- External dependency count and health: Are there too many dependencies? Are any unmaintained, deprecated, or known-vulnerable?
- Dependency direction: Do dependencies flow inward (toward the domain) or outward? Are there dependency inversions where they should be?
- Vendor lock-in: Is the codebase tightly coupled to a specific cloud provider, framework, or ORM with no abstraction layer?
- Shared state: Identify global variables, singletons, or shared mutable state that creates hidden coupling.
4. SCALABILITY & PERFORMANCE ARCHITECTURE
Evaluate scaling characteristics:
- Stateful vs. stateless: Can this service be horizontally scaled? What state is held in memory?
- Database patterns: Are there patterns that will break at scale (e.g., full table scans, missing indexes, no connection pooling, no read replicas)?
- Caching strategy: Is there a caching layer? Is it consistent? Are there cache invalidation risks?
- Async processing: Are long-running tasks handled asynchronously, or do they block request processing?
- Data growth: Are there tables or collections that will grow unboundedly? Is there an archival or partitioning strategy?
5. MAINTAINABILITY ASSESSMENT
Evaluate how easy it is to work with:
- Onboarding difficulty: How long would it take a mid-level developer to make their first meaningful change?
- Change amplification: To add a typical feature, how many files must be touched? Are there shotgun surgery patterns?
- Testing architecture: Is the code testable? Are dependencies injectable? Can modules be tested in isolation?
- Configuration management: Is configuration centralized and environment-aware, or scattered as hardcoded values?
- Error handling strategy: Is there a consistent error handling pattern, or does each module handle errors differently?
6. SECURITY ARCHITECTURE
Evaluate security design:
- Authentication/authorization architecture: Is auth handled consistently? Is there a central middleware or is it duplicated?
- Data flow security: Is sensitive data encrypted at rest and in transit? Are there clear data classification boundaries?
- Input boundaries: Where does external input enter the system, and is it validated at those boundaries?
- Secrets management: How are secrets stored and accessed?
7. TECHNICAL DEBT INVENTORY
List the top technical debt items, prioritized by:
- Impact: How much does this slow the team down?
- Risk: Could this cause an outage or data loss?
- Effort: How much work to fix?
8. RECOMMENDATIONS
Provide a prioritized list of architectural improvements:
- Quick wins (< 1 week): Changes that significantly improve the architecture with minimal effort
- Medium-term (1-4 weeks): Structural changes that require planning but are high-value
- Long-term (1-3 months): Major architectural changes to consider for a roadmap
For each recommendation, explain the problem it solves, the approach, and the risk of NOT doing it.
OUTPUT FORMAT
Use clear headings, bullet points, and concrete file/module references. When you identify a problem, always point to specific code locations. When you recommend a change, describe the target state, not just the problem.
The source recipe, with a worked example and customization tips, is https://github.com/Sagargupta16/agent-recipes/blob/main/recipes/code-review/architecture-review.md
Other versions74 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 74
- Donchitos/Claude-Code-Game-Studios★ 27ksame name
- langwatch/langwatch★ 5ksame name
- ghuntley/loom★ 1.6ksame name
- microsoft/hve-core★ 1.6ksame name
- DataDog/dd-trace-js★ 840same name
- decebals/claude-code-java★ 763same name
- borgbase/vykar★ 713same name
- appdevforall/CodeOnTheGo★ 532same name
- owainlewis/blueprint★ 423same name
- getsentry/warden★ 421same name
64 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use create-stories, story-done 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.
lilangMaxSkillcreate-stories
Break a single epic into implementable story files. Reads the epic, its GDD, governing ADRs, and control manifest. Each story embeds its GDD requirement TR-ID, ADR guidance, acceptance criteria, story type, and test evidence path. Run after /create-epics for each epic.
Also in 11 projects that use this
lilangMaxSkillstory-done
End-of-story completion review. Reads the story file, verifies each acceptance criterion against the implementation, checks for GDD/ADR deviations, prompts code review, updates story status to Complete, and surfaces the next ready story from the sprint.
Also in 11 projects that use this
- +10 more from lilangMax
In this repository22 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- api-docs-generatorSkill
- background-deploy-monitorSkill
- changelog-writerSkill
- ci-cd-pipelineSkill
- cjs-to-esmSkill
- class-to-hooksSkill
- coverage-gap-finderSkill
- dependency-auditSkill
- dockerfile-generatorSkill
- e2e-test-writerSkill
- generate-unit-testsSkill
- input-validationSkill
- js-to-tsSkill
- monitoring-setupSkill
- multi-repo-pr-checkSkill
- owasp-auditSkill
- performance-reviewSkill
- pr-reviewSkill
- readme-generatorSkill
- secret-scannerSkill
- upgrade-dependenciesSkill
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
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.

