~ / rigs / yanskun / dotfiles

yanskun/dotfiles

my dotfiles

↗ GitHub ★ 8 no license updated 4d ago personal setup Claude CodeCodex
stack: Lua
share on X
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
CONTEXT TAX · EVERY TURN
~10.2k tokens
Heavy · median rig: 2.3k · breakdown
GUARDRAILS
4/5
Blocks destructive commands · Protects secrets · Pre-tool screening hook · No YOLO mode · details
Quality 31/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ claude mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
$ npx degit yanskun/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.

$ claude mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
$ npx degit yanskun/dotfiles/dot_agents/skills/browser-debuging .claude/skills/browser-debuging
$ npx degit yanskun/dotfiles/dot_agents/skills/browser-operation .claude/skills/browser-operation
$ npx degit yanskun/dotfiles/dot_agents/skills/comment-audit .claude/skills/comment-audit
$ npx degit yanskun/dotfiles/dot_agents/skills/diff-review-fb .claude/skills/diff-review-fb
$ npx degit yanskun/dotfiles/dot_agents/skills/emil-design-eng .claude/skills/emil-design-eng
$ npx degit yanskun/dotfiles/dot_agents/skills/empirical-prompt-tuning .claude/skills/empirical-prompt-tuning
$ npx degit yanskun/dotfiles/dot_agents/skills/gh-stack .claude/skills/gh-stack
$ npx degit yanskun/dotfiles/dot_agents/skills/grill-me .claude/skills/grill-me
$ npx degit yanskun/dotfiles/dot_agents/skills/harness-learning .claude/skills/harness-learning
$ npx degit yanskun/dotfiles/dot_agents/skills/herdr-agent-message .claude/skills/herdr-agent-message
$ npx degit yanskun/dotfiles/dot_agents/skills/herdr .claude/skills/herdr
$ npx degit yanskun/dotfiles/dot_agents/skills/hunk-review .claude/skills/hunk-review
$ npx degit yanskun/dotfiles/dot_agents/skills/i-have-adhd .claude/skills/i-have-adhd
$ npx degit yanskun/dotfiles/dot_agents/skills/pr-create .claude/skills/pr-create
$ npx degit yanskun/dotfiles/dot_agents/skills/react-reviewer .claude/skills/react-reviewer
$ curl -fsSL --create-dirs -o .claude/agents/symlink_react-best-practices-reviewer.md https://raw.githubusercontent.com/yanskun/dotfiles/chezmoi/dot_claude/agents/symlink_react-best-practices-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/symlink_refactoring-specialist.md https://raw.githubusercontent.com/yanskun/dotfiles/chezmoi/dot_claude/agents/symlink_refactoring-specialist.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": [
      "Bash(rm -rf /)",
      "Bash(rm -rf ~)",
      "Bash(rm -rf /*)",
      "Bash(sudo rm *)",
      "Bash(sudo *)",
      "Bash(dd *)",
      "Bash(> /dev/*)",
      "Bash(>> /dev/*)",
      "Bash(chmod 777 /*)",
      "Bash(chown root:*)",
      "Bash(curl * | sh)",
      "Bash(curl * | bash)",
      "Bash(wget * | sh)",
      "Bash(wget * | bash)",
      "Bash(rm -rf .git)",
      "Bash(git push --force-with-lease origin main)",
      "Bash(git push -f origin main)",
      "Edit(/etc/**)",
      "Edit(/usr/**)",
      "Edit(/var/**)",
      "Edit(/opt/**)",
      "Edit(/bin/**)",
      "Edit(/sbin/**)",
      "Edit(/lib/**)",
      "Edit(~/.ssh/id_*)",
      "Edit(~/.ssh/*_rsa)",
      "Edit(~/.ssh/*_ecdsa)",
      "Edit(~/.ssh/*_ed25519)",
      "Edit(/etc/passwd)",
      "Edit(/etc/shadow)",
      "Edit(/etc/sudoers)",
      "Read(~/.aws/**)",
      "Read(~/.ssh/**)",
      "Read(~/.config/gh/**)",
      "Read(~/.gnupg/**)",
      "Read(~/.kube/**)",
      "Read(~/.docker/config.json)",
      "Read(~/.netrc)",
      "Read(~/.pgpass)",
      "Read(~/.npmrc)",
      "Read(**/.env)",
      "Read(**/.env.*)",
      "Read(**/id_rsa)",
      "Read(**/id_ed25519)",
      "Read(**/id_ecdsa)",
      "Read(**/*credentials*)",
      "Bash(cat ~/.aws/**)",
      "Bash(cat ~/.ssh/**)",
      "Bash(cat ~/.config/gh/**)",
      "Bash(cat ~/.gnupg/**)",
      "Bash(cat ~/.netrc)",
      "Bash(cat ~/.pgpass)",
      "Bash(cat ~/.npmrc)",
      "Bash(head ~/.aws/**)",
      "Bash(head ~/.ssh/**)",
      "Bash(head ~/.config/gh/**)",
      "Bash(tail ~/.aws/**)",
      "Bash(tail ~/.ssh/**)",
      "Bash(tail ~/.config/gh/**)",
      "Bash(less ~/.aws/**)",
      "Bash(less ~/.ssh/**)",
      "Bash(less ~/.config/gh/**)",
      "Bash(bat ~/.aws/**)",
      "Bash(bat ~/.ssh/**)",
      "Bash(bat ~/.config/gh/**)",
      "Bash(grep * ~/.aws/**)",
      "Bash(grep * ~/.ssh/**)",
      "Bash(grep * ~/.config/gh/**)",
      "Bash(rg * ~/.aws/**)",
      "Bash(rg * ~/.ssh/**)",
      "Bash(rg * ~/.config/gh/**)",
      "Bash(jq * ~/.aws/**)",
      "Bash(jq * ~/.config/gh/**)",
      "Bash(awk * ~/.aws/**)",
      "Bash(awk * ~/.ssh/**)",
      "Bash(awk * ~/.config/gh/**)",
      "Bash(sed * ~/.aws/**)",
      "Bash(sed * ~/.ssh/**)",
      "Bash(sed * ~/.config/gh/**)",
      "Bash(xxd ~/.aws/**)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Edit|Write|MultiEdit",
        "hooks": [
          {
            "type": "command",
            "command": "bash ~/.claude/hooks/block-outside-worktree.sh"
          }
        ]
      },
      {
        "matcher": "Skill",
        "hooks": [
          {
            "type": "command",
            "command": "bash ~/.claude/log-skill-usage.sh"
          }
        ]
      },
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "~/.claude/hooks/rtk-rewrite.sh"
          }
        ]
      }
    ]
  }
}

MCP servers (1)

serversourceest. tokens
Chrome DevTools MCP · "chrome-devtools" npm 9.0k

Skills (15)

Subagents (2)

symlink_react-best-practices-reviewer—
symlink_refactoring-specialist—

Hooks (6)

eventmatcherruns
SessionStart^(startup|resume|clear|compact|fork)$bash '~/.claude/hooks/herdr-agent-state.sh' session
SubagentStop*bash ~/.claude/log-subagent.sh
PreToolUseEdit|Write|MultiEditbash ~/.claude/hooks/block-outside-worktree.sh
PreToolUseSkillbash ~/.claude/log-skill-usage.sh
PreToolUseBash~/.claude/hooks/rtk-rewrite.sh
PostToolUseEdit|Writeecho '[React Best Practices Review Required] .ts/.tsx ファイルが変更されました。react-best-practices-reviewer サブエージェントを起動して、変更されたコードが React 公式ドキュメントのベストプラクティスに準拠しているかレビューしてください。'

Plugins (9)

gopls-lsp@claude-plugins-officialtypescript-lsp@claude-plugins-officialclaude-md-management@claude-plugins-officialsuperpowers@claude-plugins-officialfrontend-design@claude-plugins-officialcodex@openai-codexponytail@ponytailsecurity-guidance@claude-plugins-officialeli5@claude-community

Permissions

deny (94)
Bash(rm -rf /)
Bash(rm -rf ~)
Bash(rm -rf /*)
Bash(sudo rm *)
Bash(sudo *)
Bash(dd *)
Bash(> /dev/*)
Bash(>> /dev/*)
Bash(chmod 777 /*)
Bash(chown root:*)
Bash(curl * | sh)
Bash(curl * | bash)
Bash(wget * | sh)
Bash(wget * | bash)
Bash(rm -rf .git)
Bash(git push --force-with-lease origin main)
Bash(git push -f origin main)
Edit(/etc/**)
Edit(/usr/**)
Edit(/var/**)
Edit(/opt/**)
Edit(/bin/**)
Edit(/sbin/**)
Edit(/lib/**)
Edit(~/.ssh/id_*)
Edit(~/.ssh/*_rsa)
Edit(~/.ssh/*_ecdsa)
Edit(~/.ssh/*_ed25519)
Edit(/etc/passwd)
Edit(/etc/shadow)
Edit(/etc/sudoers)
Read(~/.aws/**)
Read(~/.ssh/**)
Read(~/.config/gh/**)
Read(~/.gnupg/**)
Read(~/.kube/**)
Read(~/.docker/config.json)
Read(~/.netrc)
Read(~/.pgpass)
Read(~/.npmrc)
Read(**/.env)
Read(**/.env.*)
Read(**/id_rsa)
Read(**/id_ed25519)
Read(**/id_ecdsa)
Read(**/*credentials*)
Bash(cat ~/.aws/**)
Bash(cat ~/.ssh/**)
Bash(cat ~/.config/gh/**)
Bash(cat ~/.gnupg/**)
Bash(cat ~/.netrc)
Bash(cat ~/.pgpass)
Bash(cat ~/.npmrc)
Bash(head ~/.aws/**)
Bash(head ~/.ssh/**)
Bash(head ~/.config/gh/**)
Bash(tail ~/.aws/**)
Bash(tail ~/.ssh/**)
Bash(tail ~/.config/gh/**)
Bash(less ~/.aws/**)
ask (0)
—
allow (101)
Read(~/**)
Bash(go *)
Bash(xargs go:*)
Bash(gofmt *)
Bash(xargs gofmt:*)
Bash(golint *)
Bash(xargs golint:*)
Bash(golangci-lint *)
Bash(xargs golangci-lint:*)
Bash(make)
Bash(make *)
Bash(xargs make:*)
Bash(git diff)
Bash(git diff *)
Bash(git show)
Bash(git show *)
Bash(git log)
Bash(git log *)
Bash(git status)
Bash(git status *)
Bash(git branch)
Bash(git branch *)
Bash(xargs git:*)
Bash(gh *)
Bash(xargs gh:*)
Bash(npm *)
Bash(xargs npm:*)
Bash(yarn)
Bash(yarn *)
Bash(xargs yarn:*)
Bash(pnpm *)
Bash(xargs pnpm:*)
Bash(bun *)
Bash(xargs bun:*)
Bash(ls)
Bash(ls *)
Bash(xargs ls:*)
Bash(cat *)
Bash(xargs cat:*)
Bash(bat *)
Bash(xargs bat:*)
Bash(grep *)
Bash(xargs grep:*)
Bash(rg *)
Bash(xargs rg:*)
Bash(find *)
Bash(xargs find:*)
Bash(fd *)
Bash(xargs fd:*)
Bash(mkdir *)
Bash(xargs mkdir:*)
Bash(touch *)
Bash(xargs touch:*)
Bash(cp *)
Bash(xargs cp:*)
Bash(echo *)
Bash(xargs echo:*)
Bash(which *)
Bash(xargs which:*)
Bash(pwd)

Similar rigs

copied ✓