dykyi-roman/awesome-claude-code/adr-knowledge
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Action-Domain-Responder pattern knowledge base. Provides patterns, antipatterns, and PHP-specific guidelines for ADR (web-specific MVC alternative) audits.
Install
npx vskill@latest install dykyi-roman/awesome-claude-code/adr-knowledgeSKILL.md
ADR Knowledge Base
Quick reference for Action-Domain-Responder pattern and PHP implementation guidelines.
Core Principles
ADR Components
Rule: One action = one HTTP endpoint. Responder builds the COMPLETE response.
Component Responsibilities
| Component | Responsibility | Contains | |
|---|---|---|---|
| Action | Collects input, invokes Domain, passes to Responder | Request parsing, DTO creation, UseCase invocation | |
| Domain | Business logic (same as DDD Domain/Application) | Entities, Value Objects, UseCases, Services | |
| Responder | Builds HTTP Response (status, headers, body) | Response building, template rendering, content negotiation |
ADR vs MVC Comparison
| Aspect | MVC Controller | ADR Action | |
|---|---|---|---|
| Granularity | Multiple actions | Single action per class | |
| Response building | Mixed in controller | Separate Responder class | |
| HTTP concerns | Scattered | Isolated in Responder | |
| Testability | Lower (many concerns) | Higher (single responsibility) | |
| File structure | Few large files | Many focused files |
Quick Checklists
Action Checklist
- [ ] Single
__invoke()method - [ ] No
new Response()or response building - [ ] No business logic (if/switch on domain state)
- [ ] Only input parsing and domain invocation
- [ ] Returns Responder result
Responder Checklist
- [ ] Receives domain result only
- [ ] Builds complete HTTP Response
- [ ] Handles content negotiation
- [ ] Sets status codes based on result
- [ ] No domain/business logic
- [ ] No database/repository access
Domain Checklist
- [ ] Same as DDD Domain/Application layers
- [ ] No HTTP/Response concerns
- [ ] Returns domain objects (not HTTP responses)
- [ ] Pure business logic
Common Violations Quick Reference
| Violation | Where to Look | Severity | |
|---|---|---|---|
new Response() in Action | *Action.php | Critical | |
->withStatus() in Action | *Action.php | Critical | |
if ($result->isError()) in Action | *Action.php | Warning | |
$repository-> in Responder | *Responder.php | Critical | |
$service-> in Responder | *Responder.php | Critical | |
| Multiple public methods in Action | *Action.php | Warning | |
| Template logic in Action | *Action.php | Warning |
PHP 8.4 ADR Patterns
Action Pattern
Responder Pattern
Detection Patterns
Action Detection
Responder Detection
Violation Detection
File Structure
Recommended Structure
Alternative Structure (Feature-Based)
Integration with DDD
ADR fits naturally with DDD layering:
| ADR | DDD Layer | Notes | |
|---|---|---|---|
| Action | Presentation | Entry point for HTTP | |
| Responder | Presentation | Exit point for HTTP | |
| Domain | Domain + Application | Business logic via UseCases |
PSR Integration
ADR works with PSR-7/PSR-15:
| PSR | Usage | |
|---|---|---|
| PSR-7 | Request/Response interfaces | |
| PSR-15 | Middleware for cross-cutting concerns | |
| PSR-17 | Response/Stream factories in Responder |
Antipatterns
1. Fat Action (Critical)
2. Anemic Responder (Warning)
3. Smart Responder (Critical)
References
For detailed information, load these reference files:
references/action-patterns.md— Action class patterns and best practicesreferences/responder-patterns.md— Responder class patternsreferences/domain-integration.md— Integration with DDD Domain layerreferences/mvc-comparison.md— Detailed MVC vs ADR comparisonreferences/antipatterns.md— Common ADR violations with examples
Assets
assets/report-template.md— ADR audit report template
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/adr-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/adr-knowledge)