architecture-review-workflow
Skill1 starsChanged 56 days agoApache-2.0View on GitHub
Review MSA, modular-monolith, and multi-module boundaries by combining system architecture, application architecture, DDD, and code-topology evidence. Use for service decomposition, module extraction, dependency-direction, data ownership, integration contracts, or architecture changes that need boundary-by-boundary findings.
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
Do not replace an unavailable mandatory agent with generic reasoning.
- Very specific: line 32
Use code-cartographer=frugal/low and the three mandatory architecture passes=standard/medium by default.
- Very specific: line 36
Every native handoff uses model_selection: explicit-native-override.
- Distinctive: line 61
Do not call a directory a bounded context, a Gradle module an architecture boundary, or an HTTP hop a microservice boundary without …
- Distinctive: line 95
Create one row per module/service containing:
- Distinctive: line 142
If required topology mapping fails, do not infer missing edges.
- Very specific: line 143
If current and proposed states are mixed or the revision changes, mark affected claims STALE or AMBIGUOUS and do not issue APPROVE.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Architecture Review Workflow
Assess boundaries from deployed system to application module to domain model. Review only; do not perform a restructuring unless the user separately requests implementation.
Exact dependencies
Mandatory agents:
architecture-reviewerapplication-architectdomain-driven-design-reviewer
Conditional topology agent:
code-cartographer
Do not replace an unavailable mandatory agent with generic reasoning.
Cost-aware native routing
Resolve portable profiles from the current runtime capability catalog immediately before dispatch.
Use code-cartographer=frugal/low and the three mandatory architecture passes=standard/medium by
default. Raise only the affected pass to frontier/high for a confirmed security/authority boundary,
irreversible data ownership, or public-contract decision.
Every native handoff uses model_selection: explicit-native-override; spawn with fork_turns: none,
the exact resolved model, and exact reasoning_effort. Never inherit the primary model or reasoning
setting. Record requested and runtime-reported models separately, and fail the pass on mismatch.
Timeout, quota, authentication, or missing tools do not justify a larger model.
Input contract
Accept a repository, diff, architecture proposal, or selected services/modules plus deployment topology, module build graph, public APIs/events, persistence ownership, team ownership, runtime constraints, and target style when available. Derive only what the repository proves. Record the immutable revision and distinguish current state from proposed state.
Workflow
1. Classify the architecture
Classify from evidence, not labels:
- MSA: independently deployable services with explicit remote contracts and operational ownership
- Modular monolith: one deployable with enforced in-process module boundaries
- Multi-module: build/source partitioning whose architectural strength depends on dependency and visibility enforcement
- Hybrid/unclear: mixed deployment or insufficient evidence
Do not call a directory a bounded context, a Gradle module an architecture boundary, or an HTTP hop a microservice boundary without ownership and coupling evidence.
2. Map topology when needed
Invoke code-cartographer before specialist review when any of these hold: three or more relevant
modules/services, undocumented topology, cross-module diff, suspected cycle, unclear entry points,
or disagreement between declared and actual dependencies. Request a factual map only:
- deployables, modules, packages, entry points, public contracts, data stores
- build/runtime dependencies and cycles
- synchronous calls, messages, shared libraries, and shared persistence
- source locations supporting every edge
Skip it only for a small, already-proven topology; record NOT_NEEDED and the evidence. Failure
when mapping is required makes the workflow INCOMPLETE.
3. Parallel architecture passes
Give the same frozen scope and topology map to the three mandatory agents. Run them concurrently with a maximum of three active runs.
architecture-reviewer: system qualities, deployability, coupling, resilience, observability, data consistency, integration and failure modesapplication-architect: use-case boundaries, dependency direction, ports/adapters, transaction ownership, public module APIs, framework leakage, test seamsdomain-driven-design-reviewer: bounded contexts, ubiquitous language, aggregates, context-map relationships, Anti-Corruption Layers, domain invariants, and boundary semantics
Require severity, confidence, source locations/edges, affected qualities, evidence, recommendation, migration impact, and verification.
4. Build the boundary matrix
Create one row per module/service containing:
boundary, business capability/context, owner, deployable, public contract, owned data,
allowed dependencies, observed dependencies, forbidden leaks, transaction boundary,
failure isolation, and boundary tests.
Flag cycles, shared mutable data, cross-boundary ORM entities, backdoor package access, duplicated domain authority, chatty remote calls, unstable shared libraries, unclear transaction ownership, and public contracts that expose internal persistence models. For MSA, assess network failure, versioning, idempotency, consistency, and observability. For a modular monolith/multi-module system, assess compile-time visibility, dependency direction, module API enforcement, events, and tests that prevent boundary erosion.
5. Reconcile and gate
Deduplicate only identical boundary/edge plus root cause. Preserve disagreements between system operability, application layering, and domain semantics. Reject recommendations that merely add layers without reducing coupling or protecting an invariant. Prefer reversible enforcement before service extraction when independent deployment has no demonstrated value.
Use:
INCOMPLETE: mandatory evidence or agent output is missing/unusableBLOCK: supported CRITICAL risk such as data ownership ambiguity causing corruption, a security boundary breach, or an unsafe irreversible splitCHANGES_REQUIRED: no CRITICAL finding and at least one supported HIGH boundary violationWARNING: only MEDIUM/LOW findingsAPPROVE: every mandatory pass completed and no supported finding remains
Output contract
Return:
- scope, revision, current/target architecture classification, assumptions
- dependency run ledger and topology-map status
- aggregate verdict
- system context and dependency graph in compact text or Mermaid when useful
- complete boundary matrix
- unified findings with locations/edges, contributors, evidence, dissent, and affected qualities
- prioritized boundary actions: enforcement now, refactor next, extraction only if justified
- contract, architecture-rule, module, integration, and failure-mode verification plan
- coverage gaps and unresolved decisions
Failure and partial-result semantics
- A mandatory-agent failure yields
INCOMPLETE; retain successful independent analysis but never present it as consensus. - If required topology mapping fails, do not infer missing edges. Report known facts and the map gap.
- If current and proposed states are mixed or the revision changes, mark affected claims
STALEorAMBIGUOUSand do not issueAPPROVE. - Conflicting recommendations remain explicit until evidence resolves them; the orchestrator may choose a conditional path but must not erase dissent.
In this repository65 other files it gives its agents.
- agent-evalSkill
- backend-code-review-workflowSkill
- code-authoring-routerSkill
- code-diagram-extractSkill
- codex-agent-runtimeSkill
- design-pattern-applySkill
- diagram-stylerSkill
- document-designerSkill
- e2e-evidence-reportSkill
- e2e-report-rendererSkill
- e2e-runnerSkill
- e2e-scenario-authorSkill
- e2e-test-workflowSkill
- entitySkill
- enumSkill
- explore-dead-codeSkill
- flywaySkill
- git-flowSkill
- harness-proposeSkill
- harness-refineSkill
- java-spring-review-workflowSkill
- knowledge-auditSkill
- korean-dev-writerSkill
- kotlin-code-authoringSkill
- kotlin-spring-reviewSkill
- kotlin-spring-review-workflowSkill
- learnSkill
- mapperSkill
- markdown-publisherSkill
- mermaid-diagramsSkill
- mssql-code-authoringSkill
- nl-sql-querySkill
- notion-domain-contextSkill
- oop-design-reviewSkill
- opensearch-code-authoringSkill
- opensearch-optimizationSkill
- opensearch-query-reviewSkill
- opensearch-review-workflowSkill
- opensearch-schema-reviewSkill
- pdf-qaSkill
- playwright-e2eSkill
- postgres-code-authoringSkill
- postgres-query-reviewSkill
- postgres-review-workflowSkill
- postgres-risk-checkSkill
- postgres-schema-designSkill
- product-requirementsSkill
- product-ui-designSkill
- refactoring-catalogSkill
- repositorySkill
- requestSkill
- responseSkill
- retroSkill
- schema-doc-extractSkill
- security-scan-workflowSkill
- serviceSkill
- skill-updaterSkill
- start-taskSkill
- test-authoringSkill
- test-quality-refactoring-workflowSkill
- The first 60 shown.
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.

