claude-md-progressive-disclosurer
Audited by Runlayer on Feb 21, 2026
Malicious tool definition detected
Tool: .security-scan-passed Description: Security scan passed
Malicious tool definition detected
Tool: SKILL.md [1/2] Description: --- name: claude-md-progressive-disclosurer description: | Optimize CLAUDE.md files using progressive disclosure.
Tool: SKILL.md [2/2]
Malicious tool definition detected
Tool: references/progressive_disclosure_principles.md Description: # 实践案例与教训 本文档记录优化 CLAUDE.md 过程中的实际案例和教训。 --- ## 案例 1:以行数为目标的过度精简 ### 背景 某项目 CLAUDE.md 内容丰富,包含代码模式、诊断流程、目录映射等。 ### 错误做法 以"减少行数"为目标,移走了大部分内容,只保留简短描述和指针。 ### 结果 - ❌ 丢失代码模式,LLM 每次重新推导 - ❌ 丢失诊断流程,遇错不知查哪 - ❌ 丢失目录映射,找文件效率低 ### 正确做法 按**信息质量**而非行数判断去留: | 内容 | 保留位置 | 判断依据 | |------|----------|----------| | 核心命令表 | Level 1 | 高频使用,不应让 LLM 每次去查 | | 懒加载代码模式 | Level 1 | 需要直接复制,移走会导致重新推导 | | ABI 错误诊断 | Level 1 | 完整症状→原因→修复流程 | | 详细 SOP | Level 2