mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-30 13:43:26 +08:00
15 lines
589 B
Plaintext
15 lines
589 B
Plaintext
{
|
|
"name": "git-push-review",
|
|
"version": "1.0.0",
|
|
"enabled": true,
|
|
"description": "Reviews shell commands before execution to catch potentially destructive git operations",
|
|
"when": {
|
|
"type": "preToolUse",
|
|
"toolTypes": ["shell"]
|
|
},
|
|
"then": {
|
|
"type": "askAgent",
|
|
"prompt": "A shell command is about to be executed. If this is a git push or other potentially destructive operation, verify that: 1) All tests pass, 2) Code has been reviewed, 3) Commit messages are clear, 4) The target branch is correct. If it's a routine command, proceed without comment."
|
|
}
|
|
}
|