Stats
Actions
Tags
From java-quality
Runs a git workflow guard before Bash tool execution to enforce policy, checks dependency versions after file edits, and performs a self-check on stop. Executes bash scripts with file access.
3 events · 3 hooks
Safety signals detected in this hook configuration
Where this hook configuration is defined
Defined in hooks/hooks.json
Event handlers and matchers — expand Raw Configuration for the full JSON
echo '[java-quality] Session ending. Reminder: run mvn test or ./gradlew test to verify all tests pass before considering this task complete.'Bashecho "$CLAUDE_TOOL_INPUT" | python3 -c "
import sys, json, re
try:
data = json.load(sys.stdin)
cmd = data.get('command', '')
dangerous = [
(r'git push.*--force.*(main|master)', 'Force push to main/master branch'),
(r'git reset --hard', 'Hard reset (discards uncommitted changes)'),
(r'mvn.*-Dmaven.test.skip=true', 'Skipping tests in Maven build'),
(r'./gradlew.*-x test', 'Skipping tests in Gradle build'),
]
for pattern, msg in dangerous:
if re.search(pattern, cmd):
print(f'[java-quality] WARNING: {msg}: {cmd}', flush=True)
except: pass
"Write|Editecho '[java-quality] Java file modified. Consider running /java-security-check or asking the java-security-reviewer agent to check for OWASP vulnerabilities.'npx claudepluginhub ducpm2303/claude-java-plugins --plugin java-quality