Claude Code Config

A single source of truth for Claude Code — reusable agents, skills, hooks, and permission templates that propagate to every project and machine.
8 specialist agents · 19 skills · 14 permission templates · 7 MCP templates · 20 lifecycle hooks · 3 style rules · 1 output style · 4 CLI scripts
📖 Case study →

setup-project.sh --dry-run django react — two stacks compose into one merged, deny-aware permission set.
Contents
🤔 Why This Exists
Claude Code stores configuration in ~/.claude/ (global) and .claude/ (per-project). Keeping that consistent across projects and machines is tedious — agents get copied around, commands are duplicated, permission templates drift, and every new machine means manual setup.
This repo fixes that with one canonical config that everything else links back to:
- Symlinks (agents, skills, rules) so updates propagate everywhere automatically, plus a mirrored
settings.json that a sync keeps fresh (ADR-0002)
- Composable templates for different project types
- Hooks for auto-formatting, safety checks, and notifications
- Skills & rules for passive domain knowledge and style judgement
- Setup scripts that work on any machine
flowchart LR
repo["claude-code-config<br/>(one canonical repo)"]
subgraph Global["~/.claude — global"]
direction TB
a["agents · skills · rules"]
set["settings.json<br/>(mirrored real file)"]
end
subgraph Proj[".claude — per-project"]
direction TB
sl["settings.local.json"]
mcp[".mcp.json"]
end
repo -- "setup-global.sh<br/>(symlink)" --> a
repo -- "sync-global-settings.py<br/>(mirror — ADR-0002)" --> set
repo -- "setup-project.sh<br/>(merge templates)" --> Proj
One repo links into every machine and composes per-project permissions (template merge). Symlinked directories propagate a change here live; the mirrored settings.json applies it on the next sync (ADR-0002) — either way, nothing is copied around by hand.
🚀 Quick Start
There are two ways to consume this repo: as a plugin (recommended) or in global mode (legacy, still supported). Both modes coexist — hook paths use ${CLAUDE_PLUGIN_ROOT:-<readlink fallback>}, so they resolve either way.
Option A — Plugin install (recommended)
# From inside Claude Code:
/plugin marketplace add edjchapman/claude-code-config
/plugin install claude-code-config
How the name resolves: there is no global plugin registry — /plugin install looks the name up only in marketplaces you have added, so after the marketplace add above it can only install from this repo. In the unlikely case another added marketplace also defines a claude-code-config plugin, use the scoped form: /plugin install claude-code-config@claude-code-config (plugin@marketplace).
Then add per-project permissions only:
cd ~/my-django-project
~/Development/claude-code-config/scripts/setup-project.sh django # settings.local.json + .mcp.json
Option B — Global mode (legacy)
# 1. Clone (or fork to customize)
git clone https://github.com/edjchapman/claude-code-config.git ~/claude-code-config
# 2. Global config (symlinks + settings mirror into ~/.claude/)
~/Development/claude-code-config/scripts/setup-global.sh
# 3. Project config (from your project directory)
cd ~/my-django-project
~/Development/claude-code-config/scripts/setup-project.sh django
# 4. Start Claude Code — agents and skills are now available
claude
Tip — alias it. Add alias claude-setup='~/Development/claude-code-config/scripts/setup-project.sh' to your shell profile, then run claude-setup django react.
Fork or Clone?