feat(install): merge user settings and turn off bundled Claude Code skills #281

Merged
Defame1297 merged 2 commits from feat/280-merge-user-settings into main 2026-12-04 20:14:56 +00:00
Owner

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.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi

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
Claude added 2 commits 2026-12-04 20:05:42 +00:00
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
Python's JSON parser accepts them, so an invalid settings file was rewritten
instead of being refused and left untouched.

Refs: #280
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Defame1297 approved these changes 2026-12-04 20:14:48 +00:00
Defame1297 merged commit 55da336298 into main 2026-12-04 20:14:56 +00:00
Defame1297 deleted branch feat/280-merge-user-settings 2026-12-04 20:14:57 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Holocron#281