| allowed-tools |
|---|
Glob(path:/home/andy/.claude/**), Read(path:/home/andy/.claude/**), Edit |
Remove content from the local project CLAUDE.md that duplicates global rules.
-
Read all global rules fresh (these change frequently, always re-read):
~/.claude/CLAUDE.md~/.claude/rules/**/*.md(all files recursively)
-
Read the local
CLAUDE.mdin the current project root -
Identify and remove content that duplicates global rules:
- Generic Rails commands (
bin/rails test,brakeman,rubocop,db:prepare, etc.) - Standard Rails conventions (migrations DDL-only, HAML, Minitest, FactoryBot)
- Generic development commands (
bin/dev,bin/setup,guard) - bd workflow instructions
- wi_auth/CanCanCan patterns
- Any "Development Commands" sections with standard Rails CLI usage
- Generic Rails commands (
-
Keep project-specific content:
- Application overview and purpose
- Domain-specific models and workflows
- Unique integrations (external APIs, ERPs, etc.)
- Project-specific configuration
- Retirement/legacy status notes
- Custom business logic documentation
-
Consolidate remaining content:
- Remove redundancy within the file itself
- Tighten prose (remove filler phrases like "This file provides guidance...")
- Combine related sections where sensible
-
Show the user what you're removing and why before making edits
The local CLAUDE.md should only contain information that is unique to this project and not covered by global rules. Keep it focused and concise.