Learn · Configuration & workflows · CCAR-F task 3.3

Path-specific rules

One .claude/rules file with a paths glob covers a file type across every folder, and loads only when Claude touches a matching file.

Key ideas

Worked example: Test conventions across the whole repo

Test files sit in 40 folders. One rule file scoped by a glob applies to all of them and stays out of context when Claude edits anything else.

Exam traps

Official docs

Practise CCAR-F questions · Next lesson: Custom commands and skills