scripts/install.sh used to copy the repo's Claude Code settings over ~/.claude/settings.json, deleting everything else in it. It now merges them, and the repo's settings turn off bundled and claude.ai-synced skills.
Changes
Merge: settings only the user has are kept, including inside env and skillOverrides. Where both set a value, the repo's wins. An invalid settings file stops the install before anything is deployed and is left untouched.
New settings:disableBundledSkills: true, syncClaudeAiSkills: false, env.CLAUDE_CODE_DISABLE_SHIP: "1" and skillOverrides.init: "off".
Docs: the architecture spec and README describe the merge.
Good to know
Removing a setting from the repo later doesn't remove it from a machine that already has it.
Arrays are replaced whole. The repo's settings contain none today.
A newly created settings file gets mode 0600. An existing file keeps its mode.
If root installs into another user's home, the merged settings file ends up owned by root.
After merge (operator)
This is the last acceptance criterion of #280, so the PR doesn't close the issue.
Remove "ship-local": "off" from skillOverrides in ~/.claude/settings.json.
Run scripts/install.sh.
In a new interactive session, check that the bundled and anthropic-skills:* skills are gone and /ship runs the custom command.
Testing
tests/test-install.sh: 36 passed
The pre-push hooks passed on push. This repo has no forge CI.
Refs #280. Decision: ADR-0035.
`scripts/install.sh` used to copy the repo's Claude Code settings over `~/.claude/settings.json`, deleting everything else in it. It now merges them, and the repo's settings turn off bundled and claude.ai-synced skills.
## Changes
- **Merge:** settings only the user has are kept, including inside `env` and `skillOverrides`. Where both set a value, the repo's wins. An invalid settings file stops the install before anything is deployed and is left untouched.
- **New settings:** `disableBundledSkills: true`, `syncClaudeAiSkills: false`, `env.CLAUDE_CODE_DISABLE_SHIP: "1"` and `skillOverrides.init: "off"`.
- **Docs:** the architecture spec and README describe the merge.
## Good to know
- Removing a setting from the repo later doesn't remove it from a machine that already has it.
- Arrays are replaced whole. The repo's settings contain none today.
- A newly created settings file gets mode 0600. An existing file keeps its mode.
- If root installs into another user's home, the merged settings file ends up owned by root.
## After merge (operator)
This is the last acceptance criterion of #280, so the PR doesn't close the issue.
1. Remove `"ship-local": "off"` from `skillOverrides` in `~/.claude/settings.json`.
2. Run `scripts/install.sh`.
3. In a new interactive session, check that the bundled and `anthropic-skills:*` skills are gone and `/ship` runs the custom command.
## Testing
- `tests/test-install.sh`: 36 passed
- The pre-push hooks passed on push. This repo has no forge CI.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Copying the repo's settings.json over ~/.claude/settings.json would delete
most of the operator's settings, so the installer now merges it. The merge
and the new settings land together, so no overwriting installer ever
deploys them.
The merge runs before any other file is deployed, so an invalid settings
file stops the install with nothing changed. It writes a complete temporary
file and renames it, so a failure cannot truncate the user's settings.
Impact: removing a setting from the repo no longer removes it from a
machine that already has it.
ADR: 0035
Refs: #280
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Refs #280. Decision: ADR-0035.
scripts/install.shused to copy the repo's Claude Code settings over~/.claude/settings.json, deleting everything else in it. It now merges them, and the repo's settings turn off bundled and claude.ai-synced skills.Changes
envandskillOverrides. Where both set a value, the repo's wins. An invalid settings file stops the install before anything is deployed and is left untouched.disableBundledSkills: true,syncClaudeAiSkills: false,env.CLAUDE_CODE_DISABLE_SHIP: "1"andskillOverrides.init: "off".Good to know
After merge (operator)
This is the last acceptance criterion of #280, so the PR doesn't close the issue.
"ship-local": "off"fromskillOverridesin~/.claude/settings.json.scripts/install.sh.anthropic-skills:*skills are gone and/shipruns the custom command.Testing
tests/test-install.sh: 36 passed🤖 Generated with Claude Code
https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi