Skip to content

Instantly share code, notes, and snippets.

@sergii
Forked from obie/settings.json
Created September 20, 2025 02:37
Show Gist options
  • Save sergii/3b0a7d3e9bbbc05d937214a25209d882 to your computer and use it in GitHub Desktop.
Save sergii/3b0a7d3e9bbbc05d937214a25209d882 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