Claude Code踩坑长帖约 2 分钟

半年删一次过时规则

Delete Stale Claude Code Rules

要点

  1. 若你不是在做 agent 产品,每半年清空 CLAUDE.md、skills 和 hooks。
  2. 新模型往往已不需要旧版那些又长又硬的约束。
  3. Opus 5 尤其建议先裸跑,看默认行为再决定加什么。
  4. 为旧弱点写的脚手架会一直占上下文,即使模型早已会了。
  5. 删完对比输出,只把模型仍会违反的规则加回去。

原帖开头

Claude Code creator Boris Cherny ( @bcherny ) "For people who aren’t building agentic products but are using Claude Code, every 6 months, delete your claude.md file, delete your skills, and delete your hooks. Then see what the model does. It might surprise you. For Opus 5, we