CCAR-F practice › Claude Code Configuration & Workflows · Question 54 of 105
Claude Code Configuration & Workflows
The root CLAUDE.md contains 250 lines of Terraform conventions. Most sessions are spent on application code, and those sessions load Terraform guidance they never use. What's the best way to keep the conventions while cutting the irrelevant context?
Show answer and explanation
Answer: A — Move them to a .claude/rules/ file with paths: ["terraform/**/*"] in its frontmatter
A .claude/rules/ file with a paths glob loads only when Claude edits matching files, so application-code sessions no longer carry the Terraform conventions, and Terraform sessions still get them automatically. (B) stops sharing them through version control. (C) depends on someone remembering to invoke the skill. (D) still loads them in every session and relies on Claude inferring which section applies.
Keep going
More Claude Code Configuration & Workflows questions
- Each of a platform's 14 services keeps its SQL migrations in its own db/migrations/…
- Storybook story files (*.stories.tsx) sit next to their components in about 60…
- 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…