問題文
A developer works on two repositories on the same machine. One repository requires that all new code include type annotations; the other does not. The developer also has a personal preference for concise commit messages that should apply everywhere. How should these instructions be placed?
選択肢
- Put all three instructions in each repository's CLAUDE.md, duplicating the commit message preference.
- Put all three instructions in the user-level CLAUDE.md, since it applies to every session.
- Put the instructions in a single CLAUDE.md at the filesystem root so both repositories inherit them.
- Put the type annotation rule in the repository's own CLAUDE.md committed to that repository, and put the commit message preference in the user-level CLAUDE.md in the home directory.