Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:28:27 +08:00
commit 277c92829e
12 changed files with 317 additions and 0 deletions

24
hooks/hooks.json Normal file
View File

@@ -0,0 +1,24 @@
{
"PreToolUse": [
{
"name": "lint-before-commit",
"command": "echo 'Running pre-commit linting validation...'",
"description": "Validate linting before Bash commits",
"match": {
"tool": "Bash",
"pattern": "git commit"
}
}
],
"PostToolUse": [
{
"name": "verify-no-claude-attribution",
"command": "git log -1 --pretty=%B | grep -q 'Claude Code' && echo 'ERROR: Claude attribution detected in commit message!' || echo 'Commit message looks good'",
"description": "Ensure no Claude Code attribution in commits",
"match": {
"tool": "Bash",
"pattern": "git commit"
}
}
]
}