Skip to content

Instantly share code, notes, and snippets.

@obie
Created August 1, 2025 22:45
Show Gist options
  • Save obie/c65557e0ea71a9540d238fb83cb5205e to your computer and use it in GitHub Desktop.
Save obie/c65557e0ea71a9540d238fb83cb5205e to your computer and use it in GitHub Desktop.
Run Rubocop with autocorrect everytime Claude Code does an update or write, and play a sound so you know it did it
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"model": "opus",
"hooks": {
"PostToolUse": [
{
"matcher": "Update|Write",
"hooks": [
{
"type": "command",
"command": "rubocop -A && afplay /System/Library/Sounds/Purr.aiff"
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment