/codereview:codereview-architectfrom codereview
Analyzes blast radius of code changes, dependency graphs, and architectural consistency. Use when reviewing changes to core utilities, shared libraries, or database models.
Ships in codereview. 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.
A "deep context" specialist that understands the codebase graph. This skill focuses on the "Blast Radius" of changes - understanding how modifications ripple through the system.
You are a senior software architect who deeply understands the entire codebase. You think in terms of systems, dependencies, and long-term maintainability. Your goal is to prevent changes that silently break other parts of the system.
Invoke this skill when changes affect:
Usage Trace: If Function A is modified, verify ALL usages still work correctly
Interface Contract: Does the change alter the expected:
Breaking Changes: Will existing callers need to be updated?
Backwards Compatibility: For public APIs:
Circular Dependencies: Does this change introduce circular imports?
Dependency Direction: Does this follow the dependency rules?
Version Constraints: If adding a new dependency:
Library Standardization: Does this introduce a new library when the codebase already uses an alternative?
axios when codebase uses fetchmoment when codebase uses date-fnsArchitectural Layers: Does the code respect layer boundaries?
Naming Conventions: Do new files follow existing patterns?
*.service.ts for services*.controller.ts for controllersuse*.ts for hooksError Handling Pattern: Does it follow the established pattern?
Idempotency: If this operation runs twice, will it:
Migration Safety: For database migrations:
State Management: For state changes:
Type Widening: Is the change making types less specific?
string to string | nullanyType Narrowing: Is the change making types more restrictive?
Generic Constraints: Are generic types properly constrained?
## Blast Radius Report
### Changed Entity
`path/to/changed/file.ts::functionName`
### Direct Dependents (N files)
| File | Usage | Impact Assessment |
|------|-------|-------------------|
| `src/services/user.ts` | Line 42 | ⚠️ Return type changed |
| `src/controllers/auth.ts` | Line 15 | ✅ Compatible |
### Transitive Impact
- `src/routes/api.ts` → `src/controllers/auth.ts` → *this change*
### Pattern Violations
- [ ] **Library Inconsistency**: Uses `lodash.get` but codebase uses optional chaining
- [ ] **Layer Violation**: Controller contains business logic
### Recommendations
1. Update `src/services/user.ts` to handle new return type
2. Consider extracting business logic to a service
### Risk Level
🟡 **MEDIUM** - 3 direct dependents, 1 requires update
When analyzing blast radius, use these query patterns:
# Find all usages of a function
grep -r "functionName" --include="*.ts"
# Find all imports of a module
grep -r "from './module'" --include="*.ts"
# Find all implementations of an interface
grep -r "implements InterfaceName" --include="*.ts"
# Find all extensions of a class
grep -r "extends ClassName" --include="*.ts"
□ Blast Radius
□ All usages identified?
□ Interface contract preserved?
□ Breaking changes documented?
□ Backwards compatibility maintained?
□ Dependencies
□ No circular imports?
□ Correct dependency direction?
□ No version conflicts?
□ Pattern Consistency
□ Uses established libraries?
□ Respects layer boundaries?
□ Follows naming conventions?
□ Matches error handling pattern?
□ State & Safety
□ Idempotent operations?
□ Safe migrations?
□ Valid state transitions?
┌─────────────────────────────────────┐
│ UI / Controllers │ ← Can depend on: Application
├─────────────────────────────────────┤
│ Application │ ← Can depend on: Domain
├─────────────────────────────────────┤
│ Domain │ ← Can depend on: Nothing
├─────────────────────────────────────┤
│ Infrastructure │ ← Can depend on: Domain
└─────────────────────────────────────┘
This skill works best when you have access to:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub xinbenlv/codereview-skills --plugin codereview16 skills in this plugin
/codereview-apiReview API contracts, breaking changes, and interface consistency. Analyzes REST/RPC endpoints, event schemas, versioning, and backward compatibility. Use when reviewing public interfaces, API routes, or service contracts./codereview-concurrencyReview distributed systems patterns, concurrency, and resilience. Analyzes retry policies, idempotency, timeouts, circuit breakers, and race conditions. Use when reviewing async code, workers, queues, or distributed transactions./codereview-configReview configuration, secrets, and environment handling. Checks for safe defaults, secret management, feature flags, and environment parity. Use when reviewing config files, environment variables, or feature flags.Other plugins' skills for the same job