Agent skill

Architectural Review

by bradygaster in bradygaster/squad

How to review PRs for architectural quality — module boundaries, dependency direction, export surface, pattern consistency

MITAuto-check passed

Install Architectural Review

skills CLI
$ npx skills add bradygaster/squad --skill architectural-review -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install bradygaster/squad architectural-review --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/bradygaster/squad.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.copilot/skills/architectural-review .claude/skills/architectural-review && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
architectural-review
GitHub stars
3.3k
Token cost
~2.2k tokens
SKILL.md length
845 words
Files
1
Skills in repo
31
Repo updated
First seen
Licence
MIT

At a glance

How to review PRs for architectural quality — module boundaries, dependency direction, export surface, pattern consistency

  • Works in 8 steps: Module Boundary Enforcement → Zero-Dependency Bootstrap Contract → Export Surface Safety → …
  • SKILL.md covers Context, Patterns, Examples and Review Output Format, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Architectural Review is an agent skill from bradygaster/squad. How to review PRs for architectural quality — module boundaries, dependency direction, export surface, pattern consistency

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Squad: AI agent teams for any project. The licence is MIT.

Example prompts

  • “/architectural-review”

Requirements

  • Node.js

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Module Boundary Enforcement
  2. Zero-Dependency Bootstrap Contract
  3. Export Surface Safety
  4. Sweeping Refactor Safety
  5. Template Sync Awareness
  6. .squad/ Leakage Check
  7. Pattern Consistency
  8. Dependency Direction in core/

What it can do on your machine

Read from SKILL.md and the folder at commit e0c84dd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Architectural Review loads about 2.2k tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 845 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~36
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from bradygaster/squad at commit e0c84dd, republished under its MIT licence (© bradygaster). 845 words, ~2,238 tokens.

Download SKILL.mdSave it as .claude/skills/architectural-review/SKILL.md (or your agent's skills folder).
name
architectural-review
description
How to review PRs for architectural quality — module boundaries, dependency direction, export surface, pattern consistency
domain
architecture
confidence
medium
source
extracted from copilot-instructions.md patterns and codebase conventions

Context

When reviewing a PR that touches core architecture, the reviewer must verify that structural invariants are preserved. This skill covers reviewing existing PRs for architectural quality — not writing proposals (see architectural-proposals/SKILL.md for that).

Use this skill when a PR includes any of:

  • New modules, packages, or directories
  • Dependency changes (package.json, import additions across package boundaries)
  • API surface changes (new or modified exports from index.ts barrel files)
  • Cross-package imports (anything crossing the SDK/CLI boundary)
  • New abstractions (interfaces, base classes, registries, factories)
  • Sweeping refactors (file renames, pattern migrations, bulk conversions)

Patterns

1. Module Boundary Enforcement

The Squad codebase has two core packages with a strict dependency direction:

squad-cli → depends on → squad-sdk
squad-sdk → NEVER depends on → squad-cli

Check every new import statement in the PR:

  • CLI files may import from SDK (@bradygaster/squad-sdk)
  • SDK files must NEVER import from CLI
  • If a PR adds an SDK import that pulls in CLI code, reject it
2. Zero-Dependency Bootstrap Contract

The CLI has protected bootstrap files that must use ONLY Node.js built-in modules (node:fs, node:path, node:child_process, node:util). These files run before the SDK is loaded.

Protected files (authoritative list from copilot-instructions.md):

FilePurpose
packages/squad-cli/src/cli/core/detect-squad-dir.tsFinds .squad/ at startup
packages/squad-cli/src/cli/core/errors.tsError classes (SquadError, fatal())
packages/squad-cli/src/cli/core/gh-cli.tsGitHub CLI wrapper
packages/squad-cli/src/cli/core/output.tsColor/emoji console output
packages/squad-cli/src/cli/core/history-split.tsPortable knowledge separator

Review checklist for bootstrap files:

  • ❌ No new import or require of anything outside node:*
  • ❌ No conversion to FSStorageProvider, StorageProvider, or SDK abstractions
  • ✅ Look for — zero dependencies markers in file headers
  • ✅ If the PR adds a new bootstrap utility, it must be added to this table and have a zero-dependency regression test
3. Export Surface Safety

Changes to barrel files (index.ts) have downstream impact. Barrel files define the public API of a package.

Review checklist:

  • Adding exports: Is the new export intentional? Does it expose implementation details that should stay internal?
  • Removing exports: Are downstream consumers accounted for? Removing an export is a breaking change.
  • Renaming exports: Same as remove + add — breaks anyone using the old name. Look for typos (e.g., FSStorageProvidr vs. FSStorageProvider).
  • Re-exports: If the PR adds export * from './internal-module', verify that the internal module doesn't accidentally expose private types.
4. Sweeping Refactor Safety

When a PR applies a codebase-wide pattern change (e.g., "convert all fs calls to StorageProvider"), verify the 5-step checklist from project instructions:

  1. Protected Files checked — None of the protected bootstrap files were converted
  2. Zero-dependency markers scanned — Files with — zero dependencies headers were skipped
  3. Imports resolve — Every import { X } from '@bradygaster/squad-sdk' references an export that actually exists in the SDK barrel file
  4. Not blindly applied — File-specific constraints were respected
  5. Batched testing — Changes were tested in logical groups, not all 30 files at once
5. Template Sync Awareness

Template files exist in four locations and must stay consistent:

templates/                          # Source of truth
.squad-templates/                   # Local project templates
packages/squad-cli/templates/       # CLI-bundled templates
.github/workflows/                  # Workflow templates

If a PR modifies a template in one location, check:

  • Was the change mirrored to other locations where the same template exists?
  • Does TEMPLATE_MANIFEST in templates.ts still correctly map files to agents?
  • Were any new templates added to the manifest?
Show full SKILL.md (358 more words)Show less
6. .squad/ Leakage Check

.squad/ files (team config, decisions, agent charters) must NOT leak into feature PRs that are about code changes.

Check:

  • If the PR is labeled as a feature or bugfix, it should not modify .squad/team.md, .squad/decisions.md, .squad/routing.md, or agent charters — unless the issue specifically calls for it
  • .squad/decisions/inbox/ files are acceptable if the PR documents a decision made during implementation
  • .squad-templates/ changes are acceptable only if the PR is about template functionality
7. Pattern Consistency

New code should follow established patterns in the codebase. Look for:

  • Naming conventions: Does the new module follow existing naming? (e.g., kebab-case file names, PascalCase classes)
  • Error handling: Does the new code use SquadError and fatal() from errors.ts, or does it invent its own error patterns?
  • Storage abstraction: Does the new code use StorageProvider for file I/O (except in protected bootstrap files)?
  • Test patterns: Does the PR include tests that follow the existing test structure?
8. Dependency Direction in core/

The packages/squad-cli/src/cli/core/ directory contains a mix of:

  • Early-startup bootstrap utilities (zero external deps — protected)
  • Later SDK-dependent modules (may import from SDK)

When reviewing changes to core/ files:

  • Verify the file is not in the protected list before accepting SDK imports
  • Confirm the SDK is loaded at the point where the file runs in the startup sequence
  • Watch for new files added to core/ — determine if they are bootstrap or post-SDK and document accordingly

Examples

Example 1: Reject — SDK import in bootstrap file

PR adds to detect-squad-dir.ts:
  import { FSStorageProvider } from '@bradygaster/squad-sdk';

Finding: REJECT — detect-squad-dir.ts is a protected bootstrap file.
It runs before the SDK is loaded. This import will crash the CLI at startup.
Recommendation: Use node:fs directly. See Protected Files table.

Example 2: Reject — Reverse dependency

PR adds to packages/squad-sdk/src/storage.ts:
  import { detectSquadDir } from '@bradygaster/squad-cli';

Finding: REJECT — SDK must never depend on CLI. Dependency direction is
CLI → SDK, not reverse. Move the shared logic to SDK or extract to a
shared utility within the SDK package.

Example 3: Approve with note — Template change in one location

PR modifies templates/squad.agent.md but not .squad-templates/squad.agent.md

Finding: APPROVE with note — Template was updated in templates/ but the
same file in .squad-templates/ was not synced. Verify whether .squad-templates/
should match or if it intentionally diverges.

Example 4: Reject — Sweeping refactor hits protected file

PR titled "Convert all fs calls to StorageProvider" modifies 15 files,
including packages/squad-cli/src/cli/core/output.ts

Finding: REJECT — output.ts is a protected zero-dependency bootstrap file.
The PR must skip this file. See Sweeping Refactor Rules step 1.

Example 5: Flag — Mass file deletion

PR deletes 25 files as part of "cleanup unused modules"

Finding: FLAG — More than 20 files deleted. This exceeds the red flag
threshold. Verify each deletion is intentional and no downstream imports
are broken. Recommend splitting into smaller PRs.

Review Output Format

Structure your architectural review as:

## Architectural Review

**Verdict:** APPROVE | APPROVE WITH NOTES | REQUEST CHANGES | REJECT

### Findings

1. [severity: critical|high|medium|low] — description
   - File(s): path/to/file.ts
   - Recommendation: what to fix

2. [severity: ...] — ...

### Summary
Brief explanation of architectural impact and any required follow-ups.

Anti-Patterns

  • ❌ Approving SDK imports in protected bootstrap files ("it's just one import")
  • ❌ Ignoring barrel file changes ("it's just adding an export")
  • ❌ Skipping template sync check ("they probably know about the other locations")
  • ❌ Accepting sweeping refactors without verifying the 5-step checklist
  • ❌ Allowing .squad/ config changes in feature PRs without justification
  • ❌ Approving reverse dependencies (SDK importing from CLI) for "convenience"
  • ❌ Letting new core/ files slip in without classifying them as bootstrap vs. post-SDK
  • ❌ Rubber-stamping PRs that delete >20 files without line-by-line deletion review

© bradygaster, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .copilot/skills/architectural-review of bradygaster/squad.

Open the folder on GitHubat commit e0c84dd

Compare with similar skills

Architectural Review next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Architectural Review compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Architectural Review this skillbradygaster/squad3.3k—~2.2kAutomated safety check: PassMIT
Module DependenciesJetBrains/intellij-community21k—~2.3kAutomated safety check: PassCustom licence
Android Clean Architectureaffaan-m/ECC276k4 repos~2.2kAutomated safety check: PassMIT
Module Architecture Boundarieslakernote/easy-postman723—~3.9kAutomated safety check: PassApache-2.0
Architecture Boundarieslatitude-dev/latitude-llm4.7k—~3.2kAutomated safety check: PassMIT
Architecture Patternswshobson/agents40k—~2kAutomated safety check: PassMIT

Similar skills

  • Module Dependencies

    JetBrains/intellij-community

    Official

    Add or modify IntelliJ module dependencies in .iml files. An agent skill from JetBrains/intellij-community.

    21k GitHub stars~2.3k tokensUpdated today
    MobileAuto-check passed
  • Applies Clean Architecture to Android and Kotlin Multiplatform projects: module layout, dependency rules, UseCases, Repositories and data layer patterns.

    276k GitHub starsUsed in 4 repos~2.2k tokens
    DevelopmentAuto-check passed
  • Module Architecture Boundaries

    lakernote/easy-postman

    A skill your agent uses when adding or refactoring EasyPostman modules, shared code, plugin contracts, UI utilities, i18n, settings, theme/font handling, or deciding where a class belongs.

    723 GitHub stars~3.9k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Architecture Boundaries

    latitude-dev/latitude-llm

    Layering and boundaries, web vs public API, app layout (clients, routes, logging), ports/adapters, runtime-portable domain/shared/utils code, multi-tenancy, DDD layout, or anti-patterns.

    4.7k GitHub stars~3.2k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Architecture Patterns

    wshobson/agents

    Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.

    40k GitHub stars~2k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • Dependency Scanning

    sickn33/agentic-awesome-skills

    Scan package dependencies for known vulnerabilities using Snyk, Dependabot, and OWASP Dependency-Check.

    47k GitHub starsUsed in 1 repo~2.4k tokens
    SecurityAuto-check passed

More from bradygaster/squad

All 31 skills in this repo
  • Fact Checking

    bradygaster/squad

    Review and validate claims using counter-hypothesis testing.

    3.3k GitHub stars~503 tokensUpdated today
    Auto-check passed
  • Archival Integrity

    bradygaster/squad

    Preserve content when moving entries between tracked Squad state files

    3.3k GitHub stars~735 tokensUpdated today
    Auto-check passed
  • CI Validation Gates

    bradygaster/squad

    Defensive CI/CD patterns: semver validation, token checks, retry logic, and draft detection

    3.3k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • CLI Wiring

    bradygaster/squad

    Checklist and patterns for wiring new CLI commands into cli-entry.ts

    3.3k GitHub stars~501 tokensUpdated today
    Auto-check passed
  • Enables squad agents on different machines to share work via git-based task queuing

    3.3k GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Gh Aw Reliability

    bradygaster/squad

    Validate GitHub Agentic Workflow contracts through compiled artifacts and realistic mutations

    3.3k GitHub stars~444 tokensUpdated today
    Auto-check passed

Questions about Architectural Review

What does Architectural Review do?

How to review PRs for architectural quality — module boundaries, dependency direction, export surface, pattern consistency. Architectural Review is an agent skill from bradygaster/squad.

How do I install Architectural Review in Claude Code?

Run `npx skills add bradygaster/squad --skill architectural-review -a claude-code`. Or copy the skill folder (.copilot/skills/architectural-review in bradygaster/squad) into .claude/skills/architectural-review in your project. Claude Code loads it when a task matches its description.

How do I install Architectural Review in Codex?

Run `npx skills add bradygaster/squad --skill architectural-review -a codex`. Or copy the skill folder (.copilot/skills/architectural-review in bradygaster/squad) into .agents/skills/architectural-review in your project. Codex loads it when a task matches its description.

Can I use Architectural Review in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bradygaster/squad --skill architectural-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/architectural-review, .gemini/skills/architectural-review, .github/skills/architectural-review and .opencode/skills/architectural-review in your project.

What does Architectural Review need to run?

SKILL.md names no scripts, command-line tools or credentials: Architectural Review is instructions for the agent only. Our summary lists: Node.js.

Does Architectural Review access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Architectural Review safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Architectural Review use?

Architectural Review is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Architectural Review use?

About 2.2k tokens (SKILL.md is roughly 9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Architectural Review?

Skills that share tags, products or a category with Architectural Review: Module Dependencies (JetBrains/intellij-community, 21k stars), Android Clean Architecture (affaan-m/ECC, 276k stars), Module Architecture Boundaries (lakernote/easy-postman, 723 stars) and Architecture Boundaries (latitude-dev/latitude-llm, 4.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Architectural Review?

bradygaster (a GitHub user) maintains it in bradygaster/squad, which has 3,261 GitHub stars. The repository holds 31 skills in this directory. The repository was last updated on October 10, 2026.

Source: bradygaster/squad on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.