clean-code

Installation
Summary

Code review and refactoring guidance based on Robert C. Martin's Clean Code principles.

  • Covers nine core areas: meaningful naming conventions, function design (size, single responsibility, argument limits), comment best practices, formatting standards, object and data structure patterns, error handling strategies, unit testing discipline, class design, and code smell identification
  • Provides actionable guidance for writing new code, reviewing pull requests, refactoring legacy code, and establishing team standards
  • Includes specific anti-patterns to avoid (disinformation in names, side effects, null returns, chained method calls) and positive patterns to adopt (intention-revealing names, exception-based error handling, TDD principles)
  • Offers a practical implementation checklist for validating code quality across function size, naming clarity, test coverage, and argument complexity
SKILL.md

Clean Code Skill

This skill embodies the principles of "Clean Code" by Robert C. Martin (Uncle Bob). Use it to transform "code that works" into "code that is clean."

🧠 Core Philosophy

"Code is clean if it can be read, and enhanced by a developer other than its original author." — Grady Booch

When to Use

Use this skill when:

  • Writing new code: To ensure high quality from the start.
  • Reviewing Pull Requests: To provide constructive, principle-based feedback.
  • Refactoring legacy code: To identify and remove code smells.
  • Improving team standards: To align on industry-standard best practices.

1. Meaningful Names

  • Use Intention-Revealing Names: elapsedTimeInDays instead of d.
  • Avoid Disinformation: Don't use accountList if it's actually a Map.
  • Make Meaningful Distinctions: Avoid ProductData vs ProductInfo.
  • Use Pronounceable/Searchable Names: Avoid genymdhms.
Related skills
Installs
6.5K
GitHub Stars
37.3K
First Seen
Jan 20, 2026