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.zipInstalls 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.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
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 (
mainordevelop) - 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 (
mainthendevelop) - 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 (
mainordevelop) with this skill. - Never rename the remote branch; it must match the local branch name.
- Do not use
--forceor--force-with-leaseunless 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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| git-push-creator (this skill) | 0 | 4mo | Review | Beginner |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| openspec-onboard | 10 | 6mo | Review | Beginner |
| codex-cli-bridge | 9 | 9mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
openspec-onboard
studyzy
Guided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work.
codex-cli-bridge
alirezarezvani
Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools
skill-sync
KyleKing
Syncs Claude Skills with other AI coding tools like Cursor, Copilot, and Codeium by creating cross-references and shared knowledge bases. Invoke when user wants to leverage skills across multiple tools or create unified AI context.
github-workflow-automation
ruvnet
Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI/CD pipelines, and comprehensive repository management
git-advanced-workflows
wshobson
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.