~ / rigs / peccu / dotfiles

peccu/dotfiles

my dot files

↗ GitHub ★ 0 MIT updated 15d ago personal setup Claude Code
stack: Shell
share on X
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
CONTEXT TAX · EVERY TURN
~244 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 peccu/dotfiles/dot_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": [
      "Read(~/.aws/**)",
      "Read(%USERPROFILE%\\.aws\\**)",
      "Read(~/.ssh/id_*)",
      "Read(~/.ssh/id_rsa)",
      "Read(~/.ssh/id_ed25519)",
      "Read(~/.ssh/id_ecdsa)",
      "Read(~/.ssh/id_dsa)",
      "Read(~/.kube/config)",
      "Read(%APPDATA%\\**\\credentials*)",
      "Read(**/privatekey*)",
      "Read(**/*.pem)",
      "Read(**/*.key)",
      "Read(**/*.p12)",
      "Read(**/*.pfx)",
      "Read(**/*.keystore)",
      "Read(~/.npmrc)",
      "Read(~/.pypirc)",
      "Read(~/.pip/pip.conf)",
      "Read(~/.cargo/credentials)",
      "Read(~/.dockercfg)",
      "Read(~/.docker/config.json)",
      "Read(**/.git/credentials)",
      "Read(**/AppData/**/Google/Chrome/**)",
      "Read(**/AppData/**/Mozilla/Firefox/**)",
      "Read(**/AppData/**/Microsoft/Edge/**)",
      "Read(**/Library/Application Support/Google/Chrome/**)",
      "Read(**/Library/Application Support/Firefox/**)",
      "Read(**/Library/Application Support/Microsoft/Edge/**)",
      "Read(**/.mozilla/**)",
      "Read(**/.config/google-chrome/**)",
      "Read(**/.config/chromium/**)",
      "Read(~/Library/Keychains/**)",
      "Read(/System/Library/**/*.plist)",
      "Read(/Library/Keychains/**)",
      "WebFetch(domain:169.254.169.254/**)",
      "WebFetch(domain:169.254.170.2/**)",
      "WebFetch(domain:[fd00:ec2::254]/**)",
      "WebFetch(domain:metadata.google.internal/**)",
      "WebFetch(domain:metadata/**)",
      "WebFetch(domain:100.100.100.200/**)",
      "WebFetch(domain:*.internal)",
      "WebFetch(domain:*.local)",
      "WebFetch(domain:*.corp)",
      "WebFetch(domain:*.lan)",
      "WebFetch(domain:10.*)",
      "WebFetch(domain:172.16.*)",
      "WebFetch(domain:172.17.*)",
      "WebFetch(domain:172.18.*)",
      "WebFetch(domain:172.19.*)",
      "WebFetch(domain:172.20.*)",
      "WebFetch(domain:172.21.*)",
      "WebFetch(domain:172.22.*)",
      "WebFetch(domain:172.23.*)",
      "WebFetch(domain:172.24.*)",
      "WebFetch(domain:172.25.*)",
      "WebFetch(domain:172.26.*)",
      "WebFetch(domain:172.27.*)",
      "WebFetch(domain:172.28.*)",
      "WebFetch(domain:172.29.*)",
      "WebFetch(domain:172.30.*)",
      "WebFetch(domain:172.31.*)",
      "WebFetch(domain:192.168.*)",
      "WebFetch(domain:169.254.*)",
      "Write(**/authorized_keys)",
      "Write(**/sudoers*)",
      "Write(**/shadow)",
      "Write(**/passwd)",
      "Write(**/group)",
      "Write(**/hosts)",
      "Write(**/hostname)",
      "Write(**/resolv.conf)",
      "Write(**/crontab)",
      "Write(/etc/cron.d/**)",
      "Write(/etc/cron.daily/**)",
      "Write(/etc/cron.hourly/**)",
      "Write(/etc/cron.weekly/**)",
      "Write(/etc/cron.monthly/**)",
      "Write(**/.bashrc)",
      "Write(**/.zshrc)",
      "Write(**/.profile)"
    ],
    "ask": [
      "Read(**/.env*)",
      "Read(**/secrets/**)",
      "Read(**/*secret*)",
      "Read(**/*password*)",
      "Read(**/*token*)",
      "Read(**/.git/config)",
      "Bash(git remote add:*)",
      "Bash(docker:*)",
      "Bash(kubectl:*)",
      "Bash(aws:*)",
      "Bash(az:*)",
      "Bash(terraform apply:*)",
      "Bash(terraform destroy:*)",
      "Bash(npm publish:*)",
      "Bash(pip install:*)",
      "Bash(gem install:*)",
      "Bash(pip3 install:*)",
      "Bash(pipenv install:*)",
      "Bash(poetry add:*)",
      "Bash(go get:*)",
      "Bash(go install:*)",
      "Bash(npm i:*)",
      "Bash(yarn add:*)",
      "Bash(pnpm add:*)",
      "Bash(bundle install:*)",
      "Bash(cargo install:*)",
      "Bash(composer require:*)",
      "Bash(mvn install:*)",
      "Bash(gradle install:*)",
      "Bash(apt install:*)",
      "Bash(apt-get install:*)",
      "Bash(yum install:*)",
      "Bash(brew install:*)",
      "Bash(choco install:*)",
      "Write(**/Dockerfile)",
      "Write(**/.github/workflows/*)",
      "Edit(**/Dockerfile)",
      "Edit(**/.github/workflows/*)",
      "Bash(curl:*)",
      "Bash(wget:*)",
      "Bash(git clone:*)",
      "Bash(git pull:*)",
      "Bash(git merge:*)",
      "Bash(git rebase:*)",
      "Bash(npm install:*)",
      "Bash(yarn install:*)",
      "Bash(composer install:*)",
      "Bash(cargo build:*)",
      "Bash(make:*)",
      "Bash(cmake:*)",
      "Write(**/*.sh)",
      "Write(**/*.bash)",
      "Write(**/*.ps1)",
      "Edit(**/*.sh)",
      "Edit(**/*.bash)",
      "Edit(**/*.ps1)",
      "Edit(**/package-lock.json)",
      "Edit(**/yarn.lock)",
      "Edit(**/pnpm-lock.yaml)",
      "Edit(**/Gemfile.lock)",
      "Edit(**/poetry.lock)",
      "Edit(**/Pipfile.lock)",
      "Edit(**/composer.lock)",
      "Edit(**/Cargo.lock)",
      "Edit(**/go.sum)",
      "Edit(**/.git/**)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "~/.claude/scripts/block-git-add-all.sh"
          }
        ]
      }
    ]
  }
}

Hooks (3)

eventmatcherruns
PreToolUseBash~/.claude/scripts/block-git-add-all.sh
Notification*~/.claude/scripts/notify-hook.sh '✅' '入力待ちです'
Stop*~/.claude/scripts/notify-hook.sh '⏹' '停止しました'

Plugins (2)

document-skills@anthropic-agent-skillssuperpowers@claude-plugins-official

Permissions

deny (86)
Read(~/.aws/**)
Read(%USERPROFILE%\.aws\**)
Read(~/.ssh/id_*)
Read(~/.ssh/id_rsa)
Read(~/.ssh/id_ed25519)
Read(~/.ssh/id_ecdsa)
Read(~/.ssh/id_dsa)
Read(~/.kube/config)
Read(%APPDATA%\**\credentials*)
Read(**/privatekey*)
Read(**/*.pem)
Read(**/*.key)
Read(**/*.p12)
Read(**/*.pfx)
Read(**/*.keystore)
Read(~/.npmrc)
Read(~/.pypirc)
Read(~/.pip/pip.conf)
Read(~/.cargo/credentials)
Read(~/.dockercfg)
Read(~/.docker/config.json)
Read(**/.git/credentials)
Read(**/AppData/**/Google/Chrome/**)
Read(**/AppData/**/Mozilla/Firefox/**)
Read(**/AppData/**/Microsoft/Edge/**)
Read(**/Library/Application Support/Google/Chrome/**)
Read(**/Library/Application Support/Firefox/**)
Read(**/Library/Application Support/Microsoft/Edge/**)
Read(**/.mozilla/**)
Read(**/.config/google-chrome/**)
Read(**/.config/chromium/**)
Read(~/Library/Keychains/**)
Read(/System/Library/**/*.plist)
Read(/Library/Keychains/**)
WebFetch(domain:169.254.169.254/**)
WebFetch(domain:169.254.170.2/**)
WebFetch(domain:[fd00:ec2::254]/**)
WebFetch(domain:metadata.google.internal/**)
WebFetch(domain:metadata/**)
WebFetch(domain:100.100.100.200/**)
WebFetch(domain:*.internal)
WebFetch(domain:*.local)
WebFetch(domain:*.corp)
WebFetch(domain:*.lan)
WebFetch(domain:10.*)
WebFetch(domain:172.16.*)
WebFetch(domain:172.17.*)
WebFetch(domain:172.18.*)
WebFetch(domain:172.19.*)
WebFetch(domain:172.20.*)
WebFetch(domain:172.21.*)
WebFetch(domain:172.22.*)
WebFetch(domain:172.23.*)
WebFetch(domain:172.24.*)
WebFetch(domain:172.25.*)
WebFetch(domain:172.26.*)
WebFetch(domain:172.27.*)
WebFetch(domain:172.28.*)
WebFetch(domain:172.29.*)
WebFetch(domain:172.30.*)
ask (66)
Read(**/.env*)
Read(**/secrets/**)
Read(**/*secret*)
Read(**/*password*)
Read(**/*token*)
Read(**/.git/config)
Bash(git remote add:*)
Bash(docker:*)
Bash(kubectl:*)
Bash(aws:*)
Bash(az:*)
Bash(terraform apply:*)
Bash(terraform destroy:*)
Bash(npm publish:*)
Bash(pip install:*)
Bash(gem install:*)
Bash(pip3 install:*)
Bash(pipenv install:*)
Bash(poetry add:*)
Bash(go get:*)
Bash(go install:*)
Bash(npm i:*)
Bash(yarn add:*)
Bash(pnpm add:*)
Bash(bundle install:*)
Bash(cargo install:*)
Bash(composer require:*)
Bash(mvn install:*)
Bash(gradle install:*)
Bash(apt install:*)
Bash(apt-get install:*)
Bash(yum install:*)
Bash(brew install:*)
Bash(choco install:*)
Write(**/Dockerfile)
Write(**/.github/workflows/*)
Edit(**/Dockerfile)
Edit(**/.github/workflows/*)
Bash(curl:*)
Bash(wget:*)
Bash(git clone:*)
Bash(git pull:*)
Bash(git merge:*)
Bash(git rebase:*)
Bash(npm install:*)
Bash(yarn install:*)
Bash(composer install:*)
Bash(cargo build:*)
Bash(make:*)
Bash(cmake:*)
Write(**/*.sh)
Write(**/*.bash)
Write(**/*.ps1)
Edit(**/*.sh)
Edit(**/*.bash)
Edit(**/*.ps1)
Edit(**/package-lock.json)
Edit(**/yarn.lock)
Edit(**/pnpm-lock.yaml)
Edit(**/Gemfile.lock)
allow (59)
Bash(* --help *)
Bash(* --version)
Bash(.fvm/flutter_sdk/bin/dart run:*)
Bash(.fvm/flutter_sdk/bin/flutter analyze:*)
Bash(acli jira:*)
Bash(find:*)
Bash(git commit *)
Bash(git log:*)
Bash(git worktree:*)
Bash(glab mr:*)
Bash(grep:*)
Bash(ln:*)
Bash(npm run *)
Read(/**)
Edit(/**)
Edit(//tmp)
Bash(ls:*)
Bash(cat:*)
Bash(less:*)
Bash(more:*)
Bash(head:*)
Bash(tail:*)
Bash(pwd:*)
Bash(which:*)
Bash(whereis:*)
Bash(file:*)
Bash(stat:*)
Bash(wc:*)
Bash(echo:*)
Bash(git status:*)
Bash(git diff:*)
Bash(git show:*)
Bash(git branch:*)
Bash(git tag:*)
Bash(npm test:*)
Bash(npm run test*)
Bash(npm run lint*)
Bash(pytest:*)
Bash(python -m pytest:*)
Bash(go test:*)
Bash(cargo test:*)
Bash(mvn test:*)
Bash(gradle test:*)
Bash(jest:*)
Bash(mocha:*)
Bash(rspec:*)
Bash(npm run build*)
Bash(tsc:*)
Bash(webpack:*)
Bash(vite build:*)
Bash(rollup:*)
Bash(prettier:*)
Bash(eslint:*)
Bash(pylint:*)
Bash(black:*)
Bash(rustfmt:*)
Bash(gofmt:*)
Bash(open https:*)
Bash(open http:*)

Similar rigs

copied ✓