From 954680ef6e4de18257ec2b06dcf2d186849cca6e Mon Sep 17 00:00:00 2001 From: PaulVua Date: Mon, 5 Jan 2026 17:33:13 +0100 Subject: [PATCH] Refactor Claude Code settings to use template pattern MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .claude/README.md | 21 +++++++++++++++++++ .../{settings.local.json => settings.json} | 5 +++-- .gitignore | 5 ++++- 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 .claude/README.md rename .claude/{settings.local.json => settings.json} (64%) diff --git a/.claude/README.md b/.claude/README.md new file mode 100644 index 0000000..7db58b4 --- /dev/null +++ b/.claude/README.md @@ -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. diff --git a/.claude/settings.local.json b/.claude/settings.json similarity index 64% rename from .claude/settings.local.json rename to .claude/settings.json index fe38b6a..9b42cf2 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.json @@ -4,5 +4,6 @@ "Bash(python3:*)" ], "deny": [] - } -} \ No newline at end of file + }, + "enableAllProjectMcpServers": false +} diff --git a/.gitignore b/.gitignore index 2b10a80..f9c8c41 100755 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,7 @@ NPM/data/*.json sqlite/*.db sqlite/*.sql -tests/ \ No newline at end of file +tests/ + +# Claude Code local settings +.claude/settings.local.json \ No newline at end of file