Refactor Claude Code settings to use template pattern

- Create .claude/settings.json as project-wide template
- Untrack .claude/settings.local.json for local overrides
- Add .claude/settings.local.json to .gitignore
- Add .claude/README.md documenting the setup

This allows:
- Project defaults versioned in git
- Local customization without conflicts
- Clean separation of shared vs personal settings

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
PaulVua
2026-01-05 17:33:13 +01:00
parent 1f4d38257e
commit 954680ef6e
3 changed files with 28 additions and 3 deletions

21
.claude/README.md Normal file
View File

@@ -0,0 +1,21 @@
# Claude Code Settings
This directory contains configuration for Claude Code.
## Files
- **settings.json**: Project-wide default settings (tracked in git)
- **settings.local.json**: Local user-specific overrides (not tracked in git)
## Usage
The `settings.json` file contains the default configuration that applies to all developers/devices. If you need to customize settings for your local environment, create a `settings.local.json` file which will override the defaults.
### Example: Create local overrides
```bash
cp .claude/settings.json .claude/settings.local.json
# Edit settings.local.json with your preferences
```
Your local changes will not be committed to git.

View File

@@ -4,5 +4,6 @@
"Bash(python3:*)"
],
"deny": []
}
},
"enableAllProjectMcpServers": false
}

3
.gitignore vendored
View File

@@ -17,3 +17,6 @@ sqlite/*.db
sqlite/*.sql
tests/
# Claude Code local settings
.claude/settings.local.json