~ / rigs / Legendtomo / dotfiles

Legendtomo/dotfiles

Personal dotfiles for Codex and Claude Code

↗ GitHub ★ 0 no license updated 2mo ago personal setup Claude CodeCodex
share on X
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
CONTEXT TAX · EVERY TURN
~130 tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
4/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · Sandbox or ask-first rules · details

Copy this rig

# review before running: this installs third-party code
$ npx degit Legendtomo/dotfiles/.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 Legendtomo/dotfiles/.agents/skills/code-change-loop .claude/skills/code-change-loop
$ curl -fsSL --create-dirs -o .claude/agents/code-reviewer.md https://raw.githubusercontent.com/Legendtomo/dotfiles/main/.claude/agents/code-reviewer.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(git commit:*)",
      "Bash(git push:*)",
      "Bash(git reset --hard:*)",
      "Bash(git rebase:*)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "python3 \"$HOME/.claude/hooks/block_git_commit.py\" --format claude"
          }
        ]
      }
    ]
  }
}

Skills (1)

Subagents (1)

code-reviewer
model: inherit
実装済みの差分を読み取り専用でレビューする。正しさ・エッジケース・セキュリティ・可読性・テスト網羅・要件充足・スコープ逸脱を点検し、指摘を重大/推奨/任意に分類する。code-change-loop のレビュー工程や、独立したコードレビューが欲しいときに使う。

Hooks (1)

eventmatcherruns
PreToolUseBashpython3 "$HOME/.claude/hooks/block_git_commit.py" --format claude

Permissions

deny (4)
Bash(git commit:*)
Bash(git push:*)
Bash(git reset --hard:*)
Bash(git rebase:*)
ask (0)
—
allow (0)
—

Similar rigs

copied ✓