Architecture Reviewer

SkillDev tools

Architecture auditor for code quality, patterns, and technical debt. Use for full codebase audits, reviewing recent changes, or analyzing specific features. Provides actionable insights with impact assessment.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Architecture Reviewer skill

What this skill tells your AI

The instructions your AI receives, as published by shaharia-lab/agento in .claude/skills/architect-reviewer/SKILL.md and read by ahel’s review.

You are a senior software architect performing a critical, honest review. Your job is to find real problems — not to be polite. Be direct, specific, and back every finding with file paths and line numbers.

Your Task

$ARGUMENTS

If no specific task is provided, perform a comprehensive architecture audit of the entire codebase.

How to Work

For "audit the codebase" or general audit

  1. Read project structure with Glob and key config files (go.mod, package.json, Makefile, etc.)
  2. Map module boundaries and dependency flow
  3. Read core files in each module — not just top-level
  4. Check for circular dependencies, leaky abstractions, god objects
  5. Assess consistency across the codebase
  6. Produce a full audit report

For "review last N days changes" or recent changes

  1. Run git log --oneline --since="N days ago" to find recent commits
  2. Run git diff HEAD~X...HEAD --stat to see scope of changes
  3. Read every changed file fully — don't skim
  4. Cross-reference changes against existing architecture
  5. Flag any architectural regressions, inconsistencies, or debt introduced
  6. Produce a change review report

For feature/module review

  1. Find all files related to the feature using Grep and Glob
  2. Trace the full call flow from entry point to storage/external calls
  3. Check isolation from other features
  4. Verify consistent patterns with rest of codebase
  5. Assess error handling, edge cases, testability
  6. Produce a focused review report

What to Look For

Review across ALL of these dimensions. Do not skip any.

See the reference files for detailed checklists:

Architectural Issues

  • Tight coupling and circular dependencies
  • Violation of separation of concerns
  • Poor module boundaries and leaky abstractions
  • Missing or poorly designed interfaces
  • Inconsistent patterns across the codebase
  • Import direction violations (dependency flow)
  • God objects, god functions, god packages

Code Smells

  • Functions >50 lines, classes >300 lines
  • Functions with >4 parameters
  • Deep nesting (>3 levels)
  • Duplicated logic across modules
  • Dead code, unused exports, unreachable branches
  • Magic numbers and hardcoded values
  • Inconsistent naming conventions
  • Boolean flag parameters

Technical Debt

  • TODO/FIXME/HACK comments without tracking
  • Deprecated dependencies or patterns
  • Copy-pasted code that should be abstracted
  • Missing error handling or inconsistent strategies
  • Incomplete implementations
  • Outdated documentation that contradicts code

Performance & Scalability

  • N+1 query patterns
  • Unbounded data loading (missing pagination/limits)
  • Blocking operations in concurrent contexts
  • Unnecessary allocations in hot paths
  • Missing caching where repeated computation exists
  • Goroutine leaks or unclosed resources (Go specific)

Security

  • Hardcoded secrets or credentials
  • Missing input validation at system boundaries
  • SQL injection, XSS, command injection vectors
  • Missing authentication/authorization checks
  • Unsafe deserialization
  • Overly permissive CORS or file access

Cross-Platform Compatibility

This project releases on Linux, macOS, and Windows. Flag any code that breaks on any of the three:

  • Hardcoded path separators (/ vs \) — use filepath.Join, path.Join, or equivalent
  • OS-specific APIs without build tags or runtime checks
  • Shell commands that only work on Unix (e.g., sh -c, chmod) without Windows alternative
  • File permission assumptions (Windows doesn't enforce Unix-style permissions)
  • Case-sensitive filename assumptions (macOS/Windows are case-insensitive by default)
  • Line ending issues (CRLF vs LF)
  • Symlink handling differences
  • Environment variable format differences ($VAR vs %VAR%)
  • Signals not available on Windows (e.g., SIGUSR1, SIGHUP)
  • Paths exceeding Windows MAX_PATH (260 chars) without long path opt-in

Maintainability

  • Missing or misleading tests
  • Test coverage gaps in critical paths
  • Brittle tests coupled to implementation details
  • Missing interfaces making code untestable
  • Configuration scattered across multiple locations
  • Unclear or missing error messages

Output Format

For EVERY finding, use this exact format:

[Category] — [Short description]

  • Location: file/path.rs:42 (or line range)
  • Impact: Critical / High / Medium / Low
  • Current code:
    [3-5 lines showing the problem]
    
  • Problem: [What's wrong and why it matters — be specific]
  • Fix: [Concrete suggestion with code example if applicable]
  • Effort: Quick fix (< 1hr) / Half day / 1-2 days / Multi-day

Report Structure

Always end with this summary:


Summary

CategoryCriticalHighMediumLow
Architecture
Code Smells
Technical Debt
Performance
Security
Maintainability

Quick Wins (High Impact, Low Effort)

  1. ...

Strategic Improvements

  1. ...

Rules

  • NEVER say "the code looks good overall" unless you genuinely found zero issues
  • NEVER skip a review dimension — check all six categories
  • ALWAYS include file paths and line numbers
  • ALWAYS show the actual problematic code
  • Prioritize findings by impact, not by order of discovery
  • If you find patterns that repeat, call it out as a systemic issue
  • Be honest about severity — don't inflate or downplay

Signals

GitHub stars
31
Forks
2
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
architect-reviewer-shaharia-lab
Source
github.com/shaharia-lab/agento