Event Hooks

alfred-dev

6 events · 24 hooks

From alfred-dev
Install
1
Run in your terminal
$
npx claudepluginhub 686f6c61/alfred-dev --plugin alfred-dev
Risk Indicators
Executes bash commandsModifies files
Source

Defined in hooks/hooks.json

Configuration
{
  "Stop": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py || true",
          "timeout": 10
        },
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/stop-hook.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/stop-hook.py || true",
          "timeout": 15
        }
      ]
    }
  ],
  "PreCompact": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py || true",
          "timeout": 10
        },
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/memory-compact.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/memory-compact.py || true",
          "timeout": 15
        }
      ]
    }
  ],
  "PreToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/prefetch-finish-guard.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/prefetch-finish-guard.py || true",
          "timeout": 5
        }
      ],
      "matcher": "Read|Write|Edit|Glob|Grep"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/secret-guard.sh && ${CLAUDE_PLUGIN_ROOT}/hooks/secret-guard.sh || true",
          "timeout": 5
        }
      ],
      "matcher": "Write|Edit"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/dangerous-command-guard.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/dangerous-command-guard.py || true",
          "timeout": 5
        }
      ],
      "matcher": "Bash"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/sensitive-read-guard.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/sensitive-read-guard.py || true",
          "timeout": 5
        }
      ],
      "matcher": "Read"
    }
  ],
  "PostToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py || true",
          "timeout": 10
        }
      ],
      "matcher": "Bash"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/quality-gate.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/quality-gate.py || true",
          "timeout": 10
        }
      ],
      "matcher": "Bash"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/evidence-guard.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/evidence-guard.py || true",
          "timeout": 10
        }
      ],
      "matcher": "Bash"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py || true",
          "timeout": 10
        }
      ],
      "matcher": "Write|Edit"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/dependency-watch.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/dependency-watch.py || true",
          "timeout": 10
        }
      ],
      "matcher": "Write|Edit"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/spelling-guard.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/spelling-guard.py || true",
          "timeout": 10
        }
      ],
      "matcher": "Write|Edit"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py || true",
          "timeout": 10
        }
      ],
      "matcher": "Read"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py || true",
          "timeout": 10
        }
      ],
      "matcher": "Glob"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py || true",
          "timeout": 10
        }
      ],
      "matcher": "Grep"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py || true",
          "timeout": 10
        }
      ],
      "matcher": "Agent"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py || true",
          "timeout": 10
        }
      ],
      "matcher": "WebFetch"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py || true",
          "timeout": 10
        }
      ],
      "matcher": "WebSearch"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py || true",
          "timeout": 10
        }
      ],
      "matcher": "NotebookEdit"
    }
  ],
  "SessionStart": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/session-bootstrap.sh && ${CLAUDE_PLUGIN_ROOT}/hooks/session-bootstrap.sh || true"
        },
        {
          "type": "command",
          "async": true,
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/session-start.sh && ${CLAUDE_PLUGIN_ROOT}/hooks/session-start.sh || true"
        }
      ],
      "matcher": "startup|resume|clear|compact"
    }
  ],
  "UserPromptSubmit": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "test -f ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py && python3 ${CLAUDE_PLUGIN_ROOT}/hooks/activity-capture.py || true",
          "timeout": 10
        }
      ]
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": true,
    "matchAllTools": false,
    "touchesFileWrites": true
  },
  "typeStats": {
    "command": 24
  },
  "eventStats": {
    "Stop": 2,
    "PreCompact": 2,
    "PreToolUse": 4,
    "PostToolUse": 13,
    "SessionStart": 2,
    "UserPromptSubmit": 1
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 24,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 2
  }
}
Stats
Stars37
Forks5
Last CommitMar 22, 2026