技能 maintenance
📦

maintenance

中風險 ⚙️ 外部命令📁 檔案系統存取

整理專案維護檔案

專案規劃檔案和工作階段記錄可能會不斷增長,直到難以審閱。此技能會檢查常見的維護檔案,並建議清理、封存或拆分動作。

支援: Claude Codex Code(CC)
📊 71 尚可
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

Agent 可讀資源

當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。

測試它

正在使用「maintenance」。 檢查 Plans.md 是否需要清理。

預期結果:

  • Plans.md 超過已設定的行數限制。
  • 八個已完成任務看起來已足夠舊,可以封存。
  • 建議動作:在編輯前預覽封存移動。

正在使用「maintenance」。 審查我的工作階段記錄以進行維護。

預期結果:

  • 工作階段記錄高於大小閾值。
  • 較舊的項目可以拆分到每月封存檔案中。
  • 因為需要核准,所以未進行任何變更。

正在使用「maintenance」。 清理專案指引檔案。

預期結果:

CLAUDE.md 很大。將較長的參考章節移到 docs 中,並在主檔案中僅保留始終需要的指示。

安全審計

中風險
v6 • 6/28/2026

Static analysis reported many command-execution, filesystem, weak-crypto, and entropy findings. Review found no malicious payload, network access, credential handling, or prompt-injection text, but the skill intentionally allows Bash and file editing for project cleanup, so it should publish with a medium-risk warning.

2
已掃描檔案
341
分析行數
6
發現
6
審計總數
中風險問題 (2)
Bash-Enabled File Maintenance Workflow
The skill declares Bash as an allowed tool and instructs the agent to read auto-cleanup guidance before acting. The referenced guidance includes shell commands that inspect project files and create archive directories. This is legitimate for cleanup work, but it can alter local project state if used without review.
Project File Modification and Archiving
The skill is designed to move old tasks, split session logs, create archive directories, and make backups. These actions are expected for maintenance, but accidental data movement or deletion could occur if the agent applies the guidance too broadly.
低風險問題 (2)
Static Weak-Crypto and Entropy Alerts Are False Positives
The high weak-cryptographic-algorithm and entropy alerts point to front matter and Japanese prose, including references to Markdown files. No evidence found of cryptographic code, encoded payloads, binary blobs, or malware-like obfuscation.
Device File Access Alert Is Benign stderr Redirection
The filesystem alert on /dev/null appears in a date parsing fallback that redirects errors. It does not read sensitive device files or persist data.

偵測到的模式

External Shell Command ExamplesFilesystem Cleanup Instructions
審計單位: codex 檢視審計紀錄 →

品質評分

55
架構
100
可維護性
85
內容
70
社群
51
安全
83
規範符合度

你可以打造什麼

封存已完成的規劃任務

將較舊的已完成 Plans.md 項目移入封存,同時讓進行中的工作保持可見。

控制工作階段記錄增長

審查 session-log.md 大小,並將較舊的項目拆分到每月封存檔案中。

保持專案指引精簡

偵測 CLAUDE.md 是否過大,並建議將詳細筆記移到獨立文件中。

試試這些提示

檢查清理狀態
審查我的專案維護檔案,並告訴我是否需要清理。暫時不要修改檔案。
預覽封存候選項目
找出看起來已準備好封存的已完成 Plans.md 任務。顯示建議的移動項目並等待核准。
整理工作階段記錄
檢查 .claude/memory/session-log.md,並針對舊項目提出每月封存計畫。
執行受控清理
在顯示試跑結果、建立備份並保留所有進行中任務後,執行專案清理。

最佳實務

  • 在允許檔案編輯或封存移動之前,先執行試跑審查。
  • 清理前保留規劃和工作階段檔案的備份。
  • 確認進行中的任務已排除在封存動作之外。

避免

  • 不要跨不相關的目錄或儲存庫執行清理。
  • 不要只因為檔案很長就封存任務。
  • 不要將產生的建議視為人工核准的替代品。

常見問題

此技能會刪除檔案嗎?
文件化的工作流程著重於移動和封存專案內容。允許編輯前請審查建議的變更。
它會檢查哪些檔案?
它針對 Plans.md、.claude/memory/session-log.md、CLAUDE.md,以及選用的清理設定檔。
可以自訂閾值嗎?
可以。文件說明了 .claude-code-harness.config.yaml 中的清理設定。
它對進行中的任務安全嗎?
它表示不應移動進行中的任務,但使用者仍應審查封存候選項目。
它會使用網路嗎?
在已稽核檔案中未發現網路請求或外部服務呼叫的證據。
為什麼安全風險是中等?
此技能使用 Bash 和檔案維護動作。這很有用,但它可能會變更本機專案檔案。

開發者詳細資訊

檔案結構

📁 auto-cleanup/

📄 doc.md

📄 SKILL.md