什麼是 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