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.