什麼是 clean-codebase?
刪除死程式碼、未使用的匯入、修復 lint 警告並規範整個程式碼庫的格式,而無需更改業務邏輯或架構。當快速開發過程中 lint 警告堆積、未使用的匯入和變數使文件混亂、死程式碼路徑從未被刪除、格式不一致或靜態分析工具報告可修復的衛生問題時使用。 來源:pjt222/development-guides。
刪除死程式碼、未使用的匯入、修復 lint 警告並規範整個程式碼庫的格式,而無需更改業務邏輯或架構。當快速開發過程中 lint 警告堆積、未使用的匯入和變數使文件混亂、死程式碼路徑從未被刪除、格式不一致或靜態分析工具報告可修復的衛生問題時使用。
透過命令列快速安裝 clean-codebase AI 技能到你的開發環境
來源:pjt222/development-guides。
Use this skill when a codebase has accumulated hygiene debt:
Do NOT use for architectural refactoring, bug fixes, or business logic changes. This skill focuses purely on hygiene and automated cleanup.
| codebasepath | string | Yes | Absolute path to codebase root | | language | string | Yes | Primary language (js, python, r, rust, etc.) | | cleanupmode | enum | No | safe (default) or aggressive | | runtests | boolean | No | Run test suite after cleanup (default: true) | | backup | boolean | No | Create backup before deletion (default: true) |
刪除死程式碼、未使用的匯入、修復 lint 警告並規範整個程式碼庫的格式,而無需更改業務邏輯或架構。當快速開發過程中 lint 警告堆積、未使用的匯入和變數使文件混亂、死程式碼路徑從未被刪除、格式不一致或靜態分析工具報告可修復的衛生問題時使用。 來源:pjt222/development-guides。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/pjt222/development-guides --skill clean-codebase刪除死程式碼、未使用的匯入、修復 lint 警告並規範整個程式碼庫的格式,而無需更改業務邏輯或架構。當快速開發過程中 lint 警告堆積、未使用的匯入和變數使文件混亂、死程式碼路徑從未被刪除、格式不一致或靜態分析工具報告可修復的衛生問題時使用。 來源:pjt222/development-guides。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/pjt222/development-guides --skill clean-codebase 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/pjt222/development-guides