claudegoodies
Hook

ruflo hooks

From ruvnet

Hooks on PreToolUse, PostToolUse, UserPromptSubmit, SessionStart, Stop, Notification

Facts

Repository
ruvnet/ruflo
Status
Actively maintained
Last commit

Source preview

The instructions Claude Code reads when this hook runs.

{
  "PreToolUse": [
    {
      "matcher": "^(Write|Edit|MultiEdit)$",
      "hooks": [
        {
          "type": "command",
          "command": "[ -n \"$TOOL_INPUT_file_path\" ] && npx @claude-flow/cli@latest hooks pre-edit --file \"$TOOL_INPUT_file_path\" 2>/dev/null || true",
          "timeout": 5000,
          "continueOnError": true
        }
      ]
    },
    {
      "matcher": "^Bash$",
      "hooks": [
        {
          "type": "command",
          "command": "[ -n \"$TOOL_INPUT_command\" ] && npx @claude-flow/cli@latest hooks pre-command --command \"$TOOL_INPUT_command\" 2>/dev/null || true",
          "timeout": 5000,
          "continueOnError": true
        }
      ]
    },
    {
      "matcher": "^Task$",
      "hooks": [
        {
          "type": "command",
          "command": "[ -n \"$TOOL_INPUT_description\" ] && npx @claude-flow/cli@latest hooks pre-task --task-id \"task-$(date +%s)\" --description \"$(echo \"$TOOL_INPUT_description\" | head -c 200)\" 2>/dev/null || true",
          "timeout": 5000,
          "continueOnError": true
        }
      ]
    }
  ],
  "PostToolUse": [
    {
      "matcher": "^(Write|Edit|MultiEdit)$",
      "hooks": [
        {
          "type": "command",
          "command": "[ -n \"$TOOL_INPUT_file_path\" ] && npx @claude-flow/cli@latest hooks post-edit --file \"$TOOL_INPUT_file_path\" --success \"${TOOL_SUCCESS:-true}\
View full source on GitHub →

Other hooks