Question 54
Scenario: Claude Code for Continuous Integration
Claude Code runs headless inside a CI/CD pipeline: automated code reviews, test generation and pull-request feedback — with prompts designed for actionable findings and few false positives.
Read the full scenario lessonYour infrastructure-as-code repository includes Terraform modules (/terraform/), Kubernetes manifests (/kubernetes/), and CI/CD pipeline scripts (/pipelines/). Each requires different conventions, but your single root CLAUDE.md has grown to 500+ lines. When developers work on Kubernetes files, Terraform-specific rules load into context unnecessarily, consuming tokens.
What is the best approach to reorganize so only relevant guidance loads when editing specific file types?