← Browse by Chapter
Get the Book →
#49After (precise)
I want to enforce this safety rule: [describe — e.g., "edits to migrations/ should require confirmation"]. Which mechanism should I use: allowlist entry, denylist entry, hook (Ch09), or keep the default prompt? Explain why the other three are wrong for this case. If a hook is right, sketch the hook config.

Mastering Claude Code
These prompts are excerpts from the book. Get the full collection with explanations and use cases.