CCAR-F practice › Claude Code Configuration & Workflows · Question 56 of 105
Claude Code Configuration & Workflows
Storybook story files (*.stories.tsx) sit next to their components in about 60 directories. The team pasted the story conventions into a CLAUDE.md in each of those directories, and the copies have started to disagree. What is the most maintainable fix?
Show answer and explanation
Answer: C — Replace the copies with one rule file scoped to paths: ["**/*.stories.tsx"]
When a convention follows a file type spread across the codebase, a single path-scoped rule with a glob like **/*.stories.tsx applies it wherever those files live, from one place. Directory-level CLAUDE.md files are tied to one directory each. (A) keeps 60 copies and just detects the drift. (B) loads the conventions in every session and relies on inference. (D) applies only when someone invokes the skill.
Keep going
More Claude Code Configuration & Workflows questions
- A production error's stack trace points to a missing null check on line 88 of…
- During a multi-phase task (find every use of a deprecated config flag, design a…
- You used plan mode to investigate migrating from one ORM to another across 48 files. The…
- You asked Claude to convert legacy log lines into structured JSON events. Your prose…
- A Claude-written migration script mostly works, but it writes the string "null" when a…