什麼是 python-clean-code?
在編寫、修復、編輯、審查或重構任何 Python 程式碼時使用。強制實施 Robert Martin 的完整清潔程式碼目錄 — 命名、函數、註解、DRY 和邊界條件。 來源:ertugrul-dmr/clean-code-skills。
在編寫、修復、編輯、審查或重構任何 Python 程式碼時使用。強制實施 Robert Martin 的完整清潔程式碼目錄 — 命名、函數、註解、DRY 和邊界條件。
透過命令列快速安裝 python-clean-code AI 技能到你的開發環境
來源:ertugrul-dmr/clean-code-skills。
Enforces all Clean Code principles from Robert C. Martin's Chapter 17, adapted for Python.
Python-Specific (P1-P3) These adapt the Java-specific rules (J1-J3) to Python conventions:
| Comments | C1 | No metadata (use Git) | | | C3 | No redundant comments | | | C5 | No commented-out code | | Functions | F1 | Max 3 arguments | | | F3 | No flag arguments | | | F4 | Delete dead functions | | General | G5 | DRY—no duplication | | | G9 | Delete dead code | | | G16 | No obscured intent | | | G23 | Polymorphism over if/else |
在編寫、修復、編輯、審查或重構任何 Python 程式碼時使用。強制實施 Robert Martin 的完整清潔程式碼目錄 — 命名、函數、註解、DRY 和邊界條件。 來源:ertugrul-dmr/clean-code-skills。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/ertugrul-dmr/clean-code-skills --skill python-clean-code在編寫、修復、編輯、審查或重構任何 Python 程式碼時使用。強制實施 Robert Martin 的完整清潔程式碼目錄 — 命名、函數、註解、DRY 和邊界條件。 來源:ertugrul-dmr/clean-code-skills。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/ertugrul-dmr/clean-code-skills --skill python-clean-code 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/ertugrul-dmr/clean-code-skills