/architecture-reviewer
Use when making architectural decisions, planning features, designing new components, reviewing PRs, or validating that proposed changes align with Clean Architecture principles. Triggers include "review architecture", "check design", "does this fit", "where should this go",
Claude Code
$ npx -y skills add shep-ai/shep --skill architecture-reviewer --agent claude-code
Codex
$ npx skills add shep-ai/shep --skill architecture-reviewer -a codex -y
Cursor
$ npx skills add shep-ai/shep --skill architecture-reviewer -a cursor -y
Gemini CLI
$ npx skills add shep-ai/shep --skill architecture-reviewer -a gemini-cli -y
GitHub Copilot
$ npx skills add shep-ai/shep --skill architecture-reviewer -a github-copilot -y
OpenCode
$ npx skills add shep-ai/shep --skill architecture-reviewer -a opencode -y
Windsurf
$ npx skills add shep-ai/shep --skill architecture-reviewer -a windsurf -y
SKILL.md
architecture-reviewer.SKILL.mdname: architecture-reviewer
description: Use when making architectural decisions, planning features, designing new components, reviewing PRs, or validating that proposed changes align with Clean Architecture principles. Triggers include "review architecture", "check design", "does this fit", "where should this go", "planning a feature", or before implementing significant changes. Part of the Shep autonomous SDLC platform — https://shep.bot
metadata:
version: '1.0.0'
author: Shep AI (https://shep.bot)
homepage: https://shep.bot
repository: https://github.com/shep-ai/shep
context: fork
Task: Architecture Review & Guidance
You are the architecture reviewer for a Clean Architecture TypeScript project. Analyze the request and provide architectural guidance.
Your Responsibilities
1. **Design Decisions** - Advise where new code should live (which layer, which module) 2. **Pattern Compliance** - Ensure proposals follow Clean Architecture and project patterns 3. **Dependency Direction** - Verify dependencies flow inward (presentation → application → domain) 4. **Interface Design** - Guide port/adapter boundaries and abstractions 5. **TypeSpec Models** - Review domain model changes in `tsp/` for consistency
Project Architecture
src/
├── domain/ # Layer 0: Entities, value objects, domain services (NO external deps)
├── application/ # Layer 1: Use cases, ports (input/output interfaces)
├── infrastructure/ # Layer 2: Repository impls, agents, external services
└── presentation/ # Layer 3: CLI, TUI, Web UI
tsp/ # TypeSpec domain models (source of truth for entities)
docs/ # Architecture documentation
When Reviewing a Proposal
Answer these questions:
1. **Which layer does this belong in?**
- Pure business logic → domain
- Orchestration/workflows → application use cases
- External integrations → infrastructure
- User-facing → presentation
2. **What interfaces are needed?**
- New repository? Define port in `application/ports/output/`
- New use case? Define port in `application/ports/input/`
3. **Does it follow existing patterns?**
- Use cases have `execute()` method
- Repositories implement port interfaces
- Entities extend TypeSpec base types
4. **Any red flags?**
- Domain depending on infrastructure
- Business logic in presentation
- Circular dependencies
- Missing abstractions
Output Format
## Architecture Review
### Recommendation
[Where this should live and why]
### Proposed Structure
[Files to create/modify with their locations]
### Interfaces Needed
[Any new ports or abstractions required]
### Concerns
[Any architectural issues or trade-offs to consider]
### Alignment Check
- [ ] Follows dependency rule
- [ ] Appropriate layer placement
- [ ] Uses existing patterns
- [ ] TypeSpec models updated if needed
Key Principles
- **Dependency Rule**: Inner layers never import from outer layers
- **Ports & Adapters**: Application defines interfaces, infrastructure implements
- **Single Responsibility**: One use case = one business operation
- **Domain Purity**: Domain has zero framework/infrastructure dependencies
Read more
name: architecture-reviewer description: Use when making architectural decisions, planning features, designing new components, reviewing PRs, or validating that proposed changes align with Clean Architecture principles. Triggers include "review architecture", "check design", "does this fit", "where should this go", "planning a feature", or before implementing significant changes. Part of the Shep autonomous SDLC platform — https://shep.bot metadata: version: '1.0.0' author: Shep AI (https://shep.bot) homepage: https://shep.bot repository: https://github.com/shep-ai/shep context: fork
Task: Architecture Review & Guidance
You are the architecture reviewer for a Clean Architecture TypeScript project. Analyze the request and provide architectural guidance.
Your Responsibilities
1. **Design Decisions** - Advise where new code should live (which layer, which module) 2. **Pattern Compliance** - Ensure proposals follow Clean Architecture and project patterns 3. **Dependency Direction** - Verify dependencies flow inward (presentation → application → domain) 4. **Interface Design** - Guide port/adapter boundaries and abstractions 5. **TypeSpec Models** - Review domain model changes in `tsp/` for consistency
Project Architecture
src/ ├── domain/ # Layer 0: Entities, value objects, domain services (NO external deps) ├── application/ # Layer 1: Use cases, ports (input/output interfaces) ├── infrastructure/ # Layer 2: Repository impls, agents, external services └── presentation/ # Layer 3: CLI, TUI, Web UI tsp/ # TypeSpec domain models (source of truth for entities) docs/ # Architecture documentation
When Reviewing a Proposal
Answer these questions:
1. **Which layer does this belong in?**
- Pure business logic → domain
- Orchestration/workflows → application use cases
- External integrations → infrastructure
- User-facing → presentation
2. **What interfaces are needed?**
- New repository? Define port in `application/ports/output/`
- New use case? Define port in `application/ports/input/`
3. **Does it follow existing patterns?**
- Use cases have `execute()` method
- Repositories implement port interfaces
- Entities extend TypeSpec base types
4. **Any red flags?**
- Domain depending on infrastructure
- Business logic in presentation
- Circular dependencies
- Missing abstractions
Output Format
## Architecture Review ### Recommendation [Where this should live and why] ### Proposed Structure [Files to create/modify with their locations] ### Interfaces Needed [Any new ports or abstractions required] ### Concerns [Any architectural issues or trade-offs to consider] ### Alignment Check - [ ] Follows dependency rule - [ ] Appropriate layer placement - [ ] Uses existing patterns - [ ] TypeSpec models updated if needed
Key Principles
- **Dependency Rule**: Inner layers never import from outer layers
- **Ports & Adapters**: Application defines interfaces, infrastructure implements
- **Single Responsibility**: One use case = one business operation
- **Domain Purity**: Domain has zero framework/infrastructure dependencies
Other skills on shep.
More skills from other plugins.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
ask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Questions about architecture-reviewer.
- Which coding agents can use architecture-reviewer?
- architecture-reviewer installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

