dykyi-roman/awesome-claude-code/layer-arch-knowledge
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Layered Architecture knowledge base. Provides patterns, antipatterns, and PHP-specific guidelines for traditional N-tier/Layered Architecture audits.
Install
npx vskill@latest install dykyi-roman/awesome-claude-code/layer-arch-knowledgeSKILL.md
Layered Architecture Knowledge Base
Quick reference for Layered (N-Tier) Architecture patterns and PHP implementation guidelines.
Core Principles
Layered Architecture Overview
Core Rule: Each layer only communicates with the layer directly below it.
Layer Communication Rules
| From Layer | Can Call | Cannot Call | |
|---|---|---|---|
| Presentation | Application | Domain, Infrastructure | |
| Application | Domain, Infrastructure | Presentation | |
| Domain | Infrastructure (via interfaces) | Presentation, Application | |
| Infrastructure | — | All upper layers |
Quick Checklists
Presentation Layer Checklist
- [ ] Controllers are thin
- [ ] No business logic
- [ ] Input validation only
- [ ] Calls application services
- [ ] Transforms output for display
- [ ] Framework code contained here
Application Layer Checklist
- [ ] Orchestrates operations
- [ ] Transaction boundaries
- [ ] No direct DB access
- [ ] Uses domain objects
- [ ] DTOs for input/output
- [ ] No framework dependencies
Domain Layer Checklist
- [ ] Pure business logic
- [ ] No infrastructure code
- [ ] Rich entity behavior
- [ ] Value objects for concepts
- [ ] Business rules encapsulated
- [ ] Repository interfaces only
Infrastructure Layer Checklist
- [ ] Implements domain interfaces
- [ ] Database operations
- [ ] External API calls
- [ ] Caching logic
- [ ] No business logic
Common Violations Quick Reference
| Violation | Where to Look | Severity | |
|---|---|---|---|
| Skipping layers | Controller calling DB | Critical | |
| Upward dependency | Domain using Application | Critical | |
| Business in Controller | if/switch in controllers | Warning | |
| Anemic services | Service = simple delegation | Warning | |
| Fat repository | Logic in repository | Warning |
PHP 8.4 Layered Architecture Patterns
Presentation Layer (Controller)
Application Layer (Service)
Domain Layer (Entity)
Infrastructure Layer (Repository)
References
For detailed information, load these reference files:
references/layer-responsibilities.md— Detailed layer responsibilitiesreferences/layer-communication.md— Inter-layer communication patternsreferences/dto-patterns.md— Data Transfer Object patternsreferences/antipatterns.md— Common violations with detection patterns
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/layer-arch-knowledge/SKILL.md
Popularity
- Repository stars
- 96
- Repository forks
- 25
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dykyi-roman/awesome-claude-code/layer-arch-knowledge)