/swe-guidelines:arch-review-fullfrom swe-guidelines
Runs eight parallel architecture review lenses and merges them into a single report. Use before a pull request or when a change crosses layers.
Ships in swe-guidelines. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run every lens group over the same scope, in parallel, and merge the eight reports into one. Each group is judged by its own reviewer so that no perspective is diluted by another; this skill only fans out, collects, and merges.
The arguments name what to review, exactly as arch-review-<group>
reads them (see ../arch-review-om/SKILL.md, Input; a path that starts
with ../ is read from this skill's folder as realpath resolves it).
Resolve the scope once, here, into a concrete description (the list of
files, or the range or commit) and hand the same description to every
reviewer so the eight reports cover the same ground. all and a path
are listed with git ls-files --cached --others --exclude-standard,
followed by -- <path> for a path, so the list holds every file git
does not ignore, tracked or untracked. A range or a commit
is handed over as the ref, with its list of files, and the reviewer
reads each file at that ref, never from the working tree. An empty scope
is reported as "nothing to review" and the skill stops. all costs
eight full reads of the repository, one per reviewer, and on a large
tree takes minutes and a large share of each reviewer's context; a path
or a range is the cheaper question whenever the change is narrower than
the tree.
-C option: the pre-approved commands match only as written,
so a -C makes a stricter host ask first. Each reviewer reads the
listed files by their absolute paths with Read and Grep, and runs
any git command its group needs the same way.realpath, and the paths from it to
absolute ones: the lens catalog is ../../lenses/ and the guideline
is ../../architecture.md. Reviewers do not see this skill's text,
so pass them absolute paths.all, or a path),
run the checker once, for every group:
python3 <arch_check.py> --no-local --root <root> --format json,
where <arch_check.py> is the absolute path of
../../checkers/arch_check.py and <root> the absolute path of the
root of the repository under review. --root says which repository
is read, whatever folder the shell is in, so no cd goes before the
command. Run it alone, with no other command chained to it. This
skill pre-approves no Python command, so the host may ask the
person first, and a person who allowed this one command is asked
about no other. Never leave --no-local out: without it the
checker runs the project's own rules, which are files of the
repository under review, and a review runs none of them.
The checker reads the working tree only, so for a range or a commit
it is not run: note that, and every reviewer judges every lens of
its group. Otherwise keep its output. Each reviewer gets the part of it that belongs to
its group, as the checker wrote it: each rules_run entry whose
rule is one of its lenses, whole, with its to_judge list, and the
findings and the exceptions_applied entries of those rules. So no
reviewer runs it again, and a place a rule names under to_judge
reaches the reviewer that judges it. The findings whose group is
framework (PARSE, IGNORE) go to every reviewer, because a file
that does not parse was read by no rule of any group; the merge
keeps one copy of each. When the checker cannot run, or its command
is refused, note why; every reviewer then judges every lens of its
group.arch-reviewer agent that ../../agents/arch-reviewer.md
defines for Claude Code (swe-guidelines:arch-reviewer when
installed as the plugin). When no such agent is installed, give a
general subagent the same five inputs, and first the text of
../arch-review-<group>/SKILL.md with every path in it that starts
with ../ made absolute from that skill's folder as realpath
resolves it, since the subagent reads it from elsewhere. Start it
read-only: with only the tools that skill's allowed-tools names
where the host lets the caller set them, and told in its task never
to edit, stage, or commit and never to run a file of the repository
under review. Cap it at 80 turns, the maxTurns of arch-reviewer;
where the host takes no cap, the task says to stop at 80 turns and
return the report, each lens not yet decided under Unverified as
"turn cap reached". Tell that subagent to skip the procedure's
checker step and to use the part of the output passed to it instead,
so the checker runs once. Where the agent has no subagents, run the
eight group procedures one after another in this session, each on its
part of the same output. The groups:
arch-review-omarch-review-contractsarch-review-contextarch-review-storagearch-review-asyncarch-review-networkarch-review-deliveryarch-review-ops# Architecture review: <group title>, has the Scope and
Lenses lines and the five sections of the group's Output in order
(Findings, Deviations, Passed, Unverified, Not applicable), and its
counts hold: applied plus not applicable is the number of lenses in
its lens file, its ## <LENS-ID> headings, counted with Grep. A
section outside these five fails nothing and is left out of the
merge. A reviewer that fails, or returns a report that fails
this test, is re-run once with the same inputs and the part of the
test it failed named in its task. If it fails again, its row in By
group reads not reviewed, a **Not reviewed.** <group>: <the error> line follows the Lenses line, and its lenses count as
unverified, so the totals still cover the catalog.path:line, keep both lens ids on
one line; the fix text comes from the higher-severity one. At
equal severity the group whose header partition (the opening
paragraphs of its lens file) owns the rule wins the fix text, and
the other id stays on the line. Two findings of one group at equal
severity merge the same way, and the lower lens id wins.path:line; the line named is the
winner's. A fix's symbol is the first class, method, or setting
its Fix sentence names, and two symbols are the same when they
are spelled the same.path:line become one
line with both ids.None. when there are none. They are not
findings and count nowhere.high findings, say so in one sentence after the report,
with the count. Nothing else.Never edit, stage, or commit, and never run a file of the repository under review. This skill reads and reports.
The group report shape, plus a Groups line and a per-group table:
# Architecture review
**Scope.** <the scope line>
**Groups.** om, contracts, context, storage, async, network, delivery, ops
**Lenses.** <n> applied, <p> passed, <f> findings, <u> unverified, <x> not applicable
## Findings
- **<LENS-ID>[, <LENS-ID>] <severity>** `<path>:<line>` <what breaks the rule>. Fix: <one sentence>.
## Deviations
- **<LENS-ID>** `<path>:<line>` ADR-NNNN <what the ADR accepts, a few words>.
## By group
| Group | Applied | Passed | Findings | Unverified | Not applicable |
|-----------|---------|--------|----------|------------|----------------|
| om | | | | | |
| contracts | | | | | |
| context | | | | | |
| storage | | | | | |
| async | | | | | |
| network | | | | | |
| delivery | | | | | |
| ops | | | | | |
## Passed
<LENS-ID>, <LENS-ID> (`<path>`), ... (all groups, in id order; a `high` lens names the file that proved it)
- **<LENS-ID>[, <LENS-ID>]** `<path>:<line>` <a place judged no breach: what it is, and why>.
## Unverified
<LENS-ID> (<what would decide it>), ...
## Not applicable
<LENS-ID> (<why>), ...
Every <path> is relative to the root of the repository under review,
with forward slashes and no leading ./.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub baristaze/swe_guidelines --plugin swe-guidelines22 skills in this plugin
/arch-benchmarkRun a benchmark scenario (a skill, a command, or a question) in a declared runtime and have frontier models score it against the rubric. Use to measure a change to a skill or the text./arch-benchmark-browserRun the benchmark prompt in the chatgpt.com, claude.ai, gemini.google.com, and grok.com products, signed in, and save each answer with its conversation URL as proof; in a checkout of this repository, also check the run in, redacted, with its row./arch-deviateRecord a deliberate deviation from the guideline as an ADR under docs/adr/: the rule quoted, the decision, the consequences. Use when a finding is accepted as intentional./arch-explainExplain how the guideline applies to a question, a file, or a change, citing the sections and lenses that govern it. Use when onboarding or before a cross-layer change./arch-new-aspectIncorporate a new aspect into the guideline and cascade it through the lenses, skills, docs, and README, naming the release level. Runs in a checkout of the guideline repository./arch-review-asyncArchitecture review through the Async lenses: infra, queues, workers, leases, park vs fail. For a change in this area, or as one leg of arch-review-full.Other plugins' skills for the same job