asyrafhussin avatar

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-code

Installs 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

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)

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
1anthropics avatarfixed-income-portfolioanthropics/financial-servicesReview fixed income portfolios by pricing multiple bonds, retrieving reference data, analyzing cashflows, and running scenario analysis. Use when reviewing bond1.9Kskills.sh installs
2hubspot avatarcrm-data-qualityhubspot/agent-cli-skillsFind incomplete records, normalize field values in bulk, dedupe with `hubspot objects merge`, and audit custom properties. Builds on `bulk-operations` for JSONL1.9Kskills.sh installs
3buildgreatproducts avatardesign-systembuildgreatproducts/builder-osTranslates an image (or a set of image references — screenshots, mockups, Figma URLs, live websites) into two mirrored design-system artifacts: `docs/design.md`1.9Kskills.sh installs
4forcedotcom avatarintegrating-b2b-commerce-open-code-componentsforcedotcom/sf-skillsIntegrate Salesforce B2B Commerce open source components from GitHub into B2B Commerce stores. Use when users mention "integrate open code components", "open so1.9Kskills.sh installs
5brightdata avatarseo-auditbrightdata/skillsWhen the user wants to audit, review, or diagnose SEO issues on their site. Uses live web data via the Bright Data CLI for accurate detection of JS-injected sch1.9Kskills.sh installs
6resciencelab avatarbanner-creatorresciencelab/opc-skillsCreate banners using AI image generation. Discuss format/style, generate variations, iterate with user feedback, crop to target ratio. Use when user wants to cr1.8Kskills.sh installs