๐Ÿงน
QualityShell

Clean Code

by decebals

Clean Code is a Quality skill for Claude Code, published by decebals in claude-code-java.

714 stars142 forkson decebals/claude-code-javaAdded 2026/08/23+1% in starsRepository updated 2026/02/08
ai-assisted-developmentclaude-codeclaude-code-skillsdeveloper-toolsjava
Install in seconds
Install Clean Code
Copy Clean Code into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/decebals/claude-code-java/tree/main/.claude/skills/clean-code ~/.claude/skills/clean-code

Requires Node.js. Downloads this skill only โ€” not the rest of the repository โ€” into your Claude Code skills folder.

Without Node.js

git clone https://github.com/decebals/claude-code-java.git

Clones the whole repository, then copy the skillโ€™s own directory into your skills folder yourself.

In this catalog

Source file
.claude/skills/clean-code/SKILL.md in decebals/claude-code-java
Installs to
~/.claude/skills/clean-code
Collection
One of 18 skills cataloged from this repository
Category
Quality โ€” 1897 skills

What Clean Code does

Clean Code helps refactor code for readability and maintainability using DRY, KISS, YAGNI, and clear naming. Use it when cleaning up code, simplifying functions, or reviewing code quality.

Clean Code is cataloged under Quality on DirSkills. Clean Code comes from a repository tagged ai-assisted-development, claude-code, claude-code-skills, developer-tools and java.

Documentation

README

Clean Code Skill

Write readable, maintainable code following Clean Code principles.

When to Use

  • User says "clean this code" / "refactor" / "improve readability"
  • Code review focusing on maintainability
  • Reducing complexity
  • Improving naming

Core Principles

Principle Meaning Violation Sign
DRY Don't Repeat Yourself Copy-pasted code blocks
KISS Keep It Simple, Stupid Over-engineered solutions
YAGNI You Aren't Gonna Need It Features "just in case"

DRY - Don't Repeat Yourself

"Every piece of knowledge must have a single, unambiguous representation in the system."

Violation

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Clean Code

  • What else does decebals publish alongside Clean Code?

    Clean Code is one of 18 skills that DirSkills catalogs from decebals/claude-code-java, the repository it ships in. Its siblings there include API Contract Review, Architecture Review and Changelog Generator. Each one is a separate skill with its own page in this directory, installs the same way Clean Code does, and is maintained by decebals in that same repository. The rest of the collection is listed on the decebals/claude-code-java page.

  • How does Clean Code compare to other Quality skills?

    Clean Code ranks #1035 by stars among the 1897 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Clean Code against them. Open each page to compare what they document and how they install.

More from decebals/claude-code-java

Clean Code is one of 18 skills cataloged on DirSkills from decebals/claude-code-java.

See all 18 skills โ†’
๐Ÿ”
2026/08/23

API Contract Review

API Contract Review audits REST endpoints for HTTP semantics, versioning, backward compatibility, and response consistency. Use it when reviewing API changes or checking controller PRs before release.
Quality
714142
๐Ÿ—๏ธ
2026/08/23

Architecture Review

Architecture Review analyzes Java project structure at the macro level, including packages, modules, layers, and dependency direction. Use it to check organization, boundary violations, and clean or hexagonal architecture compliance.
Quality
714142
๐Ÿ“
2026/08/23

Changelog Generator

Changelog Generator creates changelog entries from conventional git commits for Java projects. Use it when preparing a release, updating release notes, or summarizing what changed since the last version.
Writing
714142
๐Ÿงต
2026/08/23

Concurrency Review

Concurrency Review checks Java code for thread safety, race conditions, deadlocks, and async pitfalls. Use it when reviewing multi-threaded code, CompletableFuture, @Async, or modern concurrency patterns.
Quality
714142
๐Ÿงฉ
2026/08/23

Design Patterns

Design Patterns gives Java examples for common patterns like Factory, Builder, Strategy, and Observer. Use it when implementing a pattern, designing extensible components, or refactoring rigid code.
Writing
714142
๐Ÿ“
2026/08/23

Git Commit Messages

Git Commit Messages generates conventional commit messages for Java changes. Use it after code edits or when you need a commit message for staged changes.
Writing
714142