Question 61
A team uses Claude Code daily for generating, refactoring, debugging and documenting code — with custom slash commands, CLAUDE.md configuration, hooks, and judgment about when plan mode beats direct execution.
Read the full scenario lessonYou are using Claude Code to accelerate software development. Your team uses it for code generation, refactoring, debugging, and documentation. You need to integrate it into your development workflow with custom slash commands, CLAUDE.md configurations, and understand when to use plan mode vs direct execution.
Your team has three requirements for Claude Code’s behavior in your project
1. Claude must never modify files in the db/migrations/ directory
2. Claude should prefer your custom logging module over console.log
3. All TypeScript files must be auto-formatted with Prettier after every edit
All three are currently written as instructions in your project’s CLAUDE.md. During a complex refactoring session, a developer discovers that Claude edited a migration file, violating requirement #1. How should you restructure these requirements across Claude Code's configuration mechanisms?