New advertisers: 50% off your first month with code FIRSTMONTHSee slots
asyrafhussin avatar

Clean Code Principles

Reference guide for SOLID, core principles, and design patterns used when reviewing architecture or code quality.

skills.sh installs
1.9K
GitHub stars
105
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers SOLID principles, core principles (DRY, KISS, YAGNI, and encapsulation), and design patterns with rule IDs such as solid-srp and pattern-repository
  • Includes a priority table with an audit output format of file:line - [principle] Description for flagging findings
  • Notes that code organization, naming, function, and documentation categories are planned and not yet implemented
  • Designed for architecture reviews, code quality checks, and refactoring discussions

Install

$ npx -y skills add asyrafhussin/agent-skills --skill clean-code-principles -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

PriorityCategoryImpactPrefix
1SOLID PrinciplesCRITICALsolid-
2Core PrinciplesCRITICALcore-
3Design PatternsHIGHpattern-
4Code OrganizationHIGHorg-
5Naming & ReadabilityMEDIUMname-
6Functions & MethodsMEDIUMfunc-
7Comments & DocumentationLOWdoc-

Quick Reference

1. SOLID Principles (CRITICAL)

  • solid-srp - Single Responsibility Principle
  • solid-ocp - Open/Closed Principle
  • solid-lsp - Liskov Substitution Principle
  • solid-isp - Interface Segregation Principle
  • solid-dip - Dependency Inversion Principle

2. Core Principles (CRITICAL)

Details

Repository
github.com/asyrafhussin/agent-skills
Categories
Code Review & Quality, Technical Documentation
First seen
May 16, 2026

More from asyrafhussin/agent-skills

All 14

Similar to Clean Code Principles

More Code Review & Quality