Event Hooks

hook-git-auto-backup

2 events · 2 hooks

From hook-git-auto-backup
Install
1
Run in your terminal
$
npx claudepluginhub Dev-GOM/claude-code-marketplace --plugin hook-git-auto-backup
Source

Defined in hooks/hooks.json

Configuration
{
  "Stop": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/backup.js",
          "timeout": 10000,
          "description": "Creates timestamped git commit with all changes",
          "continueOnError": false
        }
      ],
      "enabled": true,
      "priority": 100,
      "description": "Auto-commit changes when session ends"
    }
  ],
  "SessionStart": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/init-config.js",
          "timeout": 5000,
          "description": "Creates default configuration file if it doesn't exist",
          "suppressOutput": true,
          "continueOnError": true
        }
      ],
      "enabled": true,
      "priority": 100,
      "description": "Initialize plugin configuration at session start"
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": false,
    "matchAllTools": false,
    "touchesFileWrites": false
  },
  "typeStats": {
    "command": 2
  },
  "eventStats": {
    "Stop": 1,
    "SessionStart": 1
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 2,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 0
  }
}
Stats
Parent Repo Stars56
Parent Repo Forks0
Last CommitOct 20, 2025