agentleFS
HyperVonHyperVon/agent-guidance-kit/skills/architecture-review/SKILL.md

architecture-review

Skill1 starsChanged 16 days agoApache-2.0View on GitHub

Review a repository or subsystem's design and recommend whether and how its structure should evolve — Keep, Evolve, Replace, or Greenfield options, refactor-versus-rewrite, and what-to-tackle-first triage. Use implementation-planning once the direction is already chosen.

78 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects 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.
  • lilangMaxSkill

    create-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

  • lilangMaxSkill

    story-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

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 7 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 70 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill for system or subsystem design decisions.

    line 21
  2. Distinctive:

    Use an evidence trail for every consequential claim.

    line 35
  3. Distinctive:

    Stress-test the design: Check domain placement, module boundaries, failure and recovery behavior, concurrency and lifecycle, security and …

    line 51
  4. Distinctive:

    Before recommending an Evolve or Replace path, evaluate:

    line 71
  5. Distinctive:

    When an alternative adds or moves a network, queue, datastore, or third-party-service boundary, record the applicable latency and …

    line 78
  6. Distinctive:

    keep-as-is decisions and explicit non-issues.

    line 107
  7. Distinctive:

    If the repository has an established decision-record location and a persistent record is requested or required by its local workflow, write …

    line 113
  8. Distinctive:

    Do not recommend a rewrite without evidence and a credible migration path.

    line 126

“Common” is measured: kept by at least 6 in 10 of the 70 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

Authority and boundary

This is a recommend-only review. Discover the design from current source, configuration, tests, build behavior, and observed interfaces; treat existing documentation and guidance as claims to verify. Do not edit application code, start a rewrite, create external changes, or present a recommendation as an approved implementation. A later, explicit implementation request is a separate step.

Use this skill for system or subsystem design decisions. Hand off focused changed-code defects to code-review, artifact-level quality defects to ai-slop-detector, factual documentation drift to documentation-review, and behavior-preserving simplification to reduce-code-size. Structural guidance overlap belongs to rules-and-skills-audit.

Inputs and evidence

Take the named repository, subsystem, or milestone slice; the user's review question; applicable local rules; and the relevant source, tests, configuration, interfaces, build files, and operational evidence. If scope is ambiguous, state the assumption and ask only when choosing the scope would materially change the review.

Use an evidence trail for every consequential claim. Prefer current source and tests over narrative docs or memory. Mark direct observations, inferences, hypotheses, and unresolved assumptions separately. When evidence conflicts, identify the conflict and explain which source is more authoritative; do not silently average it. Before a major recommendation, identify missing evidence, its decision impact, and the smallest validation that would close the gap.

Workflow

  1. Frame the decision. State the review scope, question, constraints, non-goals, the original user outcome, the primary consumer journey, and what would count as a meaningful improvement.
  2. Discover the as-is design. Map entry points, components, data and control flows, ownership, trust and protocol boundaries, persistence, concurrency, configuration, and test or operational seams from source. Record the largest coupling clusters and what already works well.
  3. Stress-test the design. Check domain placement, module boundaries, failure and recovery behavior, concurrency and lifecycle, security and data handling, operability, testability, build cost, and team change cost. Trace the smallest real end-to-end consumer flow and distinguish tests of internal abstractions from evidence that the user-facing outcome works. For a product generalized from reference projects, test the proposed concepts against at least one unrelated target: references are evidence and fixtures, not the platform's default taxonomy or ontology. Skip dimensions with no evidence of a relevant issue.
  4. Compare alternatives. Evaluate viable candidates (at minimum Keep Current and one alternative) using a structured comparison matrix:

    DimensionKeep CurrentEvolve (Iterative)Replace (Targeted)Greenfield (Rewrite)
    Operational ComplexityBaselineLow/Medium increaseMedium/High increaseHigh (new stack/ops)
    Migration Risk & DowntimeNoneLow (in-place)Medium (dual-write/cutover)High (big-bang/data backfill)
    Reversibility / RollbackN/AHigh (feature flag)Medium (strangler fig)Low / Hard escape hatch
    Blast Radius of FailureKnown failure modesScoped to modified moduleService boundaryEntire subsystem
    State & Data ConsistencyExisting schemaBackward-compatible schemaDual-write sync hazardsComplex data migration
    Cognitive Load & ChurnFamiliarMinimal deltaModerate onboardingFull team retraining

    Before recommending an Evolve or Replace path, evaluate:

    • Dual-write split-brain: Are there race conditions or partial failure scenarios where legacy and new stores diverge during transition?
    • Strangler Fig stall risk: Can the migration be completed in bounded phases, or does it risk a permanent two-system maintenance burden?
    • Data-at-rest migration: Does the plan require lossy schema transformation or offline table locking?
    • Network boundary inflation: Does the proposal convert fast in-process method calls into distributed RPCs without latency/circuit-breaker justification?

    When an alternative adds or moves a network, queue, datastore, or third-party-service boundary, record the applicable latency and availability budget, timeout behavior, retry or backoff policy, idempotency or duplicate-delivery handling, failure containment, observability, consumer migration, and rollback path. Require only controls justified by the actual boundary and failure model; do not prescribe a circuit breaker, retry, or distributed subsystem merely because one is common.

  5. Filter and deliver. Drop taste-only churn, fashionable technology swaps, and proposals unsupported by a concrete quality, security, operability, correctness, or maintainability delta. Prefer fewer, sharper recommendations. Do not recommend a new subsystem merely because a prompt, roadmap, or abstraction can describe one; name the current consumer workflow and evidence that a simpler change cannot satisfy it.
    • Avoid solution-anchoring: Reframe the user's proposed solution into the underlying outcome before comparing options. Evaluate whether a smaller, non-structural change satisfies the outcome before scoring the user's suggested path; do not let the prompt's vocabulary pre-select the alternative set.
  6. Stop before implementation. Present the report and decision choices; wait for explicit selections before drafting an implementation plan or changing code.

Output

Return a decision-oriented report with:

  • executive summary and inferred constraints;
  • an as-is architecture map, ownership map, and useful flow diagram when it improves clarity;
  • keep-as-is decisions and explicit non-issues;
  • findings with severity, evidence anchors, problem, options, recommendation, expected payoff, cost/risk, and the next validation step;
  • strategic options and an ordered decision list when the scope warrants them;
  • verification gaps and unresolved assumptions.

If the repository has an established decision-record location and a persistent record is requested or required by its local workflow, write the same choices there. Do not invent a path, format, tool, or external artifact; when no such location exists, keep the decision record in the report.

Severity and stop rules

  • P0: structural risk to security, data integrity, or destructive behavior.
  • P1: material architecture gap that breaks a contract or blocks safe, reliable operation or an important change.
  • P2: meaningful improvement with clear payoff and safe deferral.
  • P3: optional strategic polish with no demonstrated near-term impact.

Do not recommend a rewrite without evidence and a credible migration path. Stop when the review question is answered, when alternatives have no meaningful delta, or when a missing fact is a real blocker. Report the gap rather than filling it with invented APIs, scale assumptions, dependencies, or tools.

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.