summaryrefslogtreecommitdiff
path: root/plugins/claude-security/hooks/hooks.json
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/claude-security/hooks/hooks.json')
-rw-r--r--plugins/claude-security/hooks/hooks.json16
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/claude-security/hooks/hooks.json b/plugins/claude-security/hooks/hooks.json
new file mode 100644
index 00000000..9608c949
--- /dev/null
+++ b/plugins/claude-security/hooks/hooks.json
@@ -0,0 +1,16 @@
+{
+ "description": "A display-only banner: on the /claude-security menu it prints the Claude Security banner as a systemMessage. It fires only on UserPromptExpansion for that slash command. It is a sensor: it emits a message and never returns a permission decision.",
+ "hooks": {
+ "UserPromptExpansion": [
+ {
+ "matcher": "^claude-security:claude-security$",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "sh \"${CLAUDE_PLUGIN_ROOT}/hooks/banner_hook.sh\""
+ }
+ ]
+ }
+ ]
+ }
+}