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

Code Quality Principles

Reference guide for applying KISS, YAGNI, and SOLID to refactoring and code review with language-specific examples.

skills.sh installs
182
GitHub stars
350
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers KISS, YAGNI, and the five SOLID principles, each with a guideline table and Python, TypeScript, or Rust examples
  • Includes a quick-reference table of red flags and a code review checklist with line-count and class-count checks via wc -l and rg -c
  • Sets priority rules for conflicts, such as KISS winning over SOLID in small projects and avoiding abstractions until two implementations exist
  • Designed for refactoring and review passes where over-engineering is the concern, and not for throwaway scripts or performance-critical code

Install

$ npx -y skills add athola/claude-night-market --skill code-quality-principles -y

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

Files

Code Quality Principles

Guidance on KISS, YAGNI, and SOLID principles with language-specific examples.

When To Use

  • Improving code readability and maintainability
  • Applying SOLID, KISS, YAGNI principles during refactoring

When NOT To Use

  • Throwaway scripts or one-time data migrations
  • Performance-critical code where readability trades are justified

KISS (Keep It Simple, Stupid)

Principle: Avoid unnecessary complexity. Prefer obvious solutions over clever ones.

Guidelines

PreferAvoid
Simple conditionalsComplex regex for simple checks
Explicit codeMagic numbers/strings
Standard patternsClever shortcuts
Direct solutionsOver-abstracted layers

Python Example

# Bad: Overly clever one-liner
users = [u for u in (db.get(id) for id in ids) if u and u.active and not u.banned]

# Good: Clear and readable
users = []
for user_id in ids:
    user = db.get(user_id)
    if user and user.active and not user.banned:
        users.append(user)

Rust Example

Details

Repository
github.com/athola/claude-night-market
Category
Code Review & Quality
First seen
Jun 3, 2026

More from athola/claude-night-market

All 3

Similar to Code Quality Principles

More Code Review & Quality