clean-code

Installation
Summary

Pragmatic coding standards emphasizing conciseness, single responsibility, and direct solutions.

  • Covers five core principles: Single Responsibility, DRY, KISS, YAGNI, and the Boy Scout rule for incremental code improvement
  • Provides naming conventions for variables, functions, booleans, and constants designed to self-document intent without excessive comments
  • Enforces function discipline: max 20 lines, one level of abstraction, minimal arguments, and no unexpected side effects
  • Includes mandatory pre-edit checks to identify dependent files and post-completion verification to ensure all affected code is updated and tested
SKILL.md

Clean Code - Pragmatic AI Coding Standards

CRITICAL SKILL - Be concise, direct, and solution-focused.


Core Principles

Principle Rule
SRP Single Responsibility - each function/class does ONE thing
DRY Don't Repeat Yourself - extract duplicates, reuse
KISS Keep It Simple - simplest solution that works
YAGNI You Aren't Gonna Need It - don't build unused features
Boy Scout Leave code cleaner than you found it

Naming Rules

Related skills

More from davila7/claude-code-templates

Installs
703
GitHub Stars
27.2K
First Seen
Jan 25, 2026