~ / rigs / smnatale / dotfiles

smnatale/dotfiles

My macOS dotfiles. Managed with stow. Feel free to steal anything useful.

↗ GitHub ★ 90 no license updated 4d ago personal setup Claude Code
field: Developer tools workflow: Git & commits
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.4k 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 35/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit smnatale/dotfiles/claude/.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.

$ npx degit smnatale/dotfiles/claude/.claude/skills/rex-dev .claude/skills/rex-dev
$ npx degit smnatale/dotfiles/claude/.claude/skills/split-pr .claude/skills/split-pr

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(rm *)",
      "Bash(rmdir *)"
    ],
    "ask": [
      "Bash(git commit *)",
      "Bash(git -C * commit *)",
      "Bash(git push *)",
      "Bash(git -C * push *)",
      "Bash(wt merge *)",
      "Bash(wt remove *)",
      "Bash(gh pr create *)",
      "Bash(gh pr merge *)",
      "Bash(gh pr close *)",
      "Bash(gh pr edit *)",
      "Bash(gh pr comment *)",
      "Bash(gh pr review *)",
      "Bash(gh pr ready *)",
      "Bash(gh issue create *)",
      "Bash(gh issue close *)",
      "Bash(gh issue edit *)",
      "Bash(gh issue comment *)",
      "Bash(gh repo *)",
      "Bash(gh release *)",
      "Bash(gh workflow run *)",
      "Bash(gh run rerun *)",
      "Bash(gh run cancel *)",
      "Bash(gh stack submit *)",
      "Bash(gh stack link *)",
      "Bash(gh stack push *)",
      "Bash(gh stack merge *)",
      "Bash(gh stack sync *)",
      "Bash(gh stack rebase *)",
      "Bash(gh stack unstack *)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "bash ~/.claude/hooks/guard-bash.sh"
          }
        ]
      }
    ]
  }
}

Skills (2)

Hooks (2)

eventmatcherruns
SessionStart*/bin/sh -c 'rex __internal session-start --agent claude --feature-session-naming=false 2>/dev/null || true'
PreToolUseBashbash ~/.claude/hooks/guard-bash.sh

Plugins (3)

lua-lsp@claude-plugins-officialtypescript-lsp@claude-plugins-officialworktrunk@worktrunk

Permissions

deny (2)
Bash(rm *)
Bash(rmdir *)
ask (29)
Bash(git commit *)
Bash(git -C * commit *)
Bash(git push *)
Bash(git -C * push *)
Bash(wt merge *)
Bash(wt remove *)
Bash(gh pr create *)
Bash(gh pr merge *)
Bash(gh pr close *)
Bash(gh pr edit *)
Bash(gh pr comment *)
Bash(gh pr review *)
Bash(gh pr ready *)
Bash(gh issue create *)
Bash(gh issue close *)
Bash(gh issue edit *)
Bash(gh issue comment *)
Bash(gh repo *)
Bash(gh release *)
Bash(gh workflow run *)
Bash(gh run rerun *)
Bash(gh run cancel *)
Bash(gh stack submit *)
Bash(gh stack link *)
Bash(gh stack push *)
Bash(gh stack merge *)
Bash(gh stack sync *)
Bash(gh stack rebase *)
Bash(gh stack unstack *)
allow (20)
Bash(rg *)
Bash(jq *)
Bash(lsof -nP *)
Bash(gh pr view *)
Bash(gh pr list *)
Bash(gh pr diff *)
Bash(gh pr checks *)
Bash(gh pr status *)
Bash(gh run view *)
Bash(gh run list *)
Bash(gh issue view *)
Bash(gh issue list *)
Bash(gh stack view *)
Bash(wt list *)
Bash(wt port *)
Bash(rex capture *)
Bash(rex window ls *)
Bash(rex session ls *)
Bash(rex session inspect *)
Bash(rex whoami *)

Similar rigs

copied ✓