merge-settings

Merge project-local Claude settings permissions into global settings with user approval.

9|1|Updated Jan 15, 2016
One-click install
npx skills add https://github.com/wadackel/dotfiles --skill merge-settings
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: merge-settings
Source: https://github.com/wadackel/dotfiles/tree/main/home/programs/claude/skills/merge-settings
Command: npx skills add https://github.com/wadackel/dotfiles --skill merge-settings

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq.

What problem does it solve?

Merge project-local .claude/settings.local.json permissions into global ~/.claude/settings.json with user approval. It consolidates per-project rules into a centralized configuration while preserving project-specific control.

Core Features & Use Cases

  • Reads .claude/settings.local.json and extracts permissions.allow entries
  • Compares against ~/.claude/settings.json to identify new or updated rules
  • Backs up the existing global settings before merging
  • Proposes safe, deduplicated rules and requires explicit user approval before applying
  • Merges approved rules into the global settings and writes a canonicalized JSON
  • Provides structured JSON outputs for proposal and apply modes

Quick Start

Run the merge-settings skill in proposal mode from the project root to view recommended global rules and apply them after approval.

Frequently Asked Questions about merge-settings

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I merge Claude project settings into global config?

To merge Claude project settings, you consolidate permissions from project-local .claude/settings.local.json files into the global ~/.claude/settings.json file. This process identifies new rules, proposes them for approval, and writes deduplicated, canonicalized JSON to the global config.

When do I need to consolidate per-project Claude permission rules?

You need to consolidate per-project Claude permission rules when managing multiple Claude projects and want centralized configuration control. It extracts permissions.allow entries from local project files, compares them against global settings, and proposes safe, deduplicated rules for explicit approval before merging.

Can I back up global Claude settings before applying new permissions?

Yes, you can back up global Claude settings before applying new permissions. The merge process automatically backs up the existing global ~/.claude/settings.json file before proposing and merging any approved permission rules, ensuring your previous configuration is safely preserved.

Does the Claude settings merge process require user approval?

Yes, the Claude settings merge process requires explicit user approval. After computing the diff between local and global settings, it proposes new or updated rules and only updates the global config with canonicalized JSON after you explicitly approve the proposed changes.

Do I need jq to merge local Claude settings into global config?

Yes, you need jq installed to merge local Claude settings into global config. The merge process relies on the jq dependency to read both local and global settings files, compute diffs between permission rules, and write the final canonicalized JSON output.

What is the best way to manage multiple Claude projects with different permission rules?

The best way to manage multiple Claude projects with different permission rules is merging project-local settings into a centralized global config. This approach extracts local permissions, deduplicates overlapping rules, and requires explicit approval before applying canonicalized updates to the global file.