git-commit-push_skill

This skill commits all changes with an auto-generated message and pushes to origin after analyzing diffs and branch safety.

26

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill charlesjones-dev/claude-code-plugins-dev --skill git-commit-push

  • SKILL.md3.0 KB

Overview

This skill automates committing all repository changes with an auto-generated, context-aware commit message and pushes the result to origin. It inspects the working tree and recent commit style, enforces branch safety, avoids secrets, and follows repository commit conventions. The tool never accepts or uses user-supplied commit text or flags — it generates messages based on the actual diffs.

How this skill works

The skill first runs git status, git diff, and recent git log entries to understand what changed and how commits are styled. It refuses to proceed if there are no changes or if the current branch is main/master, and it warns about secret-like files, skipping them. It stages specific files by name, composes a concise message that respects commit conventions, commits using a heredoc to preserve formatting, then pushes with or without -u depending on upstream configuration.

When to use it

  • You want a quick, consistent commit and push without typing a message.
  • You need an auto-generated, descriptive commit that matches recent commit style.
  • You want built-in checks for secrets and default-branch protection.
  • You prefer staging specific files rather than bulk-add to avoid accidental commits.
  • You want the push step to respect upstream tracking or set it safely when missing.

Best practices

  • Run the command only when you want the tool to generate the commit message; do not append any message or flags — they will be ignored.
  • Review the git status and diff output the tool presents before confirming staging and commit actions.
  • Do not run this on main or master; create a feature branch first or use an interactive branch workflow.
  • Keep secrets out of the repo; the tool will warn and skip files that resemble credentials.
  • Prefer targeted staging of changed files to avoid committing unrelated artifacts.

Example use cases

  • After finishing a local feature, use this to auto-generate a commit message and push the branch to origin.
  • When you have multiple small fixes and want a concise, consistent commit that follows repository style.
  • If you’re unsure how to phrase the commit, let the tool analyze diffs and recent commit messages and craft one.
  • During rapid development to quickly push safe, non-secret changes while avoiding accidental commits to main.

FAQ

No. The command ignores any user-provided commit text or command-line flags. It always analyzes diffs and generates the message automatically.

What happens if I’m on main or master?

The skill will warn and stop. Committing directly to the default branch is not recommended; create a feature branch or use an interactive branch workflow instead.

Will it ever push secrets or .env files?

The tool will detect files that look like credentials or keys, warn you, and skip staging them. It will not commit obvious secret-like files.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
git-commit-push skill by charlesjones-dev/claude-code-plugins-dev | VeilStrat