dykyi-roman/awesome-claude-code/analyze-solid-violations
- community
Checking that the SKILL.md file is still in the repository.
Analyzes PHP codebase for SOLID principle violations. Detects God classes (SRP), type switches (OCP), broken contracts (LSP), fat interfaces (ISP), and concrete dependencies (DIP). Generates actionable reports with severity levels and remediation recommendations.
Install
npx vskill@latest install dykyi-roman/awesome-claude-code/analyze-solid-violationsSKILL.md
SOLID Violations Analyzer
Overview
This skill analyzes PHP codebases for SOLID principle violations and generates detailed reports with severity levels and remediation recommendations.
Analysis Workflow
Step 1: Scope Identification
Determine analysis scope from user input or detect automatically:
Step 2: Run Detection Patterns
Execute detection patterns for each SOLID principle.
SRP (Single Responsibility) Detection
God Class Detection
High Dependency Count
Multiple Responsibility Indicators
OCP (Open/Closed) Detection
Type Switch Detection
Extension Indicators
LSP (Liskov Substitution) Detection
Contract Violations
Precondition/Postcondition Issues
ISP (Interface Segregation) Detection
Fat Interface Detection
Unused Interface Methods
Generic Interface Names
DIP (Dependency Inversion) Detection
Direct Instantiation
Concrete Type Hints
Service Locator Anti-pattern
Report Generation
Analysis Output Format
Severity Classification
| Severity | Criteria | Action | |
|---|---|---|---|
| CRITICAL | >500 LOC, >10 deps, NotImplementedException | Immediate refactoring | |
| WARNING | 300-500 LOC, 7-10 deps, type switches | Plan refactoring | |
| INFO | 200-300 LOC, minor issues | Monitor in next iteration |
Remediation Skills
| Violation | Recommended Skill | |
|---|---|---|
| God Class | create-use-case | |
| Type Switch | create-strategy | |
| No Interface | create-repository | |
| Domain Logic | create-domain-service | |
| Value Extraction | create-value-object | |
| Factory Missing | create-factory | |
| Decorator Need | create-decorator |
Quick Analysis Commands
Integration with solid-knowledge
This analyzer uses detection patterns from solid-knowledge. For detailed principle explanations and patterns, refer to:
solid-knowledge/references/srp-patterns.mdsolid-knowledge/references/ocp-patterns.mdsolid-knowledge/references/lsp-patterns.mdsolid-knowledge/references/isp-patterns.mdsolid-knowledge/references/dip-patterns.mdsolid-knowledge/references/antipatterns.md
Report Template
See assets/report-template.md for the full report format.
When This Is Acceptable
- Doctrine entities — Entities may appear to violate SRP due to persistence concerns mixed with domain logic (framework requirement)
- DTOs/Value Objects — Data classes with many properties don't violate SRP (single responsibility = data transfer)
- Framework controllers — Slim controllers with inject+validate+delegate are acceptable
False Positive Indicators
- Class is a DTO, Value Object, or Request/Response object
- Class is a Doctrine entity with only getters/setters + domain methods
- Apparent SRP violation is actually framework convention
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/analyze-solid-violations/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/analyze-solid-violations)