什麼是 clean-code?
乾淨程式碼原則(DRY、KISS、YAGNI)、命名約定、功能設計與重構。當使用者說「清理此程式碼」、「重構」、「提高可讀性」或檢查程式碼品質時使用。 來源:decebals/claude-code-java。
乾淨程式碼原則(DRY、KISS、YAGNI)、命名約定、功能設計與重構。當使用者說「清理此程式碼」、「重構」、「提高可讀性」或檢查程式碼品質時使用。
透過命令列快速安裝 clean-code AI 技能到你的開發環境
來源:decebals/claude-code-java。
| DRY | Don't Repeat Yourself | Copy-pasted code blocks | | KISS | Keep It Simple, Stupid | Over-engineered solutions | | YAGNI | You Aren't Gonna Need It | Features "just in case" |
"Every piece of knowledge must have a single, unambiguous representation in the system."
| Class | PascalCase, noun | OrderService | | Interface | PascalCase, adjective or noun | Comparable, List | | Method | camelCase, verb | calculateTotal() | | Variable | camelCase, noun | customerEmail | | Constant | UPPERSNAKE | MAXRETRYCOUNT | | Package | lowercase | com.example.orders |
乾淨程式碼原則(DRY、KISS、YAGNI)、命名約定、功能設計與重構。當使用者說「清理此程式碼」、「重構」、「提高可讀性」或檢查程式碼品質時使用。 來源:decebals/claude-code-java。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/decebals/claude-code-java --skill clean-code乾淨程式碼原則(DRY、KISS、YAGNI)、命名約定、功能設計與重構。當使用者說「清理此程式碼」、「重構」、「提高可讀性」或檢查程式碼品質時使用。 來源:decebals/claude-code-java。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/decebals/claude-code-java --skill clean-code 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/decebals/claude-code-java