Add AI hooks

These should help Claude Code and Cursor agents run more effectively.
This commit is contained in:
Mike McQuaid committed 2025-10-09 15:08:40 +01:00
1 parent 250010a093
commit f560d47b4e
3 files changed
+55

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
{
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "brew style --changed --fix"
},
{
"type": "command",
"command": "brew typecheck"
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "brew tests --changed",
"timeout": 360
}
]
}
]
}
}
+18
View File
@@ -0,0 +1,18 @@
{
"version": 1,
"hooks": {
"afterFileEdit": [
{
"command": "brew style --changed --fix"
},
{
"command": "brew typecheck"
}
],
"stop": [
{
"command": "brew tests --changed"
}
]
}
}
+7
View File
@@ -201,3 +201,10 @@
!/.sublime
/.sublime/homebrew.sublime-workspace
!/.vscode
# Unignore AI configuration
!/.cursor
!/.claude
# Ignore local AI configuration
/.claude/settings.local.json