
The clean-code skill applies Robert C. Martin's "Clean Code" principles to help developers transform functional code into maintainable, readable code through guidance on naming conventions, function design, commenting practices, formatting standards, and object-oriented principles. It serves developers writing new code, reviewing pull requests, and refactoring legacy systems who need to identify code smells and align their work with industry best practices. The skill solves the problem of code that works but is difficult to read, understand, and maintain by providing actionable principles based on established software engineering standards.
$ npx -y skills add sickn33/antigravity-awesome-skills --skill clean-code --agent claude-codeInstalls into .claude/skills of the current project.
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."
"Code is clean if it can be read, and enhanced by a developer other than its original author." — Grady Booch
Use this skill when:
These are design heuristics, not universal language rules or authority to change behavior. Follow the actual repository conventions; exceptions versus result types, nullability, argument counts and test cadence depend on the language and task. Preserve necessary rationale, security and license comments. Refactor only within scope and verify the relevant behavior.
elapsedTimeInDays instead of d.accountList if it's actually a Map.ProductData vs ProductInfo.genymdhms.Customer, WikiPage). Avoid Manager, Data.postPayment, deletePage).isPasswordValid is better than check.# Check if employee is eligible for full benefits
if employee.flags & HOURLY and employee.age > 65:
vs
if employee.isEligibleForFullBenefits():
a.getB().getC().doSomething().NullPointerException.User request:
Refactor this working code for clearer names, smaller units, explicit errors, and preserved behavior; verify it with focused tests.
Sponsors