/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",
$ npx -y skills add shep-ai/shep --skill architecture-reviewer --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/architecture-reviewer
Context preview
The summary Claude sees to decide when to auto-load this skill.
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",
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
Ship features 10x faster. Built In Auto: Memory, K8S Agent & Security (SDD+SDLC) . 😇
Repo: shep-ai/shep
Other skills on shep.
- /cross-validate-artifacts
Cross-validate documentation and artifacts across the codebase for consistency, conflicts, and contradictions. Use when users ask to "cross-validate", "validate docs", "check documentation consistency", "audit documentation", or find conflicts/contradictions in docs. Supports
Open skill - /mermaid-diagrams
Comprehensive guide for creating software diagrams using Mermaid syntax. Use when users need to create, visualize, or document software through diagrams including class diagrams (domain modeling, object-oriented design), sequence diagrams (application flows, API interactions,
Open skill - /react-flow
React Flow (@xyflow/react) for workflow visualization with custom nodes and edges. Use when building graph visualizations, creating custom workflow nodes, implementing edge labels, or controlling viewport. Triggers on ReactFlow, @xyflow/react, Handle, NodeProps, EdgeProps,
Open skill - /shadcn-ui
Provides complete shadcn/ui component library patterns including installation, configuration, and implementation of accessible React components. Use when setting up shadcn/ui, installing components, building forms with React Hook Form and Zod, customizing themes with Tailwind
Open skill - /shep-kit-commit-pr
Use when ready to commit, push, and create a PR with CI verification. Triggers include "commit and pr", "push pr", "create pr", "ship it", or when implementation is complete and needs CI validation. Watches CI and auto-fixes failures. Part of the Shep autonomous SDLC platform —
Open skill - /shep-kit-fast-loop
Use when the user wants rapid implementation iteration without tests, builds, or commits. Triggers include "fast loop", "fast iteration", "just code", "no tests", "iterate quickly", or when the user says they have a dev server running and want to check results manually. Part of
Open skill

