Event Hooks

sdlc-toolkit

1 event · 1 hook

From sdlc-toolkit
Install
1
Run in your terminal
$
npx claudepluginhub youarenext/sdlc-toolkit --plugin sdlc-toolkit
Risk Indicators
Modifies files
Source

Defined in hooks/hooks.json

Configuration
{
  "PreToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "branch=$(cd $CLAUDE_PROJECT_DIR && git branch --show-current 2>/dev/null); if [ \"$branch\" = \"main\" ] || [ \"$branch\" = \"production\" ]; then echo '{\"decision\":\"block\",\"reason\":\"Cannot edit on protected branch. Create a feature branch first.\"}'; fi"
        }
      ],
      "matcher": "Write|Edit"
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": false,
    "matchAllTools": false,
    "touchesFileWrites": true
  },
  "typeStats": {
    "command": 1
  },
  "eventStats": {
    "PreToolUse": 1
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 0,
    "projectScripts": 1
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 1
  }
}
Stats
Stars0
Forks0
Last CommitFeb 23, 2026