commit-and-push

Stage Git changes, generate commit messages, and push to remote.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ufmt, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of staging all changes, generating a commit message, and pushing the code to a remote repository, streamlining your Git workflow.

Core Features & Use Cases

  • Automated Staging: Stages all modified, added, and deleted files.
  • Intelligent Commit Messages: Generates commit messages from diffs or uses provided arguments.
  • Python Formatting: Automatically formats Python files using ufmt.
  • Safe Pushing: Pushes to the remote tracking branch, handling cases where no upstream exists.
  • Use Case: After making several code changes, you can invoke this skill to quickly commit and push them without manually typing Git commands or crafting a commit message.

Quick Start

Stage all changes, generate a commit message from the diff, and push to the remote.

Frequently Asked Questions about commit-and-push

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

FAQPage Schema
How do I automatically generate a git commit message from a diff and push?

To automatically generate a git commit message from a diff and push, this Skill stages all current changes, analyzes the diff to create an imperative message if one is not provided, and pushes the commit to the remote tracking branch.

Can I format Python files before staging and committing my code changes?

Yes, you can format Python files before staging and committing code changes. The Skill automatically formats Python files using the ufmt dependency in parallel with diff commands prior to the commit.

What happens if pushing my commit to the remote tracking branch fails?

If pushing your commit to the remote tracking branch fails, the Skill handles the failure gracefully without force pushing. It safely manages push operations, including cases where no upstream branch exists, to prevent overwriting remote changes.

Do I need to manually stage all modified and deleted files before committing?

No, you do not need to manually stage modified and deleted files before committing. The Skill provides automated staging for all current changes in the Git repository, including added, modified, and deleted files.

When should I use an automated git staging and push tool instead of manual commands?

You should use an automated git staging and push tool instead of manual commands when you want to streamline your workflow after making several code changes. It quickly stages files, generates an intelligent message from the diff, and pushes without manual typing.