{
  "hooks": {
    "UserPromptSubmit": [
      {
        "matcher": ".*",
        "hooks": [
          {
            "type": "command",
            "command": "python3 hooks/security/secret-detection.py",
            "timeout": 10
          },
          {
            "type": "command",
            "command": "hooks/ux/context-loader.sh",
            "timeout": 5
          }
        ]
      }
    ],
    "PreToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "python3 hooks/security/file-protection.py",
            "timeout": 5
          },
          {
            "type": "command",
            "command": "python3 hooks/security/secret-file-scanner.py",
            "timeout": 10
          }
        ]
      },
      {
        "matcher": "Grep",
        "hooks": [
          {
            "type": "command",
            "command": "hooks/ux/search-hint.sh",
            "timeout": 5
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "python3 hooks/quality/frontmatter-validator.py",
            "timeout": 10
          },
          {
            "type": "command",
            "command": "python3 hooks/quality/tag-taxonomy-enforcer.py",
            "timeout": 10
          },
          {
            "type": "command",
            "command": "python3 hooks/quality/wiki-link-checker.py",
            "timeout": 15
          },
          {
            "type": "command",
            "command": "python3 hooks/quality/filename-convention-checker.py",
            "timeout": 10
          },
          {
            "type": "command",
            "command": "python3 hooks/ux/code-formatter.py",
            "timeout": 10
          }
        ]
      }
    ],
    "PermissionRequest": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "python3 hooks/safety/bash-safety.py",
            "timeout": 5
          }
        ]
      }
    ],
    "Notification": [
      {
        "matcher": "Stop",
        "hooks": [
          {
            "type": "command",
            "command": "hooks/notification/desktop-notify.sh"
          }
        ]
      }
    ]
  }
}
