此内容尚未提供您的语言版本,正在以英文显示。
Notification Hooks
插件 活跃Notification Hooks - Event-driven automation hooks
目的
To enable automated event-driven notifications within Claude Code, informing users about important events, errors, or task completions.
功能
- Event-driven automation hooks
- Notifications for Slack, Telegram, and Discord
- Hooks for various events (PreToolUse, PostToolUse, Stop)
- Customizable via environment variables
使用场景
- Receive Slack notifications for long-running operations.
- Get Telegram alerts when errors occur during tool execution.
- Be notified via Discord when a Claude Code session stops.
- Enhance security awareness with pre-command execution notifications.
非目标
- Directly processing or analyzing notification content.
- Providing advanced workflow orchestration beyond simple event triggering.
- Acting as a general-purpose messaging platform.
工作流
- User installs the plugin.
- User configures required environment variables for desired notification services.
- Claude Code triggers an event (e.g., tool execution, error, session stop).
- The relevant hook script executes.
- The hook sends a notification to the configured service.
实践
- Event-driven automation
- Notification management
- Security awareness
先决条件
- Claude Code environment
- Configured environment variables for notification services (e.g., TELEGRAM_BOT_TOKEN, DISCORD_WEBHOOK_URL)
Practical Utility
- info:Unique selling propositionThe plugin provides a set of pre-configured hooks for common notification services, offering convenience over direct API implementation but is a thin wrapper around these services.
Documentation
- warning:Configuration & parameter referenceWhile some environment variables are listed for notification services, the documentation does not explicitly state default values or precedence order for configurations.
Security
- warning:Secret ManagementSecrets like API tokens and webhook URLs are expected to be provided via environment variables, but the plugin's documentation does not explicitly mention how these secrets are handled or if they are stored securely (e.g., in userConfig with `sensitive: true`).
- warning:Data ExfiltrationSome hooks require credentials (API tokens, webhook URLs) to be sent to third-party services (Slack, Telegram, Discord), and the documentation does not specify if these are handled securely or if there's an opt-out mechanism.
- warning:Hook securityWhile the hooks are primarily for notifications, the broad wildcard matchers ('*') could potentially lead to unexpected executions if not carefully managed, and secrets are handled via environment variables without explicit guidance on secure storage.
- warning:Keychain-stored secretsThe plugin uses environment variables for secrets like API keys and webhook URLs, but it does not explicitly route these through `userConfig` with `sensitive: true`, which is the recommended way to handle secrets for keychain storage.
Code Execution
- warning:ValidationThe hook scripts use environment variables for configuration but do not demonstrate explicit schema validation for these parameters, potentially leading to unexpected behavior if variables are malformed or missing.
- warning:Error HandlingThe bash scripts for hooks do not show explicit error handling for API calls or environment variable lookups, meaning errors might be opaque or unhandled.
- info:LoggingThe hooks do not appear to implement local audit logging for their actions; notifications are sent externally.
Compliance
- warning:GDPRThe hooks send notification data to third-party services (Slack, Discord, Telegram) which may involve personal data if such data is included in the tool's output or context. Sanitization of this data before sending is not explicitly documented.
- warning:Hook privacyHooks send data to external notification services. While this is the intended functionality, the documentation could be clearer about what data is sent and how it is protected, especially concerning credentials.
Errors
- warning:Actionable error messagesThe error handling in the bash scripts is minimal; errors from external API calls or missing environment variables may not be user-friendly or provide clear remediation steps.
Invocation
- warning:Hook matcher tightnessSeveral hooks use a wildcard matcher ('*') for their event type or tool, which is too broad and could lead to unintended hook executions.
安装
请先添加 Marketplace
/plugin marketplace add davepoon/buildwithclaude/plugin install hooks-notifications@buildwithclaude质量评分
77 /100
1 day ago 分析
类似扩展
Cc Safe Setup
99734 个用于 Claude Code 的安全钩子 — 在自主 AI 编码会话期间防止文件删除、凭证泄露、git 灾难和令牌浪费
插件
yurukusa
Claude Code Hooks
99为 Claude Code 的自动化运行提供生产环境安全钩子。包括上下文监控、语法检查、分支保护、活动日志记录等。
插件
yurukusa
Tdd
99TDD workflow enforcement with auto-test hook
插件
luiseiman
Claude Recap
99为 Claude Code 提供基于主题的自动记忆——跨会话或压缩时绝不会丢失上下文。
插件
hatawong
Hooks Safety
99Essential safety hooks to prevent destructive operations in Claude Code. From cc-safe-setup (655+ hooks).
插件
davepoon
Hooks Automation
99Automation Hooks - Event-driven automation hooks
插件
davepoon