mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-10 19:33:37 +08:00
feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)
ECC community plugin pruning: removed 530+ non-essential files (.cursor/, .opencode/, docs/ja-JP, docs/zh-CN, docs/zh-TW, language-specific skills/agents/rules). Retained 4 agents, 3 commands, 5 skills. Promoted 13 rule files (8 common + 5 typescript) to .claude/rules/ for CC native loading. Extracted reusable patterns to EXTRACTED-PATTERNS.md.
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
# 重構清理
|
||||
|
||||
透過測試驗證安全地識別和移除無用程式碼:
|
||||
|
||||
1. 執行無用程式碼分析工具:
|
||||
- knip:找出未使用的 exports 和檔案
|
||||
- depcheck:找出未使用的相依性
|
||||
- ts-prune:找出未使用的 TypeScript exports
|
||||
|
||||
2. 在 .reports/dead-code-analysis.md 產生完整報告
|
||||
|
||||
3. 依嚴重性分類發現:
|
||||
- 安全:測試檔案、未使用的工具
|
||||
- 注意:API 路由、元件
|
||||
- 危險:設定檔、主要進入點
|
||||
|
||||
4. 只提議安全的刪除
|
||||
|
||||
5. 每次刪除前:
|
||||
- 執行完整測試套件
|
||||
- 驗證測試通過
|
||||
- 套用變更
|
||||
- 重新執行測試
|
||||
- 如果測試失敗則回滾
|
||||
|
||||
6. 顯示已清理項目的摘要
|
||||
|
||||
在執行測試前絕不刪除程式碼!
|
||||
Reference in New Issue
Block a user