Skip to content

Clean code principles, SOLID patterns, and code review checklists with TypeScript examples for maintainable software.

CCM score
45 of 100
skills.sh installs
786
GitHub stars
26
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers meaningful naming, single-purpose functions, when to write comments, and the five SOLID principles
  • Includes before-and-after TypeScript examples for each principle, such as a payment processor refactored to open/closed
  • Provides a markdown code review checklist covering correctness, design, and readability
  • Designed for developers who want concrete refactoring examples alongside the reasoning behind each rule

Install

$ npx -y skills add miles990/claude-software-skills --skill code-quality -y

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

Files

Code Quality

Overview

Principles and practices for writing maintainable, readable, and reliable code.


Clean Code Principles

Meaningful Names

// ❌ Cryptic names
const d = new Date();
const u = getU();
const arr = data.filter(x => x.s === 'a');

// ✅ Descriptive names
const currentDate = new Date();
const currentUser = getCurrentUser();
const activeUsers = users.filter(user => user.status === 'active');

// ❌ Hungarian notation (outdated)
const strName = 'John';
const arrItems = [];
const bIsActive = true;

// ✅ Let the type system handle types
const name = 'John';
const items: Item[] = [];
const isActive = true;

Functions

// ❌ Does too much
function processUserData(userId: string) {
  const user = db.findUser(userId);
  const orders = db.findOrders(userId);
  const total = orders.reduce((sum, o) => sum + o.amount, 0);
  sendEmail(user.email, `Your total: ${total}`);
  updateAnalytics(userId, total);
  return { user, orders, total };
}

// ✅ Single responsibility
function getUser(userId: string): User {
  return db.findUser(userId);
}

function getUserOrders(userId: string): Order[] {
  return db.findOrders(userId);
}

Details

Repository
github.com/miles990/claude-software-skills
Category
Code Review & Quality
First seen
Jun 3, 2026

More from miles990/claude-software-skills

All 5

Similar to Code Quality

More Code Review & Quality