This skill should be used when the user asks to "check architecture principles", "audit system design", "review code for coupling", "find architecture smells", or "improve system-level design". Also triggers when the user mentions a principle by name (e.g., "check separation of concerns", "is this violating DRY?", "Law of Demeter", "KISS", "YAGNI", "resilience", "evolvability", "loose coupling"). Supports checking all ten principles at once or focusing on a single principle.
npx claudepluginhub florianbuetow/claude-code --plugin beyond-solid-principlesThis skill uses the workspace's default tool permissions.
Analyze source code and system architecture for violations of ten foundational design
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
Analyze source code and system architecture for violations of ten foundational design principles that govern how modules, services, layers, and components are structured and interact. Produce actionable findings with severity ratings, code/architecture locations, and concrete remediation suggestions.
These principles operate at the architecture scale — modules, services, bounded contexts, layers, APIs — complementing the class-level SOLID principles.
Request a full audit or focus on a single principle:
| Command Pattern | Principle | Reference |
|---|---|---|
sw-soc | Separation of Concerns | references/soc.md |
sw-srp-sys | Single Responsibility (system-level) | references/srp-sys.md |
sw-dry | Don't Repeat Yourself (DRY) | references/dry.md |
sw-demeter | Law of Demeter / Principle of Least Knowledge | references/demeter.md |
sw-coupling | Loose Coupling, High Cohesion | references/coupling.md |
sw-evolvability | Build for Change (Evolvability) | references/evolvability.md |
sw-resilience | Design for Failure / Resilience | references/resilience.md |
sw-kiss | KISS — Keep It Simple | references/kiss.md |
sw-pola | Principle of Least Surprise (POLA) | references/pola.md |
sw-yagni | YAGNI at Architecture Level | references/yagni.md |
beyond-solid-principles | All ten principles | All references |
When no subcommand is specified, default to checking all ten principles. When a principle is mentioned by name (even without the command prefix), match it to the appropriate subcommand.
Determine what code or architecture to analyze:
These principles apply to any language and any architecture style — monoliths, modular monoliths, microservices, serverless, event-driven, layered, hexagonal, etc. Adapt the principle checks to the idioms and scale of the target system.
For smaller codebases, focus on module/package boundaries, dependency direction, and internal layering. For distributed systems, also consider service boundaries, API contracts, data ownership, messaging patterns, and operational resilience.
Before analyzing, read the reference file(s) for the requested principle(s):
references/soc.md for Separation of Concernsreferences/srp-sys.md for Single Responsibility (system-level)references/dry.md for DRYreferences/demeter.md for Law of Demeterreferences/coupling.md for Loose Coupling, High Cohesionreferences/evolvability.md for Build for Changereferences/resilience.md for Design for Failurereferences/kiss.md for KISSreferences/pola.md for Principle of Least Surprisereferences/yagni.md for YAGNIFor a full audit (beyond-solid-principles), read all ten.
For each target file, module, or service boundary, apply the violation patterns from the loaded references. Think carefully about each pattern — not every heuristic match is a true violation. Consider context, system scale, team size, and maturity.
Key analysis dimensions:
Present findings using this structure:
**[PRINCIPLE] Violation — Severity: HIGH | MEDIUM | LOW**
Location: `filename` or `service/module`, lines ~XX-YY (if applicable)
Issue: Clear description of what violates the principle and why it matters.
Suggestion: Concrete remediation approach with brief code or architecture sketch if helpful.
Severity guidelines:
After all findings, provide:
| Principle | HIGH | MEDIUM | LOW |When a fix or refactoring is requested (e.g., "fix this", "refactor it", "show me the clean version"), produce refactored code or an architecture proposal that resolves the identified violations. Explain each change briefly.
These are guidelines, not laws. Apply judgment:
User: sw-coupling (with a codebase directory)
Claude:
references/coupling.md