~ / rigs / kryo-o / claude-code-setup

kryo-o/claude-code-setup

Secure Claude Code template: sandbox, deny-guard hook, cost status line, Context7 docs, reviewed plugins

↗ GitHub ★ 1 MIT updated 23d ago personal setup Claude Code Claude plugin
stack: Shell
share on X
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
CONTEXT TAX · EVERY TURN
n/a
Nothing in this repo is loaded every turn (no root instruction file, MCP servers, skills or subagents), so there's nothing to estimate. Templates or plugins installed from it aren't counted.
No estimate · 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 40/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit kryo-o/claude-code-setup/hooks ./rig-claude-code-setup/hooks

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": [
      "Read(~/Library/Mobile Documents/com~apple~CloudDocs/**)",
      "Edit(~/Library/Mobile Documents/com~apple~CloudDocs/**)",
      "Bash(*CloudDocs*)",
      "Bash(*Mobile Documents*)",
      "Bash(*com~apple~CloudDocs*)",
      "Read(~/.ssh/id_*)",
      "Read(~/.ssh/*.pem)",
      "Bash(*~/.ssh/id_*)",
      "Bash(*~/.ssh/*.pem*)",
      "Read(~/.aws/credentials)",
      "Read(~/.config/gcloud/**)",
      "Read(~/.azure/**)",
      "Bash(*.aws/credentials*)",
      "Bash(*.config/gcloud/**)",
      "Bash(*.azure/**)",
      "Read(~/Library/Application Support/Google/Chrome/**/Cookies)",
      "Read(~/Library/Application Support/Google/Chrome/**/Login Data)",
      "Read(~/Library/Application Support/BraveSoftware/**/Cookies)",
      "Read(~/Library/Application Support/BraveSoftware/**/Login Data)",
      "Read(~/Library/Application Support/Firefox/**/cookies.sqlite)",
      "Read(~/Library/Application Support/Firefox/**/logins.json)",
      "Read(~/Library/Keychains/**)",
      "Read(~/.config/google-chrome/**/Cookies)",
      "Read(~/.config/google-chrome/**/Login Data)",
      "Read(~/.config/chromium/**/Cookies)",
      "Read(~/.config/chromium/**/Login Data)",
      "Read(~/.config/BraveSoftware/**/Cookies)",
      "Read(~/.config/BraveSoftware/**/Login Data)",
      "Read(~/.mozilla/firefox/**/cookies.sqlite)",
      "Read(~/.mozilla/firefox/**/logins.json)",
      "Read(~/.local/share/keyrings/**)",
      "Read(~/.password-store/**)",
      "Edit(~/.claude/settings.json)",
      "Edit(~/.claude/settings.local.json)",
      "Edit(~/.claude/hooks/**)",
      "Edit(~/.claude/plugins/**)",
      "Edit(~/.claude/mods/**)",
      "Edit(~/.claude/skills/**)",
      "Edit(~/.claude/agents/**)",
      "Edit(~/.claude/commands/**)",
      "Edit(~/.claude/CLAUDE.md)",
      "Edit(~/.claude/rules/**)",
      "Edit(~/.claude/claude-os/**)",
      "Edit(~/.local/bin/claude-os)",
      "Edit(~/.claude.json)",
      "Edit(//**/.claude/settings.json)",
      "Edit(//**/.claude/settings.local.json)",
      "Edit(//**/.claude/hooks/**)",
      "Edit(//**/.claude/skills/**)",
      "Edit(//**/.claude/agents/**)",
      "Edit(//**/.claude/commands/**)",
      "Edit(//**/.claude/rules/**)",
      "Edit(//**/.mcp.json)",
      "Edit(~/.zshrc)",
      "Edit(~/.zprofile)",
      "Edit(~/.zshenv)",
      "Edit(~/.zlogin)",
      "Edit(~/.bashrc)",
      "Edit(~/.bash_profile)",
      "Edit(~/.bash_login)",
      "Edit(~/.profile)",
      "Edit(~/.config/fish/**)",
      "Edit(~/.gitconfig)",
      "Edit(~/.config/git/**)",
      "Edit(~/.config/gh/**)",
      "Edit(~/.ssh/**)",
      "Edit(~/Library/LaunchAgents/**)",
      "Edit(~/.config/systemd/user/**)",
      "Edit(~/.config/autostart/**)",
      "Edit(//**/.git/hooks/**)",
      "Edit(//**/.git/config)",
      "Edit(//**/.git/**/hooks/**)",
      "Edit(//**/.git/**/config)",
      "Edit(//**/.git/**/config.worktree)",
      "Bash(gh extension *)",
      "Bash(gh alias *)",
      "Bash(gh auth token*)",
      "Bash(gh repo delete*)",
      "Read(~/.zsh_history)",
      "Read(~/.bash_history)"
    ],
    "ask": [
      "Bash(pip install *)",
      "Bash(pip3 install *)",
      "Bash(python -m pip install *)",
      "Bash(python3 -m pip install *)",
      "Bash(npm install)",
      "Bash(npm install *)",
      "Bash(npm i)",
      "Bash(npm i *)",
      "Bash(npx *)",
      "Bash(yarn add *)",
      "Bash(yarn global add *)",
      "Bash(pnpm add *)",
      "Bash(pnpm install)",
      "Bash(pnpm install *)",
      "Bash(brew install *)",
      "Bash(brew tap *)",
      "Bash(brew trust *)",
      "Bash(brew untrust *)",
      "Bash(brew autoupdate *)",
      "Bash(brew upgrade*)",
      "Bash(gem install *)",
      "Bash(cargo install *)",
      "Bash(go install *)",
      "Bash(uv tool *)",
      "Bash(launchctl load *)",
      "Bash(launchctl bootstrap *)",
      "Bash(gh *)",
      "Bash(git push *)",
      "Bash(git fetch *)",
      "Bash(git pull *)",
      "Edit(~/.claude/projects/*/memory/**)",
      "Edit(//**/CLAUDE.md)",
      "Edit(//**/CLAUDE.local.md)",
      "Edit(//**/[Cc][Ll][Aa][Uu][Dd][Ee].[Mm][Dd])",
      "Edit(//**/[Cc][Ll][Aa][Uu][Dd][Ee].[Ll][Oo][Cc][Aa][Ll].[Mm][Dd])"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "~/.claude/hooks/deny-guard.sh"
          }
        ]
      }
    ]
  },
  "sandbox": {
    "enabled": true
  }
}

Hooks (1)

eventmatcherruns
PreToolUseBash~/.claude/hooks/deny-guard.sh

Plugins (16)

security-guidance@claude-plugins-officialclaude-security@claude-plugins-officialmattpocock-skills@claude-plugins-officialcontext7@claude-plugins-officialcc-plugin-you-should-know@builtincaveman@cavemanponytail@ponytailhumanizer@humanizerblast-radius@claude-code-playground-modsreplay-theater@claude-code-playground-modsreflect-mod@vendored-modscache-tax@vendored-modscommercial-legal@claude-for-legalprivacy-legal@claude-for-legalclaude-seo@agricidaniel-claude-seonateherk-design@nateherk

Permissions

deny (110)
Read(~/Library/Mobile Documents/com~apple~CloudDocs/**)
Edit(~/Library/Mobile Documents/com~apple~CloudDocs/**)
Bash(*CloudDocs*)
Bash(*Mobile Documents*)
Bash(*com~apple~CloudDocs*)
Read(~/.ssh/id_*)
Read(~/.ssh/*.pem)
Bash(*~/.ssh/id_*)
Bash(*~/.ssh/*.pem*)
Read(~/.aws/credentials)
Read(~/.config/gcloud/**)
Read(~/.azure/**)
Bash(*.aws/credentials*)
Bash(*.config/gcloud/**)
Bash(*.azure/**)
Read(~/Library/Application Support/Google/Chrome/**/Cookies)
Read(~/Library/Application Support/Google/Chrome/**/Login Data)
Read(~/Library/Application Support/BraveSoftware/**/Cookies)
Read(~/Library/Application Support/BraveSoftware/**/Login Data)
Read(~/Library/Application Support/Firefox/**/cookies.sqlite)
Read(~/Library/Application Support/Firefox/**/logins.json)
Read(~/Library/Keychains/**)
Read(~/.config/google-chrome/**/Cookies)
Read(~/.config/google-chrome/**/Login Data)
Read(~/.config/chromium/**/Cookies)
Read(~/.config/chromium/**/Login Data)
Read(~/.config/BraveSoftware/**/Cookies)
Read(~/.config/BraveSoftware/**/Login Data)
Read(~/.mozilla/firefox/**/cookies.sqlite)
Read(~/.mozilla/firefox/**/logins.json)
Read(~/.local/share/keyrings/**)
Read(~/.password-store/**)
Edit(~/.claude/settings.json)
Edit(~/.claude/settings.local.json)
Edit(~/.claude/hooks/**)
Edit(~/.claude/plugins/**)
Edit(~/.claude/mods/**)
Edit(~/.claude/skills/**)
Edit(~/.claude/agents/**)
Edit(~/.claude/commands/**)
Edit(~/.claude/CLAUDE.md)
Edit(~/.claude/rules/**)
Edit(~/.claude/claude-os/**)
Edit(~/.local/bin/claude-os)
Edit(~/.claude.json)
Edit(//**/.claude/settings.json)
Edit(//**/.claude/settings.local.json)
Edit(//**/.claude/hooks/**)
Edit(//**/.claude/skills/**)
Edit(//**/.claude/agents/**)
Edit(//**/.claude/commands/**)
Edit(//**/.claude/rules/**)
Edit(//**/.mcp.json)
Edit(~/.zshrc)
Edit(~/.zprofile)
Edit(~/.zshenv)
Edit(~/.zlogin)
Edit(~/.bashrc)
Edit(~/.bash_profile)
Edit(~/.bash_login)
ask (35)
Bash(pip install *)
Bash(pip3 install *)
Bash(python -m pip install *)
Bash(python3 -m pip install *)
Bash(npm install)
Bash(npm install *)
Bash(npm i)
Bash(npm i *)
Bash(npx *)
Bash(yarn add *)
Bash(yarn global add *)
Bash(pnpm add *)
Bash(pnpm install)
Bash(pnpm install *)
Bash(brew install *)
Bash(brew tap *)
Bash(brew trust *)
Bash(brew untrust *)
Bash(brew autoupdate *)
Bash(brew upgrade*)
Bash(gem install *)
Bash(cargo install *)
Bash(go install *)
Bash(uv tool *)
Bash(launchctl load *)
Bash(launchctl bootstrap *)
Bash(gh *)
Bash(git push *)
Bash(git fetch *)
Bash(git pull *)
Edit(~/.claude/projects/*/memory/**)
Edit(//**/CLAUDE.md)
Edit(//**/CLAUDE.local.md)
Edit(//**/[Cc][Ll][Aa][Uu][Dd][Ee].[Mm][Dd])
Edit(//**/[Cc][Ll][Aa][Uu][Dd][Ee].[Ll][Oo][Cc][Aa][Ll].[Mm][Dd])
allow (0)
—

Similar rigs

copied ✓