·clean-code
</>

clean-code

遵循 Robert C. 的原则编写干净、可读且可维护的代码。 马丁的“干净代码”和对象健美操。在写作、审阅或 重构代码以改进命名、功能设计、格式、错误处理, 和阶级结构。包括代码气味检测和重构指南。

19安装·1热度·@fellipeutaka

安装

$npx skills add https://github.com/fellipeutaka/leon --skill clean-code

如何安装 clean-code

通过命令行快速安装 clean-code AI 技能到你的开发环境

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

来源:fellipeutaka/leon。

SKILL.md

查看原文

Principles for transforming "code that works" into "code that is clean" — code that can be read, understood, and enhanced by any developer.

"Code is clean if it can be understood easily — by everyone on the team." — Dave Thomas

| 1 | Naming | HIGH — affects every line of code | | 2 | Functions | HIGH — core unit of abstraction | | 3 | Code Smells | HIGH — early detection prevents rot | | 4 | Formatting | MEDIUM — readability at a glance | | 5 | Error Handling | MEDIUM — robustness and clarity | | 6 | Comments | MEDIUM — most are avoidable |

遵循 Robert C. 的原则编写干净、可读且可维护的代码。 马丁的“干净代码”和对象健美操。在写作、审阅或 重构代码以改进命名、功能设计、格式、错误处理, 和阶级结构。包括代码气味检测和重构指南。 来源:fellipeutaka/leon。

可引用信息

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

安装命令
npx skills add https://github.com/fellipeutaka/leon --skill clean-code
分类
</>开发工具
认证
收录时间
2026-02-21
更新时间
2026-03-10

Browse more skills from fellipeutaka/leon

快速解答

什么是 clean-code?

遵循 Robert C. 的原则编写干净、可读且可维护的代码。 马丁的“干净代码”和对象健美操。在写作、审阅或 重构代码以改进命名、功能设计、格式、错误处理, 和阶级结构。包括代码气味检测和重构指南。 来源:fellipeutaka/leon。

如何安装 clean-code?

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

这个 Skill 的源码在哪?

https://github.com/fellipeutaka/leon