~ / rigs / youhei-ushio / dotclaude-public

youhei-ushio/dotclaude-public

Claude Code user-level dotfiles template

↗ GitHub ★ 1 MIT updated 23d ago personal setup Claude Code
share on X
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
CONTEXT TAX · EVERY TURN
~508 tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details

Copy this rig

# review before running: this installs third-party code
$ npx degit youhei-ushio/dotclaude-public/hooks ./rig-dotclaude-public/hooks

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.

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "python3 ~/.claude/hooks/skill-enforcer.py"
          },
          {
            "type": "command",
            "command": "python3 ~/.claude/hooks/serena-enforcer.py"
          },
          {
            "type": "command",
            "command": "python3 ~/.claude/hooks/git-push-merged-pr-check.py"
          },
          {
            "type": "command",
            "command": "python3 ~/.claude/hooks/sail-env-inline-block.py"
          },
          {
            "type": "command",
            "command": "python3 ~/.claude/hooks/destructive-guard.py"
          }
        ]
      },
      {
        "matcher": "Write",
        "hooks": [
          {
            "type": "command",
            "command": "python3 ~/.claude/hooks/sql-schema-check.py"
          }
        ]
      }
    ]
  }
}

Hooks (16)

eventmatcherruns
PreToolUseBashpython3 ~/.claude/hooks/skill-enforcer.py
PreToolUseBashpython3 ~/.claude/hooks/serena-enforcer.py
PreToolUseBashpython3 ~/.claude/hooks/git-push-merged-pr-check.py
PreToolUseBashpython3 ~/.claude/hooks/sail-env-inline-block.py
PreToolUseBashpython3 ~/.claude/hooks/destructive-guard.py
PreToolUseWritepython3 ~/.claude/hooks/sql-schema-check.py
PostToolUseBashpython3 ~/.claude/hooks/sql-schema-record.py
PostToolUse*sh ~/.claude/hooks/tmux-pane-awaiting.sh
Notification*sh ~/.claude/hooks/notify-sound.sh
Stop*sh ~/.claude/hooks/tmux-pane-awaiting.sh
Stop*sh ~/.claude/hooks/notify-sound.sh
PermissionRequest*python3 ~/.claude/hooks/permission-request-logger.py
PermissionRequest*sh ~/.claude/hooks/tmux-pane-awaiting.sh
PermissionRequest*sh ~/.claude/hooks/notify-sound.sh
UserPromptSubmit*sh ~/.claude/hooks/tmux-pane-awaiting.sh
SessionStartstartup|clearsh ~/.claude/hooks/tmux-pane-awaiting.sh

Permissions

deny (0)
—
ask (0)
—
allow (27)
Bash(~/.claude/hooks/run-drawio-export.sh:*)
Bash(~/.claude/skills/edit-issue/fetch-body.sh *)
Skill(create-issue)
Skill(edit-issue)
Skill(create-pr)
Skill(pdf)
Skill(create-manual)
Skill(resolve-issue)
Skill(ui-approval)
Skill(livewire-v3-syntax)
Skill(playwright-error-detection)
Skill(debug-bar-investigation)
Skill(tailwind-enforcement)
Skill(commit-workflow)
Skill(affected-area-testing)
Skill(route-management)
Skill(pre-implementation-research)
Skill(documentation-standards)
Skill(parallel-setup)
Skill(review-pr)
Skill(handoff)
Skill(add-hook)
Skill(systematic-debugging)
Skill(tdd)
Skill(large-feature-execution)
Skill(writing-skills)
Skill(questionnaire)

Similar rigs

copied ✓