Question · Vibe coding with Claude Code course · Module 15: Advanced Claude Code
Quiz: What enforces a rule
CLAUDE.md says we do not edit migrations, and Claude fixed a file in prisma/migrations/ anyway. What will stop it every time and say what to do instead?
Answer options
- The same line in CLAUDE.md written in capital letters
- A PreToolUse hook for Edit and Write that ends with code 2 and a message on stderr
- An allow rule for Edit(./prisma/schema.prisma)
- Moving the rule to CLAUDE.local.md
You can check the correct answer by solving this task in the CodeWorlds game.