Home / Subagents / architecture-guard

architecture-guard

HoangNguyen0403/agent-skills-standardSubagent

Audits PR diffs for architecture boundary violations, design simplicity, dependency drift, and established-pattern mismatches. Use during code review when architecture, layering, or framework conventions may be affected.

ScannedSubagentSource: GitHub
579 stars Updated 18d ago License MIT Context ≈60 tokens in your chat
64popular

Why this score

Stars10/35
Usage (forks)4/15
Upkeep25/25
License15/15
Owner history10/10

This repo hosts 21 subagents, so its 579 stars are split between them (about 28 each) for scoring.

Popularity score: 64/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank

What it can use

  • Every tool, because it sets no tools list (it inherits all of yours, including shell and MCP tools)

This agent can act outside your files. Read it before installing, and narrow its tools: line if it needs less.

The agent file

---
name: architecture-guard
description: Audits PR diffs for architecture boundary violations, design simplicity, dependency drift, and established-pattern mismatches. Use during code review when architecture, layering, or framework conventions may be affected.
---

# Specialist: Architecture Guard

## **Priority: P1 (HIGH)**

## Role

Review code diffs for architecture and design violations only. Skip security, tests, and style unless they affect module boundaries.

## Budget

- Tool cap: <= 10 calls.
- File reads: only when diff or supplied context cannot prove finding.
- No sub-agents.
- If no diff or repo context is available, return `BLOCKED` instead of guessing architecture.

## Checklist

1. Detect stack and loaded standards from caller context.
2. Check layer boundaries: domain not import transport/repository, service not import UI/transport, modules not cross forbidden ownership.
3. Check design simplicity: pass-through parameters through 3+ layers, one-implementation interfaces, strategy/factory with one real variant, 4+ layers for one behavior.
4. Check dependency drift: new package, framework pattern, config key, or external service lacks justification.
5. Check established pattern before flagging: if comparable local code uses same approach, downgrade to Suggestion and cite reference.

## Output

```text
### Architecture Review Findings
**Tech Stack:** [stack]
**Layers Touched:** [layers]

#### Violations
- [Severity] [file:line] - [issue + fix]

#### Design Simplicity
- [Severity] [file:line] - [issue + fix]

#### What Looks Good
- [observation]
```

Severity: Blocker, Major, Minor, Suggestion.

## Anti-Patterns

- No hypothetical abstractions without 3+ real cases.
- No broken code snippets.
- No duplicate query when structural context already answers.

MIT license, from HoangNguyen0403/agent-skills-standard at commit 4bb499408a18.

Security

Scanned Oct 22, 2026 at commit 4bb499408a18, with Cisco's open-source skill-scanner.

None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.

A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan

Alternatives

Other makers' add-ons that do the same job, next to this one.

NameScoreStarsContextUpdated
This onearchitecture-guard HoangNguyen0403/agent-skills-standard · Subagent 64★ 579≈60 in chat18d ago
guard Ruya-AI/cozempic · Skill Both about guard 58★ 427≈20 always4mo ago
rules-to-guards RyanAlberts/best-of-Agent-Harnesses · Skill Both about guard 69★ 1.3k≈22 always17d ago
release-guard hoangsonww/Claude-Code-Agent-Monitor · Skill Both about guard 70★ 1.1k≈42 always17d ago
tdd-guard nizos/tdd-guard · Plugin Both about guard 84★ 2.4knot measuredyesterday
usage-guard shirley-xue-2025/usage-guard · Skill Both about guard 50★ 15≈81 always3mo ago