·clean-codebase
{}

clean-codebase

刪除死程式碼、未使用的匯入、修復 lint 警告並規範整個程式碼庫的格式,而無需更改業務邏輯或架構。當快速開發過程中 lint 警告堆積、未使用的匯入和變數使文件混亂、死程式碼路徑從未被刪除、格式不一致或靜態分析工具報告可修復的衛生問題時使用。

10安裝·1熱度·@pjt222

安裝

$npx skills add https://github.com/pjt222/development-guides --skill clean-codebase

如何安裝 clean-codebase

透過命令列快速安裝 clean-codebase AI 技能到你的開發環境

  1. 開啟終端機: 開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 執行安裝指令: 複製並執行以下指令:npx skills add https://github.com/pjt222/development-guides --skill clean-codebase
  3. 驗證安裝: 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

來源:pjt222/development-guides。

SKILL.md

查看原文

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
分類
{}資料分析
認證
收錄時間
2026-03-10
更新時間
2026-03-10

Browse more skills from pjt222/development-guides

快速解答

什麼是 clean-codebase?

刪除死程式碼、未使用的匯入、修復 lint 警告並規範整個程式碼庫的格式,而無需更改業務邏輯或架構。當快速開發過程中 lint 警告堆積、未使用的匯入和變數使文件混亂、死程式碼路徑從未被刪除、格式不一致或靜態分析工具報告可修復的衛生問題時使用。 來源:pjt222/development-guides。

如何安裝 clean-codebase?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/pjt222/development-guides --skill clean-codebase 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

這個 Skill 的原始碼在哪?

https://github.com/pjt222/development-guides