~ / rigs / januswel / dotfiles

januswel/dotfiles

software setting files

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

Copy this rig

# review before running: this installs third-party code
$ npx degit januswel/dotfiles/.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(git commit:*)",
      "Bash(git push:*)",
      "Bash(git merge:*)",
      "Bash(git rebase:*)",
      "Bash(git reset:*)",
      "Bash(git revert:*)",
      "Bash(git cherry-pick:*)",
      "Bash(git tag:*)",
      "Bash(git stash:*)",
      "Bash(git checkout:*)",
      "Bash(git restore:*)",
      "Bash(git clean:*)",
      "Bash(python:*)",
      "Bash(python3:*)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "jq -r '.tool_input.command // \"\"' | grep -qE '(^|[;&|(`[:space:]])git([[:space:]]+-[^[:space:]]+)*[[:space:]]+(commit|push|merge|rebase|reset|revert|cherry-pick|tag|stash|checkout|restore|clean|am|apply)\\b' && printf '%s' '{\"hookSpecificOut"
          },
          {
            "type": "command",
            "command": "jq -r '.tool_input.command // \"\"' | grep -qE '(^|[;&|(`[:space:]])python[0-9.]*([[:space:]]|$)' && printf '%s' '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"permissionDecision\":\"deny\",\"permissionDecisionReason\":\"python の実行は禁止。ファイル操作"
          }
        ]
      }
    ]
  },
  "sandbox": {
    "enabled": true
  }
}

Hooks (2)

eventmatcherruns
PreToolUseBashjq -r '.tool_input.command // ""' | grep -qE '(^|[;&|(`[:space:]])git([[:space:]]+-[^[:space:]]+)*[[:space:]]+(commit|push|merge|rebase|reset|revert|cherry-pick|tag|stash|checkout|restore|clean|am|apply)\b' && printf '%s' '{"hookSpecificOut
PreToolUseBashjq -r '.tool_input.command // ""' | grep -qE '(^|[;&|(`[:space:]])python[0-9.]*([[:space:]]|$)' && printf '%s' '{"hookSpecificOutput":{"hookEventName":"PreToolUse","permissionDecision":"deny","permissionDecisionReason":"python の実行は禁止。ファイル操作

Permissions

deny (14)
Bash(git commit:*)
Bash(git push:*)
Bash(git merge:*)
Bash(git rebase:*)
Bash(git reset:*)
Bash(git revert:*)
Bash(git cherry-pick:*)
Bash(git tag:*)
Bash(git stash:*)
Bash(git checkout:*)
Bash(git restore:*)
Bash(git clean:*)
Bash(python:*)
Bash(python3:*)
ask (0)
—
allow (2)
mcp__ide__getDiagnostics
WebSearch

Similar rigs

copied ✓