claude-rig-awareness

claude-rig-awareness is a skill for Claude Code from edimuj/claude-rig. It costs 172 tokens per session (3,582 once invoked), scanned B, original, MIT.

Configuration guidance for claude-rig, a tool that lets you run separate Claude Code setups side by side. Each setup has its own settings, plugins, skills, hooks, agents, commands, and instructions.

In plain words
What is it for?
Use it before changing Claude Code settings, plugins, MCP servers, skills, hooks, agents, or instruction files, especially when checking which rig is active.
Why use it?
It prevents changes from being made to the wrong configuration when several Claude Code setups are in use.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/user/.claude-rig/rigs/go.

Part of the claude-rig plugin — 1 skill shipped together

Good fit Use it before changing Claude Code settings, plugins, MCP servers, skills, hooks, agents, or instruction files, especially when checking which rig is active.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add edimuj/claude-rig
Claude Code
/plugin install claude-rig

Made for: Claude Code.

Or install claude-rig, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for claude-rig-awareness

README.md
[![agentmods](https://agentmods.dev/badge/skills/edimuj/claude-rig/claude-rig-awareness/github.svg)](https://agentmods.dev/skills/edimuj/claude-rig/claude-rig-awareness)
Your own site
<a href="https://agentmods.dev/skills/edimuj/claude-rig/claude-rig-awareness"><img src="https://agentmods.dev/badge/skills/edimuj/claude-rig/claude-rig-awareness/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for claude-rig-awareness

Your own site · 80×15
<a href="https://agentmods.dev/skills/edimuj/claude-rig/claude-rig-awareness"><img src="https://agentmods.dev/badge/skills/edimuj/claude-rig/claude-rig-awareness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 172 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,582 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00172 $0.03582
Opus 5.5 $0.00069 $0.01433
Sonnet 5.5 $0.00034 $0.00716
Haiku 4.5 $0.00017 $0.00358

Measured 3mo ago against content hash e907068d6446, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

claude-rig-awareness scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- **Don't write to `~/.claude/settings.json`** when a rig is active — use
cmd/claude-rig/bundled/skills/claude-rig-awareness/SKILL.md · 388 lines

How it starts

The opening of the file, as written. The whole thing — 388 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 shared items are symlinks back to ~/.claude/. Rigs can inherit skills/agents/hooks/commands from global, and sync plugins + MCP servers.

Where things live (with active rig)

Item Location
settings.json $CLAUDE_CONFIG_DIR/settings.json
Plugins $CLAUDE_CONFIG_DIR/plugins/
Skills $CLAUDE_CONFIG_DIR/skills/
Hooks $CLAUDE_CONFIG_DIR/hooks/
Agents $CLAUDE_CONFIG_DIR/agents/
Commands $CLAUDE_CONFIG_DIR/commands/
CLAUDE.md (rig) $CLAUDE_CONFIG_DIR/CLAUDE.md
MCP servers $CLAUDE_CONFIG_DIR/.claude.json
Auth files Often symlinked — shared across rigs
Rig config $CLAUDE_CONFIG_DIR/rig.json

Read the full file on GitHub · 388 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 388 lines · 172 tokens per session scan B e907068d6446

Subscribe to this mod's changes

claude-rig-awareness is a skill published in the GitHub repository edimuj/claude-rig (10 stars, last pushed 5mo ago), licensed MIT. It adds 172 tokens to every session and 3,582 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

claude-rig-awareness compared with skills from other repositories

claude-rig-awareness next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
claude-rig-awarenessedimuj/claude-rigSkill105mo agoMITB172Claude Code
ghostty-configshyuan/ghostty-config-pluginSkill57mo agoMITA38Claude Code
feishuHmbown/CodeWhaleSkill41kyesterdayMITA33Claude Code, Codex
interviewHmbown/CodeWhaleSkill41kyesterdayMITA40Claude Code, Codex
refocusingmvschwarz/openrigSkill9.0ktodayApache-2.0A59Claude Code
recipe-create-meet-spacegoogleworkspace/cliSkill33k5d agoApache-2.0A18Claude Code, Codex
atmos-validationcloudposse/atmosSkill1.4ktodayApache-2.0A31Claude Code