GI

git-push-creator

A safe git push utility that prevents accidental pushes to main or development branches.

Install

mkdir -p .claude/skills/git-push-creator && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10246" && unzip -o skill.zip -d .claude/skills/git-push-creator && rm skill.zip

Installs to .claude/skills/git-push-creator

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Push the current local branch to `origin` using the same branch name on the remote. Use when the user asks to push the current branch or publish local commits. If the current branch is the resolved core branch (`main` or `develop`), abort and return a safety message.
267 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Beginner

Key capabilities

  • Push local branches
  • Publish commits
  • Sync with remote

How it works

It identifies the current branch and pushes it to the remote origin safely.

Inputs & outputs

You give it
Push request
You get back
Remote branch update

When to use git-push-creator

  • Push branch to origin
  • Publish local commits
  • Sync with remote branch

About this skill

Git Push Creator

Push the current branch to origin safely.

When this skill fits

Use it for requests like:

  • "push my current branch"
  • "publish this branch to origin"
  • "push local commits to remote"

Do not use it for:

  • pushing the core branch (main or develop)
  • force pushing
  • deleting remote branches
  • opening pull requests

Workflow

1. Detect the current branch

Check the current local branch name first.

Resolve the core branch first (main preferred, then develop).

If the branch matches that resolved core branch, stop immediately and return:

You cannot push to the <core-branch> branch with this skill.

2. Use the same branch name on remote

Push the local branch to origin using the same branch name remotely.

Example:

pwsh -NoProfile -File ./.github/skills/git-push-creator/scripts/push-branch.ps1

The helper script will:

  • confirm the workspace is a Git repository
  • detect the current branch
  • resolve the core branch (main then develop)
  • abort if the current branch matches the resolved core branch
  • push to origin/<same-branch-name>
  • set upstream if needed

3. Return the exact git result

Do not guess success. Return the real git output after the push completes.

Hard rules

  • Never push the resolved core branch (main or develop) with this skill.
  • Never rename the remote branch; it must match the local branch name.
  • Do not use --force or --force-with-lease unless the user explicitly requests it.
  • Return the exact git result instead of summarizing vaguely.

When not to use it

  • Pushing core branches
  • Force pushing

Prerequisites

Git repository

Limitations

  • Cannot push core branches

How it compares

It includes safety checks to prevent pushing to protected core branches.

Compared to similar skills

git-push-creator side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
git-push-creator (this skill)04moReviewBeginner
resolve-conflicts818moReviewIntermediate
openspec-onboard106moReviewBeginner
codex-cli-bridge99moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry