
Clean Code
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-codeInstalls 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