| name | claude-rig-init |
| description | Bootstrap Claude Code plumbing in a repo (settings, tmp dir, gitignore) |
| disable-model-invocation | true |
| allowed-tools | Bash |
mkdir -p tmp
touch .gitignore
for entry in ".claude/settings.local.json" ".claude/tmp/" "tmp/"; do
grep -qxF "$entry" .gitignore || echo "$entry" >> .gitignore
done
echo "=== tmp/ ==="
echo "EXISTS"
echo ""
echo "=== .gitignore ==="
cat .gitignore
echo ""
echo "=== .claude/ ==="
if [ -d .claude/tmp ]; then
echo ".claude/tmp/ EXISTS"
else
echo ".claude/tmp/ MISSING"
fi
if [ -f .claude/settings.json ]; then
echo ".claude/settings.json EXISTS"
cat .claude/settings.json
else
echo ".claude/settings.json MISSING"
fi
After the above runs, you MUST create anything reported as MISSING:
mkdir -p .claude/tmp (if .claude/tmp/ MISSING)
touch .claude/settings.json (if .claude/settings.json MISSING)
Note: The ensure-sandbox SessionStart hook adds .claude/tmp and tmp
to sandbox.filesystem.allowWrite in settings.local.json, so bash
commands can write to these directories without sandbox violations.
Summarize what was set up or already existed.