~ / rigs / maxpetretta / dotfiles

maxpetretta/dotfiles

My macOS dotfiles, supporting both fish and bash shells

↗ GitHub ★ 4 MIT updated 1d ago personal setup Claude CodeCodex
field: Developer tools workflow: PR / code reviewCI/CD & deployDebugging runs claude in CI
stack: Lua
share on X
ARCHETYPE
YOLO Cowboy
Permissions? Never heard of 'em. Ships at the speed of `--dangerously-skip-permissions`.
CONTEXT TAX · EVERY TURN
~2.0k tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Protects secrets · Sandbox or ask-first rules · details
Quality 21/100 Guardrails v2

Copy this rig

$ git clone --depth 1 https://github.com/maxpetretta/dotfiles

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 maxpetretta/dotfiles/.config/agents/skills/cross-review .claude/skills/cross-review
$ npx degit maxpetretta/dotfiles/.config/agents/skills/health .claude/skills/health
$ npx degit maxpetretta/dotfiles/.config/agents/skills/pr-description .claude/skills/pr-description
$ npx degit maxpetretta/dotfiles/.config/agents/skills/skill-audit .claude/skills/skill-audit
$ npx degit maxpetretta/dotfiles/.config/codex/skills/use-github-cli .claude/skills/use-github-cli

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 -rf /)",
      "Bash(rm -rf /*)",
      "Bash(rm -fr /)",
      "Bash(rm -fr /*)",
      "Bash(rm -rf ~)",
      "Bash(rm -rf ~/)",
      "Bash(rm -rf .)",
      "Bash(rm -rf ./)",
      "Bash(sudo:*)",
      "Bash(dd :*)",
      "Bash(mkfs:*)",
      "Bash(diskutil erase:*)",
      "Bash(diskutil partitionDisk:*)",
      "Bash(fdisk:*)",
      "Bash(shred:*)",
      "Bash(shutdown:*)",
      "Bash(reboot:*)",
      "Bash(halt:*)",
      "Bash(chmod -R 777:*)",
      "Bash(chmod 777 /*)",
      "Bash(eval :*)",
      "Bash(diskutil apfs deleteContainer:*)",
      "Bash(diskutil apfs deleteVolume:*)",
      "Bash(diskutil apfs eraseVolume:*)",
      "Bash(diskutil secureErase:*)",
      "Bash(diskutil zeroDisk:*)",
      "Bash(diskutil randomDisk:*)",
      "Bash(diskutil reformat:*)",
      "Bash(crontab -r:*)",
      "Bash(rm -rf ~/.Trash:*)",
      "Bash(rm -fr ~/.Trash:*)",
      "Bash(rm -r ~/.Trash:*)",
      "Bash(rm -rf $HOME/.Trash:*)",
      "Bash(rm -rf ~/.Trash:*)",
      "Bash(osascript *empty*)",
      "Read(~/.ssh/**)",
      "Read(~/.config/gh/hosts.yml)",
      "Read(~/.config/op/**)",
      "Read(~/.config/fish/secrets.fish)"
    ],
    "ask": [
      "Bash(gh repo delete:*)",
      "Bash(git push -f:*)",
      "Bash(git push --force:*)",
      "Bash(git reset --hard:*)",
      "Bash(git worktree remove --force:*)",
      "Bash(git worktree remove -f:*)",
      "Bash(rm -rf:*)",
      "Bash(rm -fr:*)",
      "Bash(rm -r:*)",
      "Bash(npm publish:*)",
      "Bash(bun publish:*)",
      "Bash(vercel --prod:*)",
      "Bash(vercel deploy --prod:*)",
      "Bash(gh pr merge:*)",
      "Bash(cast:*)",
      "Bash(git push origin +main:*)",
      "Bash(git push origin +master:*)"
    ]
  }
}

Skills (5)

Hooks (3)

eventmatcherruns
UserPromptSubmit*MEMO_MCP_NODE_BIN=~/.local/share/mise/installs/node/22.23.1/bin/node MEMO_MCP_SERVER=~/.local/share/memo/codex-integration/mcp-server.mjs MEMO_BUN_BIN=~/.local/share/mise/installs/bun/1.3.14/bin/bun MEMO_PYTHON_BIN=~/.local/share/mise/insta
SessionEnd*MEMO_MCP_NODE_BIN=~/.local/share/mise/installs/node/22.23.1/bin/node MEMO_MCP_SERVER=~/.local/share/memo/codex-integration/mcp-server.mjs MEMO_BUN_BIN=~/.local/share/mise/installs/bun/1.3.14/bin/bun MEMO_PYTHON_BIN=~/.local/share/mise/insta
SessionStart*/bin/sh -c 'rex __internal session-start --agent claude 2>/dev/null || true'

Plugins (2)

frontend-design@claude-plugins-officialcc-plugin-you-should-know@builtin

Permissions

deny (39)
Bash(rm -rf /)
Bash(rm -rf /*)
Bash(rm -fr /)
Bash(rm -fr /*)
Bash(rm -rf ~)
Bash(rm -rf ~/)
Bash(rm -rf .)
Bash(rm -rf ./)
Bash(sudo:*)
Bash(dd :*)
Bash(mkfs:*)
Bash(diskutil erase:*)
Bash(diskutil partitionDisk:*)
Bash(fdisk:*)
Bash(shred:*)
Bash(shutdown:*)
Bash(reboot:*)
Bash(halt:*)
Bash(chmod -R 777:*)
Bash(chmod 777 /*)
Bash(eval :*)
Bash(diskutil apfs deleteContainer:*)
Bash(diskutil apfs deleteVolume:*)
Bash(diskutil apfs eraseVolume:*)
Bash(diskutil secureErase:*)
Bash(diskutil zeroDisk:*)
Bash(diskutil randomDisk:*)
Bash(diskutil reformat:*)
Bash(crontab -r:*)
Bash(rm -rf ~/.Trash:*)
Bash(rm -fr ~/.Trash:*)
Bash(rm -r ~/.Trash:*)
Bash(rm -rf $HOME/.Trash:*)
Bash(rm -rf ~/.Trash:*)
Bash(osascript *empty*)
Read(~/.ssh/**)
Read(~/.config/gh/hosts.yml)
Read(~/.config/op/**)
Read(~/.config/fish/secrets.fish)
ask (17)
Bash(gh repo delete:*)
Bash(git push -f:*)
Bash(git push --force:*)
Bash(git reset --hard:*)
Bash(git worktree remove --force:*)
Bash(git worktree remove -f:*)
Bash(rm -rf:*)
Bash(rm -fr:*)
Bash(rm -r:*)
Bash(npm publish:*)
Bash(bun publish:*)
Bash(vercel --prod:*)
Bash(vercel deploy --prod:*)
Bash(gh pr merge:*)
Bash(cast:*)
Bash(git push origin +main:*)
Bash(git push origin +master:*)
allow (119)
Bash(git add:*)
Bash(git cherry-pick:*)
Bash(git clone:*)
Bash(git commit:*)
Bash(git fetch:*)
Bash(git mv:*)
Bash(git pull:*)
Bash(git rebase:*)
Bash(git reset --soft:*)
Bash(git reset --mixed:*)
Bash(git revert:*)
Bash(git switch:*)
Bash(gh repo list:*)
Bash(gh run watch:*)
Bash(tsc:*)
Bash(brew list:*)
Bash(brew search:*)
Bash(brew info:*)
Bash(brew doctor:*)
Bash(openssl rand:*)
Bash(bat:*)
Bash(eza:*)
Bash(pbcopy:*)
Bash(pbpaste:*)
Bash(sg:*)
Bash(mkdir:*)
Bash(touch:*)
Bash(gzip:*)
Bash(gunzip:*)
Bash(lsappinfo info *)
Bash(defaults read *)
Bash(log show *)
Bash(pmset -g *)
Bash(git ls-tree *)
WebFetch(domain:developer.mozilla.org)
WebFetch(domain:docs.rs)
WebFetch(domain:github.com)
WebFetch(domain:npmjs.com)
WebFetch(domain:pypi.org)
WebFetch(domain:raw.githubusercontent.com)
WebFetch(domain:stackoverflow.com)
WebFetch(domain:api.github.com)
WebFetch(domain:registry.npmjs.org)
WebFetch(domain:code.claude.com)
WebSearch
mcp__claude_ai_Context7__*
mcp__codex-computer-use
mcp__memo
mcp__ccd_pr__get_status
Skill(*)
Bash(swiftlint lint *)
Bash(swiftlint version)
Bash(lsappinfo front)
Bash(lsappinfo list)
Bash(xcrun xcresulttool get *)
Bash(xcrun swift-format lint *)
Bash(sysctl -n *)
Bash(shasum *)
Bash(aerospace list-windows *)
Bash(aerospace list-workspaces *)

Similar rigs

copied ✓