push

Validate branch and working tree before pushing commits to remote.

562|80|Updated Jan 9, 2026
One-click install
npx skills add https://github.com/kdlbs/kandev --skill push-kdlbs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: push
Source: https://github.com/kdlbs/kandev/tree/main/.agents/skills/push
Command: npx skills add https://github.com/kdlbs/kandev --skill push-kdlbs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Commit and push to the current branch, with safety checks to avoid pushing to default branches and to wait for CI when requested.

Core Features & Use Cases

  • Safe push checks: Validates dirty working tree, ensures branch is not main/master, and pushes with upstream when needed.
  • CI/Review integration: Optional --fixup workflow to wait for CI and CodeRabbit reviews before repushing.
  • Task automation: Creates and tracks steps for commit, safety verification, and push.

Quick Start

Push the current branch to the remote after ensuring there are no uncommitted changes and you are not on the default branch.

Frequently Asked Questions about push

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

FAQPage Schema
How do I prevent accidental git push to main or master?

To prevent an accidental git push to main or master, you can use a safe push workflow that validates the current branch and blocks pushes to default branches before executing the command.

How do I automate waiting for CI and code review before a git push?

You can automate waiting for CI and code review before a git push by using an optional --fixup workflow that waits for CI and CodeRabbit reviews to complete before repushing your changes.

Does git push require a clean working tree and upstream configuration?

Yes, a safe git push requires a clean working tree with no uncommitted changes and verifies upstream configuration, automatically pushing with upstream tracking when needed to ensure successful remote updates.

What is the best way to verify pending changes before pushing a git branch?

The best way to verify pending changes before pushing a git branch is to automate safety checks that validate the working tree state, enforce non-default branch restrictions, and report the pushed commit hash.

Can I push to a non-default branch with uncommitted changes in git?

No, pushing to a non-default branch with uncommitted changes is blocked by safe push checks that validate the working tree is clean, ensuring only committed changes are pushed to the remote repository.