← ClaudeAtlas

claude-rig-awarenesslisted

Understanding claude-rig — a tool that manages multiple Claude Code configurations ("rigs") in parallel. MUST be consulted before modifying any Claude Code configuration: installing/removing plugins, adding/configuring MCP servers, editing settings.json, editing .claude.json, editing CLAUDE.md, adding skills, hooks, agents, or commands. Also trigger when the user mentions "rig", "claude-rig", or asks about config layers, or when the user mentions "plugins", "MCP", "skills", "hooks", "agents", or "commands" in a configuration context, or when you're about to write to ~/.claude/, settings.json, .claude.json, or any config file inside a rig directory. Without this skill, you will likely modify the wrong location or put config in the wrong file.
edimuj/claude-rig · ★ 7 · AI & Automation · score 73
Install: claude install-skill edimuj/claude-rig
# claude-rig Awareness claude-rig lets users run multiple independent Claude Code configurations side by side. Each configuration is called a **rig**. When a rig is active, Claude Code doesn't use `~/.claude/` directly — it uses the rig's directory instead. ## How to detect the active rig Check the `CLAUDE_CONFIG_DIR` environment variable. If set, you're running inside a rig. ``` echo $CLAUDE_CONFIG_DIR # Example: /home/user/.claude-rig/rigs/go ``` **If `CLAUDE_CONFIG_DIR` is set, that directory replaces `~/.claude/` for everything.** Settings, plugins, skills, hooks, agents, commands, CLAUDE.md — all of it lives there, not in `~/.claude/`. If the variable is unset, there's no active rig and `~/.claude/` is the config dir as usual. ## The 3-layer config model Configuration resolves in three layers, most specific wins: | Layer | Location | Scope | |---------|----------------------------------------------------|------------------------| | Global | `~/.claude/` | Shared across all rigs | | Rig | `~/.claude-rig/rigs/<name>/` (`CLAUDE_CONFIG_DIR`) | Per-rig override | | Project | `.claude/` in the project working dir | Per-project override | Rig-specific items (settings, plugins, skills, hooks, agents) are real files that override the global ones. New rigs also isolate per-rig data by default (conversations, history, sessions, etc.). Remaining shar