cc-agent-audit
Claude Code 專案配置審計。觸發:review/優化 CLAUDE.md、skills、settings、定期清洗累積內容、新專案上線前檢查。
npx skills add majiayu000/claude-skill-registry --skill cc-agent-audit --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Claude Code 專案配置審計 系統化 review 一個 Claude Code 專案或 agent 的配置品質,確保 prompt 精簡、結構清晰、資訊零損失。 ## 核心原則:搬移而非刪除 優化配置時,一律採用「搬移」而非「刪除」: | 操作 | 錯誤做法 | 正確做法 | |------|---------|---------| | 畢業一條 Lesson | 從 CLAUDE.md 刪除 | 搬到共用 rules 或 skill references/ | | 精簡 description | 移除細節文字 | 先把細節移入 SKILL.md 正文,再縮短 description | | 刪除一條使用者期待 | 直接刪除 | 搬到對應的 skill | | 合併重複原則 | 刪較弱的那個 | 保留主版本,標記次版本為 @import 或 reference | **審計保證**:優化後,所有資訊仍存在於系統的某處,品質不降級。 --- ## 三層分離原則 解決「description 要豐富觸發 vs. token 要最小」的矛盾: ``` Layer 1: description(每輪注入 system-reminder)= 觸發條件 ONLY,≤2 句 Layer 2: SKILL.md 正文(按需載入)= 能力範圍、工作流程、品質標準 Layer 3: references/(深度載入)= 知識庫、案例、歷史教訓 ``` 每層的職責不互相跨越。詳見 `references/three-layer-principle.md`。 --- ## 前置載入(按需) | Skill | 何時需要 | |-------|---------| | `cc-prompt-craft` | 審查 CLAUDE.md 文本品質、cache 結構 | | `cc-agent-design` | 審查工具配置、模型選擇、dispatch prompt | | `cc-cost-engineering` | 審查 token 消耗、cache 效率、model 成本矩陣 | | `cc-harness-patterns` | 審查 deferred loading、cache 穩定性 | | `agentskill-expertise` | 審查 skill 設計哲學、Metadata-driven Triggering | --- ## 5 項檢查 依序執行,每項產出 `PASS / ISSUE(N)` 結論。 --- ### Check 1:CLAUDE.md 文本品質 讀取 `CLAUDE.md`,逐項檢查: | 檢查項 | PASS 條件 | 常見問題 | |--------|----------|---------| | 角色定義 | 寫人格不寫機
- 核心原則:搬移而非刪除
- 三層分離原則
- 前置載入(按需)
- 5 項檢查
- Check 1:CLAUDE.md 文本品質
- Check 2:Skill Description 品質
- Check 3:Settings 配置
- Check 4:Rules 對齊
- Check 5:跨檔一致性
- 執行模式
- 輸出格式
- 安全規範
- 依賴的知識來源
What does the cc-agent-audit skill do?
Claude Code 專案配置審計。觸發:review/優化 CLAUDE.md、skills、settings、定期清洗累積內容、新專案上線前檢查。
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill cc-agent-audit --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
