Install
1
Install the plugin$
npx claudepluginhub diegouis/provectus-marketplace --plugin proagent-dataWant 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 'DROP TABLE|DROP SCHEMA|TRUNCATE|DELETE FROM.*[^W][^H][^E][^R][^E]'; then echo '[proagent-data] WARNING: Destructive SQL operation detected (DROP/TRUNCATE/DELETE). Confirm this is intentional and provide a rollback plan before proceeding.'; 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 -qE 'dbt run|dbt build|dbt seed|alembic upgrade|alembic downgrade'; then echo '[proagent-data] Database operation detected. Verify: (1) schema naming conventions (stg_/int_/dim_/fct_), (2) migration has rollback, (3) quality tests are included.'; 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 -qE 'dbt run|dbt build|psql|snowsql|bq query'; then echo '[proagent-data] Query/model execution completed. Check for long-running operations and verify data quality with dbt test or quality checks.'; 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 -qE '\\.sql$'; then echo '[proagent-data] SQL file written. Verify: (1) no SELECT *, (2) explicit JOIN syntax, (3) parameterized queries for user input, (4) CTEs for readability.'; 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