
Clean Code Principles
A language-agnostic reference for core software design principles that you can drop into code reviews, architecture discussions, or refactoring sessions. Covers SOLID, DRY, KISS, YAGNI, and common design patterns like repository, factory, and strategy. The skill is organized by priority (SOLID and core principles first, naming conventions later) and outputs findings in a clean file:line format. About half the categories are implemented with detailed rule files, the rest are planned. This is basically a structured cheat sheet of Robert Martin and Gang of Four principles that Claude can reference when you're discussing code quality. Worth having around if you find yourself explaining the same design concepts repeatedly or want consistent vocabulary for architecture decisions.
- skills.sh installs
- 1.9K
- GitHub stars
- 102
- last updated
- Aug 21, 2026
Install
$ npx -y skills add asyrafhussin/agent-skills --skill clean-code-principles --agent claude-codeInstalls into .claude/skills of the current project.
Files
Clean Code Principles
Fundamental software design principles, SOLID, design patterns, and clean code practices. Language-agnostic guidelines for writing maintainable, scalable software.
When to Apply
Reference these guidelines when:
- Designing new features or systems
- Reviewing code architecture
- Refactoring existing code
- Discussing design decisions
- Improving code quality
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | SOLID Principles | CRITICAL | solid- |
| 2 | Core Principles | CRITICAL | core- |
| 3 | Design Patterns | HIGH | pattern- |
| 4 | Code Organization | HIGH | org- |
| 5 | Naming & Readability | MEDIUM | name- |
| 6 | Functions & Methods | MEDIUM | func- |
| 7 | Comments & Documentation | LOW | doc- |
Quick Reference
1. SOLID Principles (CRITICAL)
solid-srp- Single Responsibility Principlesolid-ocp- Open/Closed Principlesolid-lsp- Liskov Substitution Principlesolid-isp- Interface Segregation Principlesolid-dip- Dependency Inversion Principle
2. Core Principles (CRITICAL)
Sponsors
Details
- Repository
- github.com/asyrafhussin/agent-skills
- Categories
- Git & Pull Requests, Code Review & Quality, AI & Agent Building, Design & UI/UX
- First seen
- May 16, 2026
More from asyrafhussin/agent-skills
All 14- Typescript React Patterns1.1K
- Laravel Database Optimization1.1K
- Laravel Owasp Security1.1K
- Tailwind Best Practices1K
- Api Design Patterns984
- Testing Best Practices957
- Web Design Guidelines948
- Git Workflow890
- State Management834
- Php Best Practices3.8K
- React Vite Best Practices3K
- Laravel Best Practices2.4K
- Laravel Inertia React2K