Install
1
Install the plugin$
npx claudepluginhub diegouis/provectus-marketplace --plugin proagent-aws-aiWant 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 'aws.*delete|aws.*remove|aws.*terminate|cdk destroy'; then echo '[proagent-aws-ai] Destructive AWS operation detected. Verify this is intentional and targeting the correct environment.' >&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 'cdk deploy|cdk synth|aws cloudformation|terraform apply'; then echo '[proagent-aws-ai] Infrastructure deployment detected. Ensure IAM roles follow least privilege, VPC is configured, resource tags are applied, and Guardrails are enabled.'; 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 'cdk deploy|aws cloudformation create|terraform apply'; then echo '[proagent-aws-ai] Infrastructure deployed. Verify CloudWatch dashboards, AgentCore Observability, and cost allocation tags are configured.'; 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 '\\.(ts|py|yaml|yml|json)$' && echo \"$fp\" | grep -qiE 'cdk|stack|template|bedrock|agent|mcp'; then echo '[proagent-aws-ai] AWS AI infrastructure code written. Verify Well-Architected compliance: IAM least privilege, VPC isolation, Guardrails, observability, and cost tags.'; 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