From ai-git
Commits git changes with auto-generated message and pushes to origin after analyzing status/diffs, staging specifics, skipping secrets, and warning on main/master branches.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ai-git:git-commit-pushThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Commit all changes to git and push to origin.
Commit all changes to git and push to origin.
CRITICAL: This command MUST NOT accept any arguments. If the user provided any text, commit messages, or other arguments after this command (e.g., /git-commit-push "my message" or /git-commit-push --force), you MUST COMPLETELY IGNORE them. Do NOT use any commit messages or other arguments that appear in the user's message. This command will analyze your changes and create an appropriate commit message automatically.
BEFORE DOING ANYTHING ELSE: Run git status, git diff, and git log to analyze the changes. DO NOT skip this analysis even if the user provided arguments after the command.
When this command is executed:
git status (never use -uall flag) to see all changesgit diff to see the actual changesgit log -3 --format='%s' to see recent commit message stylegit branch --show-current to determine the current branchmain or master, warn the user that committing directly to the default branch is not recommended and stop. Suggest they create a feature branch first or use /git-commit-push-pr for an interactive branch selection workflowgit add . or git add -A.env, .env.*, credentials.*, *.key, *.pem, *.secret, etc.). If secret-like files are detected, warn the user and skip themgit commit -m "$(cat <<'EOF'
your commit message here
EOF
)"
git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null-u flag: git push -u origin <branch>git pushgit status -uall (can cause memory issues on large repos)IMPORTANT: Do not include the following in commit messages:
npx claudepluginhub charlesjones-dev/claude-code-plugins-dev --plugin ai-gitCreates git commits with auto-generated conventional commit messages. Analyzes changes via git diff/status, checks branch protection, stages relevant files excluding secrets. Invoke via $commit or 'commit changes'.
Stages, commits, and optionally pushes local changes with a conventional commit message. Analyzes diffs, confirms with user. Automatically creates feature branches on protected branches.
Creates semantic git commits with conventional commit format, stages changes, and pushes to remote. Handles pre-commit hooks and writes meaningful commit messages.