Implements Robert C. Martin's Clean Code principles as an active coding guide. Use it when naming variables, writing functions, refactoring messy code, or reviewing pull requests. It pushes you toward intention-revealing names, single-responsibility functions under 20 lines, and zero tolerance for null returns or commented-out code. The chapter system breaks down names, functions, error handling, tests, and classes with quick reference tables you can actually scan mid-work. Honestly most valuable when you're about to add a comment to explain confusing code, it'll tell you to rename things instead. Includes all 66 code smells from the book's heuristics chapter, which is the kind of reference that saves arguments during code review.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
9
skills.sh installs
359
GitHub stars
58
last updated
Aug 21, 2026

Install

$ npx -y skills add ratacat/claude-skills --skill clean-code --agent claude-code

Installs into .claude/skills of the current project.

Files

Clean Code

Overview

Clean code reads like well-written prose. Every name reveals intent. Every function tells a story. Every class has a single purpose. The goal isn't just working code—it's code that others can understand quickly, modify safely, and extend confidently.

"Clean code always looks like it was written by someone who cares." — Michael Feathers

"You know you are working on clean code when each routine turns out to be pretty much what you expected." — Ward Cunningham

The Boy Scout Rule: Leave the code cleaner than you found it. Every commit should improve quality, even if just slightly. Small improvements compound.

Chapter References

This skill provides an overview with quick references. For detailed guidance with examples, see the chapter files:

Sponsors

Details

Repository
github.com/ratacat/claude-skills
Categories
Documentation, Code Review & Quality
First seen
Jun 3, 2026

More from ratacat/claude-skills

All 3
1leonardomso avatartest-writerleonardomso/33-js-conceptsGenerate comprehensive Vitest tests for code examples in JavaScript concept documentation pages, following project conventions and referencing source lines356skills.sh installs
2sendaifun avatarsolana-kitsendaifun/skillsComplete guide for @solana/kit - the modern, tree-shakeable, zero-dependency JavaScript SDK from Anza. Covers RPC connections, signers, transaction building wit351skills.sh installs
3tfboy1 avataracademic-paper-writer-protfboy1/academic-paper-writer基于规范目录结构的学术论文排版助手。支持 PDF / .doc / .docx / .md 多种输入格式,自动选择 OCR 管道、重排版管道或 MD 直转管道。包含环境清理确认、断点恢复、智能配图裁剪、逐单元增量生成 DOCX、双单元质量核查、中间状态保存和 BibTeX 参考文献管理。所有中间文件放 resource351skills.sh installs
4davila7 avatarchangelog-generatordavila7/claude-code-templatesAutomatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, 349skills.sh installs
5pproenca avataruniwindpproenca/dot-skillsUniwind best practices for React Native styling with Tailwind CSS. This skill should be used when writing, reviewing, or refactoring React Native code using Uni348skills.sh installs
6maartenlouis avatarremotion-adsmaartenlouis/remotion-adsProfessional video ad creation with Remotion — Instagram Reels (9:16), website explainers (16:9), and carousels (4:5). Use when creating video ads, animated soc345skills.sh installs