什么是 clean-code?
遵循 Robert C. 的原则编写干净、可读且可维护的代码。 马丁的“干净代码”和对象健美操。在写作、审阅或 重构代码以改进命名、功能设计、格式、错误处理, 和阶级结构。包括代码气味检测和重构指南。 来源:fellipeutaka/leon。
遵循 Robert C. 的原则编写干净、可读且可维护的代码。 马丁的“干净代码”和对象健美操。在写作、审阅或 重构代码以改进命名、功能设计、格式、错误处理, 和阶级结构。包括代码气味检测和重构指南。
通过命令行快速安装 clean-code AI 技能到你的开发环境
来源:fellipeutaka/leon。
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遵循 Robert C. 的原则编写干净、可读且可维护的代码。 马丁的“干净代码”和对象健美操。在写作、审阅或 重构代码以改进命名、功能设计、格式、错误处理, 和阶级结构。包括代码气味检测和重构指南。 来源:fellipeutaka/leon。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/fellipeutaka/leon --skill clean-code 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/fellipeutaka/leon