git-commit

Automate safe Git commits with remote sync, diff analysis, and amend decisions.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/hugogu/skills --skill git-commit-hugogu
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: git-commit
Source: https://github.com/hugogu/skills/tree/main/.agents/skills/git-commit
Command: npx skills add https://github.com/hugogu/skills --skill git-commit-hugogu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers commit changes safely by automating remote synchronization, intelligent amendment decisions, and generation of conventional commit messages.

Core Features & Use Cases

  • Remote sync checks: validates whether the local branch is ahead or behind and performs a safe rebase or merge as needed.
  • Amendment decision logic: determines whether to amend the last commit or create a new one based on strict criteria.
  • Conventional commit messages: appends structured messages with agent/model info in the footer for traceability.
  • Triggered by intent: activates when users mention committing, staging changes, saving work, or pushing.

Quick Start

Ask the AI to perform a safe commit: sync with remote, stage changes, decide on amend vs new commit, and push if requested.

Frequently Asked Questions about git-commit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate a safe git commit with remote sync?▼

Automating a safe git commit involves validating if the local branch is ahead or behind the remote, performing a safe rebase or merge, staging changes, and generating a conventional commit message.

What is conventional commit message generation in git workflows?▼

Conventional commit messages provide structured formatting for git commits, automatically appending agent and model info to the footer for traceability while preventing destructive rewrites.

When should I amend the last commit instead of creating a new one?▼

Amending the last commit instead of creating a new one is determined by strict amendment decision logic that evaluates your current diff analysis and remote synchronization status.

Does this git workflow handle branches that are behind the remote?▼

Yes, this workflow handles branches that are behind the remote by performing safety checks, detecting if the remote is ahead or behind, and executing a safe rebase or merge as needed.

What are the limitations of automated git amend and rebase operations?▼

Automated git amend and rebase operations enforce safety checks by preventing destructive rewrites, ensuring that local changes are safely synchronized without overwriting remote histories unexpectedly.