Key Takeaway
Test a Claude Code repository instruction by assigning a small task that should trigger the instruction and checking the resulting diff. Use a bilingual content edit to test a translation rule, then distinguish between a rule that loaded and a rule the assistant followed. Keep deterministic project checks in CI.
What is a good instruction fixture?
Pick a normal task that touches one translated UI label. Document the expected pair of edits inside the request for the control run. Use a local branch and keep the label small enough to revert by abandoning that branch.
How can the run test the repository rule?
Start another session from the same baseline with the brief task alone. Keep the bilingual rule in the repository instructions. Compare the actual diff with the control run and check the source of the loaded instruction when diagnosing differences.
What if the rule appears to load?
Inspect whether the text is specific enough to act on. An instruction to maintain translations is harder to check than a rule naming messages/en.json, messages/id.json and the same key in both. Run the experiment with the clearer rule.
Where does configuration matter?
Record the working directory, instruction files and project settings. Settings can affect whether a check was permitted to run. A clean experiment starts with the same directory and intended settings before changing the prompt.
Which part belongs in a test script?
Check translation key parity in a repeatable script. An explicit check gives a clear failure when only one language gains a key. Keep the repository instruction as guidance for producing the right patch in the first place.
When should the fixture be rerun?
Run it after changing a project instruction, the relevant settings or the path where a task starts. Record the CLI version and inspected files with the diff. This turns an instruction problem into a reproducible code review.

