Skip to content

strunkandwhite/dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dev

Shared Claude Code configuration across projects. Manages a global CLAUDE.md, accumulated permissions, and shared skills from a single repo.

Setup

git clone https://github.com/strunkandwhite/dev.git ~/code/dev
cd ~/code/dev
bash bin/sync.sh

The first run backs up existing ~/.claude/settings.json and ~/.claude/CLAUDE.md to .bak files, then symlinks them to this repo.

What it does

bin/sync.sh (also available as /dev-sync in any Claude session):

  1. Gathers permissions from all ~/code/*/.claude/settings.local.json files
  2. Promotes generic ones to the global settings.json (git, npm, pnpm, turso, MCP tools, etc.)
  3. Keeps project-specific permissions local (unique API domains, env-prefixed commands, project paths)
  4. Trims promoted entries from project files so they only contain what's truly local
  5. Verifies symlinks from ~/.claude/ point here

WebFetch domains are promoted only if they appear in 2+ projects.

Structure

CLAUDE.md          # Global agent instructions (symlinked to ~/.claude/CLAUDE.md)
settings.json      # Global permissions (gitignored, generated by sync)
bin/sync.sh        # Sync script
commands/           # Shared skills (symlinked to ~/.claude/commands/)
  dev-sync.md      # /dev-sync slash command

About

Shared dev infra

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages