~ / rigs / p-chan / dotfiles

p-chan/dotfiles

The dotfiles for fuckin' awesome development environment

share on X
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
CONTEXT TAX · EVERY TURN
~1.2k tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
4/5
Blocks destructive commands · Protects secrets · Pre-tool screening hook · No YOLO mode · details

Copy this rig

# review before running: this installs third-party code
$ npx degit p-chan/dotfiles/home/.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 p-chan/dotfiles/.agents/skills/adr .claude/skills/adr
$ npx degit p-chan/dotfiles/.agents/skills/agent-facing-docs .claude/skills/agent-facing-docs
$ npx degit p-chan/dotfiles/.agents/skills/pr .claude/skills/pr
$ npx degit p-chan/dotfiles/home/.agents/skills/personal-comment .claude/skills/personal-comment
$ npx degit p-chan/dotfiles/home/.agents/skills/personal-git .claude/skills/personal-git
$ npx degit p-chan/dotfiles/home/.agents/skills/personal-github .claude/skills/personal-github
$ npx degit p-chan/dotfiles/home/.agents/skills/personal-hunk .claude/skills/personal-hunk
$ npx degit p-chan/dotfiles/home/.agents/skills/personal-installing-npm-packages .claude/skills/personal-installing-npm-packages
$ npx degit p-chan/dotfiles/home/.agents/skills/personal-setup-node .claude/skills/personal-setup-node
$ npx degit p-chan/dotfiles/home/.agents/skills/personal-setup-oxc .claude/skills/personal-setup-oxc
$ npx degit p-chan/dotfiles/home/.agents/skills/personal-setup-pnpm .claude/skills/personal-setup-pnpm
$ npx degit p-chan/dotfiles/home/.agents/skills/personal-setup-typescript .claude/skills/personal-setup-typescript

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(sudo *)",
      "Edit(~/.npmrc)",
      "Read(.env)",
      "Read(.env.*.local)",
      "Read(.env.development)",
      "Read(.env.local)",
      "Read(.env.production)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Read|Edit|Write|MultiEdit|NotebookEdit",
        "hooks": [
          {
            "type": "command",
            "command": "~/.claude/hooks/personal-block-env.sh"
          }
        ]
      },
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "~/.claude/hooks/personal-block-find.sh"
          },
          {
            "type": "command",
            "command": "~/.claude/hooks/personal-block-git-add-all.sh"
          },
          {
            "type": "command",
            "command": "~/.claude/hooks/personal-block-git-c.sh"
          },
          {
            "type": "command",
            "command": "~/.claude/hooks/personal-block-grep.sh"
          }
        ]
      }
    ]
  }
}

Skills (12)

Hooks (7)

eventmatcherruns
PostToolUseBashbash "$HOME/.claude/hooks/personal-sync-pr-after-push.sh"
PreToolUseRead|Edit|Write|MultiEdit|NotebookEdit~/.claude/hooks/personal-block-env.sh
PreToolUseBash~/.claude/hooks/personal-block-find.sh
PreToolUseBash~/.claude/hooks/personal-block-git-add-all.sh
PreToolUseBash~/.claude/hooks/personal-block-git-c.sh
PreToolUseBash~/.claude/hooks/personal-block-grep.sh
SessionStart^(startup|resume|clear|compact|fork)$bash "$HOME/.claude/hooks/herdr-agent-state.sh" session

Slash commands (1)

/zed

Plugins (2)

codex@openai-codexexample-skills@anthropic-agent-skills

Permissions

deny (7)
Bash(sudo *)
Edit(~/.npmrc)
Read(.env)
Read(.env.*.local)
Read(.env.development)
Read(.env.local)
Read(.env.production)
ask (0)
—
allow (51)
Bash(fd -u *)
Bash(gh issue list *)
Bash(gh issue list)
Bash(gh issue view *)
Bash(gh pr checks *)
Bash(gh pr checks)
Bash(gh pr diff *)
Bash(gh pr diff)
Bash(gh pr list *)
Bash(gh pr list)
Bash(gh pr view *)
Bash(gh pr view)
Bash(gh release list *)
Bash(gh release list)
Bash(gh release view *)
Bash(gh release view)
Bash(gh repo view *)
Bash(gh repo view)
Bash(gh review-comment list *)
Bash(gh review-comment list)
Bash(gh run list *)
Bash(gh run list)
Bash(gh run view *)
Bash(gh run view)
Bash(git diff *)
Bash(git diff)
Bash(git fetch *)
Bash(git fetch)
Bash(git log *)
Bash(git log)
Bash(git ls-remote *)
Bash(git ls-remote)
Bash(head *)
Bash(npm view *)
Bash(opensrc *)
Bash(rg *)
Bash(tail *)
Skill
WebFetch(domain:docs.github.com)
WebFetch(domain:github.com)
WebFetch(domain:qiita.com)
WebFetch(domain:raw.githubusercontent.com)
WebFetch(domain:vitest.dev)
WebFetch(domain:zenn.dev)
WebSearch
mcp__figma-desktop__get_code_connect_map
mcp__figma-desktop__get_code_connect_suggestions
mcp__figma-desktop__get_design_context
mcp__figma-desktop__get_metadata
mcp__figma-desktop__get_screenshot
mcp__figma-desktop__get_variable_defs

Similar rigs

copied ✓