~ / rigs / samsalisbury / home

samsalisbury/home

Home directory stuff, dotfiles and workflow tools.

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

Copy this rig

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

$ curl -fsSL --create-dirs -o .claude/agents/test-runner.md https://raw.githubusercontent.com/samsalisbury/home/main/.claude/agents/test-runner.md

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

{
  "permissions": {
    "deny": [
      "Read(~/.ssh/**)",
      "Read(~/.aws/**)",
      "Read(~/.gnupg/**)",
      "Read(~/.config/gcloud/**)",
      "Read(~/.kube/config)",
      "Read(~/.docker/config.json)",
      "Read(~/.netrc)",
      "Read(~/.npmrc)",
      "Read(~/.pypirc)",
      "Read(~/.git-credentials)",
      "Read(~/Library/Keychains/**)",
      "Read(//**/.env)",
      "Read(//**/.env.local)",
      "Read(//**/.env.*.local)",
      "Read(//**/.env.production)",
      "Read(//**/*.pem)",
      "Read(//**/*.p12)",
      "Read(//**/id_rsa)",
      "Read(//**/id_ed25519)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "PATH=\"/opt/homebrew/bin:/usr/local/bin${PATH:+:$PATH}\" node '~/.claude/statusbar/update.js' pre"
          }
        ]
      }
    ]
  },
  "sandbox": {
    "enabled": true
  }
}

Subagents (1)

test-runner
model: sonnet
>

Hooks (9)

eventmatcherruns
Notification*PATH="/opt/homebrew/bin:/usr/local/bin${PATH:+:$PATH}" node '~/.claude/statusbar/update.js' notify
PermissionRequest*PATH="/opt/homebrew/bin:/usr/local/bin${PATH:+:$PATH}" node '~/.claude/statusbar/update.js' permreq
PostToolUseEdit|Writebash $HOME/.claude/hooks/format-markdown.sh
PostToolUse*PATH="/opt/homebrew/bin:/usr/local/bin${PATH:+:$PATH}" node '~/.claude/statusbar/update.js' post
PreToolUse*PATH="/opt/homebrew/bin:/usr/local/bin${PATH:+:$PATH}" node '~/.claude/statusbar/update.js' pre
SessionEnd*PATH="/opt/homebrew/bin:/usr/local/bin${PATH:+:$PATH}" node '~/.claude/statusbar/lifecycle.js' end
SessionStart*PATH="/opt/homebrew/bin:/usr/local/bin${PATH:+:$PATH}" node '~/.claude/statusbar/lifecycle.js' start
Stop*PATH="/opt/homebrew/bin:/usr/local/bin${PATH:+:$PATH}" node '~/.claude/statusbar/update.js' stop
UserPromptSubmit*PATH="/opt/homebrew/bin:/usr/local/bin${PATH:+:$PATH}" node '~/.claude/statusbar/update.js' prompt

Permissions

deny (19)
Read(~/.ssh/**)
Read(~/.aws/**)
Read(~/.gnupg/**)
Read(~/.config/gcloud/**)
Read(~/.kube/config)
Read(~/.docker/config.json)
Read(~/.netrc)
Read(~/.npmrc)
Read(~/.pypirc)
Read(~/.git-credentials)
Read(~/Library/Keychains/**)
Read(//**/.env)
Read(//**/.env.local)
Read(//**/.env.*.local)
Read(//**/.env.production)
Read(//**/*.pem)
Read(//**/*.p12)
Read(//**/id_rsa)
Read(//**/id_ed25519)
ask (0)
—
allow (0)
—

Similar rigs

copied ✓