Logo
Explore Help
Register Sign In
zhanj/claude-plugins-official
1
0
Fork 0
You've already forked claude-plugins-official
mirror of https://github.com/anthropics/claude-plugins-official.git synced 2026-05-21 22:42:40 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
b58bdbf5512a8c4f03c24057fe7bd756ce4db962
claude-plugins-official/plugins/security-guidance/hooks/hooks.json

17 lines
386 B
JSON
Raw Normal View History

creating intital scaffolding for claude code plugins
2025-11-20 11:47:24 -08:00
{
"description": "Security reminder hook that warns about potential security issues when editing files",
"hooks": {
"PreToolUse": [
{
"hooks": [
{
"type": "command",
fix: quote \${CLAUDE_PLUGIN_ROOT} in hookify and security-guidance hook commands Paths containing spaces (common on Windows, e.g. C:\Users\Some User\...) cause shell word-splitting when CLAUDE_PLUGIN_ROOT is unquoted, resulting in hooks erroring with "No such file or directory" on every tool call. Wraps the path in double quotes for all five affected hook commands. Fixes the pattern reported in issue #57946. Closes the fix surfaced in PR #1921. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-19 15:37:56 -07:00
"command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/security_reminder_hook.py\""
creating intital scaffolding for claude code plugins
2025-11-20 11:47:24 -08:00
}
],
"matcher": "Edit|Write|MultiEdit"
}
]
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 29ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API