·clean-code
</>

clean-code

ratacat/claude-skills

在编写、审查或重构代码时使用。在命名变量或函数、构造类、处理错误、编写测试或代码感觉复杂或难以理解时应用。基于 Robert C. Martin 的《简洁代码》。

15安装·1热度·@ratacat

安装

$npx skills add https://github.com/ratacat/claude-skills --skill clean-code

SKILL.md

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

在编写、审查或重构代码时使用。在命名变量或函数、构造类、处理错误、编写测试或代码感觉复杂或难以理解时应用。基于 Robert C. Martin 的《简洁代码》。 来源:ratacat/claude-skills。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/ratacat/claude-skills --skill clean-code
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 clean-code?

在编写、审查或重构代码时使用。在命名变量或函数、构造类、处理错误、编写测试或代码感觉复杂或难以理解时应用。基于 Robert C. Martin 的《简洁代码》。 来源:ratacat/claude-skills。

如何安装 clean-code?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/ratacat/claude-skills --skill clean-code 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/ratacat/claude-skills