agentleFS
Sequela02Sequela02/canasta/skills/workflow/architecture-review/SKILL.md

architecture-review

Skill0 starsChanged yesterdayMITView on GitHub

Design or review module boundaries, dependency direction, runtime

82 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

9 rules. 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 74 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when designing or evaluating architecture, module ownership, or cross-surface changes.

    line 18
  2. Very specific:

    When the change touches business rules, invariants, aggregate scope or domain language, also use domain-modeling.

    line 21
  3. Distinctive:

    Use before writing code that adds a module or layer, crosses a boundary, or introduces a contract.

    line 26
  4. Distinctive:

    Add a port, DTO, adapter, or event only for a second real consumer, demonstrated volatility, or a measured coupling problem.

    line 37
  5. Distinctive:

    Keep each contract minimal and owned in one place: the smallest data, error, and side-effect surface the consumer needs, with no duplicated …

    line 40
  6. Very specific:

    When a dependency rule must hold permanently, add an executable check instead of relying on review.

    line 45
  7. Distinctive:

    Verify that stable policy does not depend on volatile mechanisms and that cross-boundary data, errors, state, and side effects have a named …

    line 60
  8. Distinctive:

    Prefer the lower total end-to-end complexity when guarantees are equal.

    line 71
  9. Distinctive:

    Test transferable ownership: identify the owner and what it deliberately does not own, entry points, inputs and outputs, authority, whether …

    line 72

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

Use this skill when designing or evaluating architecture, module ownership, or cross-surface changes.

When the change touches business rules, invariants, aggregate scope or domain language, also use domain-modeling.

Designing a change

Use before writing code that adds a module or layer, crosses a boundary, or introduces a contract.

  1. Find the current owner of the behavior and extend it before creating a new one. Keep one owner per behavior.
  2. Name the quality a new boundary protects: independent change, testability, transactional integrity, or replaceable infrastructure. Without one, add no boundary.
  3. Point dependencies toward stable policy. Domain and use-case code does not import framework, persistence, or transport types; adapters depend on the core, never the reverse.
  4. Add a port, DTO, adapter, or event only for a second real consumer, demonstrated volatility, or a measured coupling problem. Otherwise call the concrete code directly.
  5. Keep each contract minimal and owned in one place: the smallest data, error, and side-effect surface the consumer needs, with no duplicated schemas.
  6. State in the plan the owner, the dependency direction, and one simpler design you rejected with the guarantee it loses. When guarantees are equal, choose the simpler design.
  7. When a dependency rule must hold permanently, add an executable check instead of relying on review; domain-modeling has starting points for ArchUnit, dependency-cruiser and import-linter.

Reviewing a change

Workflow:

  1. Map the intended modules, policy owners, dependency graph, runtime composition, and public contracts. Name the quality the boundary protects, such as independent change, testability, transactional integrity, or replaceable infrastructure.
  2. Trace causal dependency paths in both directions. Distinguish source dependency from runtime control flow and inspect hidden coupling through configuration, dependency injection, registries, reflection, generated code, persistence, callbacks, events, and shared operational state.
  3. Verify that stable policy does not depend on volatile mechanisms and that cross-boundary data, errors, state, and side effects have a named owner and a minimal contract. Inspect public exports and whether infrastructure types or duplicated schemas leak across the boundary.
  4. Identify cycles, duplicated policy or projection ownership, and unjustified fan-out. Require executable architecture checks when a durable dependency rule can be mechanized.
  5. Apply a minimum sufficient complexity gate to material architecture. Name the invariant or demonstrated outcome, the simplest viable mechanism, one simpler rejected design and the guarantee it loses, concepts added and removed, new durable state or lifecycle, exported complexity, and deterministic evidence. Prefer the lower total end-to-end complexity when guarantees are equal.
  6. Test transferable ownership: identify the owner and what it deliberately does not own, entry points, inputs and outputs, authority, whether state is canonical, derived, or projected, important failure behavior, verification, durable rationale, and the bounded change location. Use a fresh-context maintainer probe only for material uncertainty; it tests legibility, not correctness.
  7. Evaluate tradeoffs. Do not require speculative ports, DTOs, adapters, or events that add behavior-free layers without demonstrated volatility, coupling reduction, or another real consumer.
  8. Route business-language and invariant questions to domain-modeling and authority or disclosure questions to security review; dependency shape alone proves neither domain correctness nor safety.

Output findings first, ordered by severity, and separately from style. For each finding give the dependency path, affected surface, triggering condition, impact, evidence, correction direction, protected quality, and residual tradeoff. State the reviewed and materially unreviewed surface, verification performed, and residual risk. Distinguish confirmed drift from uncertain reachability; do not invent a finding when evidence supports none.

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.