
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
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 -landrg -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 -yInstalls 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
| Prefer | Avoid |
|---|---|
| Simple conditionals | Complex regex for simple checks |
| Explicit code | Magic numbers/strings |
| Standard patterns | Clever shortcuts |
| Direct solutions | Over-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 3Similar to Code Quality Principles
More Code Review & Quality
clean-code-principlesasyrafhussin/agent-skills1.9K installsReference guide for SOLID, core principles, and design patterns used when reviewing architecture or code quality.
code-qualitymiles990/claude-software-skills786 installsClean code principles, SOLID patterns, and code review checklists with TypeScript examples for maintainable software.
clean-codedecebals/claude-code-java449 installsClean Code principles covering DRY, KISS, and YAGNI, plus naming, function design, and readability fixes.
solid-principlesthebushidocollective/han606 installsGuide to the five SOLID design principles with Elixir and TypeScript code examples for each.
solidramziddin/solid-skills3.7K installsOpinionated guide that turns coding work into senior-level practice through TDD, SOLID principles, and clean-code rules.
clean-code-guardamelnagdy/guard-skills4.9K installsGuards code before it ships using Clean Code, SOLID, DRY, KISS, YAGNI, and LLM failure-mode checks.