Claude Code 踩雷筆記
記錄一些使用 Claude Code 過程中踩到的坑,希望幫後來者少走彎路。
# allowed-tools 多指令
要讓 skill 完整跑完而不跳 permission prompt,需要在 allowed-tools 中把用到的指令都列入允許。但若指令包含 &&,例如:
cd frontend && npx playwright test e2e/specs/appointment-pet-grooming.spec.ts
不能用一條 allowed-tools 規則涵蓋整個指令:
# 這樣會失敗
allowed-tools:
more...