youhei-ushio/dotclaude-public
Claude Code user-level dotfiles template
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
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)
| event | matcher | runs |
|---|---|---|
| PreToolUse | Bash | python3 ~/.claude/hooks/skill-enforcer.py |
| PreToolUse | Bash | python3 ~/.claude/hooks/serena-enforcer.py |
| PreToolUse | Bash | python3 ~/.claude/hooks/git-push-merged-pr-check.py |
| PreToolUse | Bash | python3 ~/.claude/hooks/sail-env-inline-block.py |
| PreToolUse | Bash | python3 ~/.claude/hooks/destructive-guard.py |
| PreToolUse | Write | python3 ~/.claude/hooks/sql-schema-check.py |
| PostToolUse | Bash | python3 ~/.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 |
| SessionStart | startup|clear | sh ~/.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
cocoindex-io/cocoindex
Incremental engine for long horizon agents 🌟 Star if you like it!
Automator 7.3k tok ·
FailproofAI/failproofai
Observability and enforcement for AI agent harnesses. Capture every run and runtime reliability with policy enforcement.
Automator 22.9k tok ·
caliber-ai-org/ai-setup
Continuously sync your AI setups with one command. Codebase tailor suited agent skills, MCPs and config files for Claude Code, Cursor, and Codex.
Automator 3.2k tok ·
asklokesh/loki-mode
Autonomous software factory. Give it a GitHub issue, a spec or a one-line task; get back a pull request with a signed receipt anyone can re-check offline. Runs on your machine with your own keys: Claude, Codex, OpenCode.
Automator 8.2k tok ·