athola avatar

Code Quality Principles

This is an always-on skill that enforces KISS, YAGNI, and SOLID principles during code reviews and refactoring. It gives you language-specific examples in Python, Rust, and TypeScript showing simple vs over-engineered approaches, and includes a quick reference table with red flags for each principle. The real value is in the "When Principles Conflict" section, which acknowledges that KISS sometimes beats SOLID on small projects and that YAGNI means you shouldn't add abstractions until you have multiple implementations. It's set to low complexity with a fast model hint, so it won't slow you down, and it integrates with the broader quality gates system if you're using that workflow.

skills.sh installs
178
GitHub stars
350
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

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
1metabase avatarclojure-reviewmetabase/metabaseReview Clojure and ClojureScript code changes for compliance with Metabase coding standards, style violations, and code quality issues. Use when reviewing pull 0skills.sh installs
2metabase avatartypescript-reviewmetabase/metabaseReview TypeScript and JavaScript code changes for compliance with Metabase coding standards, style violations, and code quality issues. Use when reviewing pull 0skills.sh installs
3telagod avatarchecking-code-qualitytelagod/code-abyssChecks code quality metrics including complexity, duplication, naming conventions, and function length. Use when running quality gates, reviewing code smells, o0skills.sh installs
4laurigates avatarpython-code-qualitylaurigates/claude-pluginsPython code quality with ruff and ty. Use when the user mentions ruff, ty, linting, formatting, type checking, or Python code style.1Kskills.sh installs
5miles990 avatarcode-qualitymiles990/claude-software-skillsClean code principles, SOLID, and code review practices785skills.sh installs
6dietrichgebert avatarponytail-reviewdietrichgebert/ponytailCode review focused exclusively on over-engineering. Finds what to delete: reinvented standard library, unneeded dependencies, speculative abstractions, dead fl67.7Kskills.sh installs