Need a customized project? We build it to your exact requirements.Contact us on WhatsApp

Auto Git Add

Hook Git Workflow 16 lines

Automatically stage modified files with git add after editing. Helps maintain a clean git workflow by staging changes as they're made.

auto-git-add.jsonPreview
{
  "description": "Automatically stage modified files with git add after editing. Helps maintain a clean git workflow by staging changes as they're made.",
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|MultiEdit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "if [[ -n \"$CLAUDE_TOOL_FILE_PATH\" ]] && git rev-parse --git-dir >/dev/null 2>&1; then git add …

You are seeing the first 50 words. Purchase the Claude Skills Pack to see the full hook and download it.

Buy the pack · $19.98

More in git-workflow