solid-principles
Skill4 starsChanged 5 months agoApache-2.0View on GitHub
Applies SOLID for modularity, dependency boundaries and testability without over-engineering. Use when refactoring modules, services, agents, or dependency boundaries.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- decebals/claude-code-javatheir own version, first seen Sep 6, 2026
- TheBeardedBearSAS/claude-crafttheir own version, first seen Jul 22, 2026
- KhaledSaeed18/dotclaudetheir own version, first seen Jul 4, 2026
- JeremyMorgan/code-review-skillstheir own version, first seen Jun 3, 2026
- lucsedirae/agent_skill_librarytheir own version, first seen May 2, 2026
- iCesofT/awesome-aitheir own version, first seen Apr 16, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- decebals/claude-code-java★ 747same name
- TheBeardedBearSAS/claude-craft★ 106same name
- JeremyMorgan/code-review-skills★ 15same name
- KhaledSaeed18/dotclaude★ 5same name
- lucsedirae/agent_skill_library★ 3same name
- kayaman/skills★ 2same name
- iCesofT/awesome-ai★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository114 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibility-wcagSkill
- agentic-ux-patternsSkill
- ai-model-governanceSkill
- api-design-and-lifecycleSkill
- apply-laws-of-aiSkill
- bdd-practiceSkill
- browser-testing-with-devtoolsSkill
- business-capability-modelingSkill
- business-information-concept-modelingSkill
- capability-maturity-assessmentSkill
- cdc-and-source-to-stream-ingestionSkill
- ci-cd-and-automationSkill
- cloud-platform-architectureSkill
- code-review-and-qualitySkill
- cognitive-bias-reviewSkill
- conceptual-data-modelingSkill
- context-engineeringSkill
- data-contract-designSkill
- data-governance-and-qualitySkill
- data-integration-and-interoperabilitySkill
- data-lifecycle-and-retention-managementSkill
- data-lineage-and-provenanceSkill
- data-product-dashboard-designSkill
- data-product-designSkill
- data-security-and-privacy-architectureSkill
- ddd-practiceSkill
- deprecation-and-migrationSkill
- design-system-practiceSkill
- documentation-and-adrsSkill
- dora-four-keysSkill
- dry-principleSkill
- eip-integration-validationSkill
- evaluation-and-monitoringSkill
- event-driven-architectureSkill
- event-governance-and-lineageSkill
- event-modelingSkill
- event-streaming-platform-designSkill
- exception-handling-and-recoverySkill
- finops-practiceSkill
- frontend-state-and-interaction-designSkill
- git-workflow-and-versioningSkill
- goal-setting-and-monitoringSkill
- guardrails-safety-patternsSkill
- human-in-the-loopSkill
- idea-refinementSkill
- incident-response-and-postmortemsSkill
- incremental-implementationSkill
- infrastructure-as-codeSkill
- integration-message-constructionSkill
- inter-agent-communication-a2aSkill
- kiss-principleSkill
- knowledge-graph-ragSkill
- knowledge-retrieval-ragSkill
- krag-evaluation-governanceSkill
- krag-ingestion-graph-constructionSkill
- krag-retrieval-answeringSkill
- krag-system-designSkill
- lakehouse-and-medallion-architectureSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 11 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Use this skill when designing or refactoring classes, modules, services, interfaces, dependency boundaries, plug-ins, tools, agents, MCP …
- Distinctive: line 22
Check Single Responsibility: each unit should have one reason to change.
- Distinctive: line 23
Check Open/Closed: extension should not require risky modification of stable code paths.
- Distinctive: line 24
Check Liskov Substitution: implementations must honour the contract expected by callers.
- Distinctive: line 25
Check Interface Segregation: consumers should depend only on methods, fields or capabilities they actually use.
- Distinctive: line 26
Check Dependency Inversion: high-level policy should depend on abstractions or ports, not concrete infrastructure details.
- Distinctive: line 28
Add or update tests around the changed boundary.
- Distinctive: line 32
Do not create abstract interfaces unless there is a real boundary, more than one implementation, a test seam, or likely volatility.
- Distinctive: line 33
Do not split code so aggressively that behaviour becomes harder to trace.
- Distinctive: line 34
Prefer composition over inheritance unless inheritance clearly models a stable substitutable relationship.
- Distinctive: line 35
Keep contracts explicit with types, schemas, protocols or tests.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SOLID Principles
When to use
Use this skill when designing or refactoring classes, modules, services, interfaces, dependency boundaries, plug-ins, tools, agents, MCP servers or A2A components.
Objective
Improve maintainability and testability by ensuring code has clear responsibilities, stable boundaries, substitutable components, focused interfaces and explicit dependencies.
Procedure
- Identify the unit under change: class, module, service, tool, agent or workflow.
- Check Single Responsibility: each unit should have one reason to change.
- Check Open/Closed: extension should not require risky modification of stable code paths.
- Check Liskov Substitution: implementations must honour the contract expected by callers.
- Check Interface Segregation: consumers should depend only on methods, fields or capabilities they actually use.
- Check Dependency Inversion: high-level policy should depend on abstractions or ports, not concrete infrastructure details.
- Apply the smallest refactor that improves the design.
- Add or update tests around the changed boundary.
Rules
- Do not create abstract interfaces unless there is a real boundary, more than one implementation, a test seam, or likely volatility.
- Do not split code so aggressively that behaviour becomes harder to trace.
- Prefer composition over inheritance unless inheritance clearly models a stable substitutable relationship.
- Keep contracts explicit with types, schemas, protocols or tests.
- Preserve public behaviour unless explicitly asked to change it.
References
Verification
- SOLID issue addressed identified.
- Design boundary change described.
- Tests or checks run reported.
- Residual risks or assumptions stated.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

