Về danh sách Hooks

Show notification before any Bash command execution for security awareness. This hook displays a simple echo message '🔔 About to run bash command...' before Claude executes any bash command, giving you visibility into when system commands are about to run. Useful for monitoring and auditing command execution.

Lệnh cài

Chạy trong terminal, tại thư mục gốc dự án
npx claude-code-templates@latest --hook pre-tool/notify-before-bash

Nội dung tệp nguồn

Tệp gốc
{
  "description": "Show notification before any Bash command execution for security awareness. This hook displays a simple echo message '🔔 About to run bash command...' before Claude executes any bash command, giving you visibility into when system commands are about to run. Useful for monitoring and auditing command execution.",
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "echo '🔔 About to run bash command...'"
          }
        ]
      }
    ]
  }
}

Hooks khác trong Trước khi gọi công cụ

Danh mục 1.877 component lấy từ dự án mã nguồn mở claude-code-templates (giấy phép MIT). Bản quyền từng component thuộc về tác giả của nó; trang này chỉ làm phần duyệt, tìm và dựng lệnh cài bằng tiếng Việt.

GitHubVề đầu kho