clean-code

仓库创建 2026年1月30日最近提交 5 个月前SkillHot 收录 23 天前
▸ 精选理由

适合需要快速提升代码质量和一致性的小组或个人审查场景。

这个 Skill 做什么

依据 Clean Code 原则提供代码可读性与可维护性改进建议与重构方向。

把混乱的代码变成容易读懂、好维护的版本,给出命名、函数拆分和重构方向。适合代码审查、要重构或提高可读性时用。特色是基于 DRY、KISS、YAGNI 等 Clean Code 原则,给出具体可执行的改动建议。

▸ 展开 SKILL.md 英文原文

Clean Code principles (DRY, KISS, YAGNI), naming conventions, function design, and refactoring. Use when user says "clean this code", "refactor", "improve readability", or when reviewing code quality.

开发编程代码整洁重构命名规范通用
692
Stars
135
Forks
18
仓库内 Skill
+20
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/decebals/claude-code-java/main/.claude/skills/clean-code/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/decebals/claude-code-java/main/.claude/skills/clean-code/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# 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
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有