·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