Event Hooks
Community

proagent-ml-ai

2 events · 4 hooks

Install
1
Install the plugin
$
npx claudepluginhub diegouis/provectus-marketplace --plugin proagent-ml-ai

Want just this hook?

Then install: npx claudepluginhub u/[userId]/[slug]

Risk Indicators
Executes bash commandsModifies files
Source

Defined in hooks/hooks.json

Configuration
{
  "PreToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "which jq >/dev/null 2>&1 || exit 0; jq -r '.tool_input.command // empty' | { read cmd; if echo \"$cmd\" | grep -qiE 'rm\\s+-rf\\s+models/|rm\\s+-rf\\s+mlruns/|rm\\s+-rf\\s+data/'; then echo '[proagent-ml-ai] Destructive operation on ML artifacts detected. Verify this is intentional.' >&2; exit 2; fi; }",
          "timeout": 10
        },
        {
          "type": "command",
          "command": "which jq >/dev/null 2>&1 || exit 0; jq -r '.tool_input.command // empty' | { read cmd; if echo \"$cmd\" | grep -qiE 'python.*train|mlflow run|python.*-m.*train'; then echo '[proagent-ml-ai] Training command detected. Ensure random seeds are set, experiment tracking is configured, and data splits prevent leakage.'; fi; }",
          "timeout": 10
        }
      ],
      "matcher": "Bash"
    }
  ],
  "PostToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "which jq >/dev/null 2>&1 || exit 0; jq -r '.tool_input.command // empty' | { read cmd; if echo \"$cmd\" | grep -qiE 'python.*train|mlflow run|python.*evaluate'; then echo '[proagent-ml-ai] Training/evaluation completed. Verify experiment metrics are logged and model artifacts are saved.'; fi; }",
          "timeout": 10
        }
      ],
      "matcher": "Bash"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "which jq >/dev/null 2>&1 || exit 0; jq -r '.tool_input.file_path // empty' | { read fp; if echo \"$fp\" | grep -qiE '\\.(py|ipynb)$'; then echo '[proagent-ml-ai] ML code written. Verify random seeds, data leakage prevention, and experiment tracking are included.'; fi; }",
          "timeout": 10
        }
      ],
      "matcher": "Write"
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": true,
    "matchAllTools": false,
    "touchesFileWrites": true
  },
  "typeStats": {
    "command": 4
  },
  "eventStats": {
    "PreToolUse": 2,
    "PostToolUse": 2
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 0,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 0
  }
}
Stats
Stars2
Forks1
Last CommitFeb 24, 2026

Similar Hooks