~ / rigs / chroju / dotfiles

chroju/dotfiles

my dotfiles

↗ GitHub ★ 0 no license updated today personal setup Claude Code Claude plugin
stack: LuaShell
share on X
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
CONTEXT TAX · EVERY TURN
~1.7k tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
5/5
Blocks destructive commands · Protects secrets · Pre-tool screening hook · No YOLO mode · Sandbox or ask-first rules · details
Quality 29/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit chroju/dotfiles/dotfiles/HOME/.claude ./rig-dotfiles  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "permissions": {
    "deny": [
      "Bash(sudo:*)",
      "Bash(wget:*)",
      "Bash(rm -rf:*)",
      "Bash(rm -r:*)",
      "Bash(rm -f:*)",
      "Read(**/.env)",
      "Read(**/.env.*)",
      "Read(**/*.key)",
      "Read(**/*.pem)",
      "Read(./secrets/**)",
      "Read(**/.aws/**)",
      "Read(**/.aws/credentials)",
      "Read(**/.ssh/**)",
      "Read(**/.ssh/id_*)",
      "Read(**/.gnupg/**)",
      "Edit(**/.env)",
      "Edit(**/.env.*)",
      "Edit(**/*.key)",
      "Edit(**/*.pem)",
      "Edit(**/.ssh/id_*)",
      "Read(**/node_modules/**)",
      "Read(**/.terraform/**)",
      "Read(**/__pycache__/**)",
      "Read(**/venv/**)",
      "Read(**/.venv/**)",
      "Read(**/dist/**)",
      "Read(**/build/**)",
      "Read(**/*.log)"
    ],
    "ask": [
      "Bash(git push:*)",
      "Bash(gh pr create:*)",
      "Bash(gh pr merge:*)",
      "Bash(gh issue create:*)",
      "Bash(gh repo create:*)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Write|Edit|MultiEdit",
        "hooks": [
          {
            "type": "command",
            "command": "FILE_PATH=$(jq -r '.tool_input.file_path // .tool_input.path // \"\"'); [ -n \"$FILE_PATH\" ] || exit 0; REAL=$(readlink -f \"$FILE_PATH\" 2>/dev/null) || REAL=\"$(readlink -f \"$(dirname \"$FILE_PATH\")\" 2>/dev/null)/$(basename \"$FILE_PATH\")\"; case "
          }
        ]
      },
      {
        "matcher": "Agent",
        "hooks": [
          {
            "type": "command",
            "command": "~/.claude/scripts/agent-model-guard.sh"
          }
        ]
      }
    ]
  }
}

Hooks (15)

eventmatcherruns
PreToolUseWrite|Edit|MultiEditFILE_PATH=$(jq -r '.tool_input.file_path // .tool_input.path // ""'); [ -n "$FILE_PATH" ] || exit 0; REAL=$(readlink -f "$FILE_PATH" 2>/dev/null) || REAL="$(readlink -f "$(dirname "$FILE_PATH")" 2>/dev/null)/$(basename "$FILE_PATH")"; case
PreToolUseAgent~/.claude/scripts/agent-model-guard.sh
PostToolUseWriteFILE_PATH=$(jq -r '.tool_input.file_path') && [ -n "$(tail -c1 "$FILE_PATH")" ] && echo >> "$FILE_PATH"
PostToolUseWrite|Edit|MultiEditjq -r '.tool_input.file_path' | xargs -I {} sed -i '' 's/[[:space:]]*$//' '{}'
Stop*~/.claude/scripts/tmux-stop.sh
Stop*~/.claude/scripts/rate_limits_cache.sh
Stop*~/.claude/scripts/herdr-notify.sh stop
UserPromptSubmit*~/.claude/scripts/tmux-working.sh
Notification*~/.claude/scripts/tmux-notify.sh
Notification*~/.claude/scripts/herdr-notify.sh notification
PermissionRequest*~/.claude/scripts/herdr-approve.sh
SessionStart*~/.claude/scripts/tmux-window-name-check.sh
SessionStart*bash ~/.claude/hooks/herdr-agent-state.sh session
SessionStart*/bin/sh -c 'rex __internal session-start --agent claude 2>/dev/null || true'
SessionEnd*/opt/homebrew/bin/bun $HOME/dev/src/github.com/chroju/obsidian/scripts/session_anchor.ts

Slash commands (3)

/check-version/scrapbox/use-ask

Plugins (3)

codex@openai-codexhrns@chrojuclaude-security@claude-plugins-official

Permissions

deny (28)
Bash(sudo:*)
Bash(wget:*)
Bash(rm -rf:*)
Bash(rm -r:*)
Bash(rm -f:*)
Read(**/.env)
Read(**/.env.*)
Read(**/*.key)
Read(**/*.pem)
Read(./secrets/**)
Read(**/.aws/**)
Read(**/.aws/credentials)
Read(**/.ssh/**)
Read(**/.ssh/id_*)
Read(**/.gnupg/**)
Edit(**/.env)
Edit(**/.env.*)
Edit(**/*.key)
Edit(**/*.pem)
Edit(**/.ssh/id_*)
Read(**/node_modules/**)
Read(**/.terraform/**)
Read(**/__pycache__/**)
Read(**/venv/**)
Read(**/.venv/**)
Read(**/dist/**)
Read(**/build/**)
Read(**/*.log)
ask (5)
Bash(git push:*)
Bash(gh pr create:*)
Bash(gh pr merge:*)
Bash(gh issue create:*)
Bash(gh repo create:*)
allow (40)
Read
Edit
MultiEdit
Write
Glob
Grep
WebFetch
WebSearch
Bash(ls:*)
Bash(find:*)
Bash(tree:*)
Bash(git diff:*)
Bash(git log:*)
Bash(git status:*)
Bash(git show:*)
Bash(git branch:*)
Bash(git worktree list:*)
Bash(git pull:*)
Bash(git checkout -b:*)
Bash(git switch:*)
Bash(gh pr list:*)
Bash(gh pr view:*)
Bash(gh issue list:*)
Bash(gh issue view:*)
Bash(gh repo view:*)
Bash(icalPal:*)
Bash(date:*)
Bash(terraform fmt:*)
Bash(terraform validate:*)
Bash(gh pr comment:*)
Bash(tmux rename-window:*)
mcp__notion__notion-fetch
mcp__notion__notion-search
mcp__notion__notion-query-data-sources
mcp__claude_ai_Slack__slack_search_public_and_private
mcp__claude_ai_Slack__slack_read_channel
mcp__claude_ai_Slack__slack_read_thread
mcp__claude_ai_Google_Calendar__list_events
mcp__aws-terraform-mcp-server__SearchAwsProviderDocs
mcp__aws-knowledge-mcp-server__aws___search_documentation

Similar rigs

copied ✓