name: push description: Commit and push to the current branch. Use --fixup to also wait for CI and CodeRabbit, Greptile, Claude, OpenCode, and cubic review feedback, then fix issues.
Push
Available skills
/commit— Stage and commit changes using Conventional Commits. Runs/verifyinternally./pr-fixup— Wait for CI checks and CodeRabbit, Greptile, Claude, OpenCode, and cubic review feedback, fix any failures or valid comments, and push again.
Context
- Current branch: !
git branch --show-current - Current git status: !
git status
Options
--fixup— after pushing, run/pr-fixupto wait for CI and CodeRabbit, Greptile, Claude, OpenCode, and cubic review feedback, fix issues, and push again.
Note: This skill only uses
git push. GitHub CLI dependency is indirect via/pr-fixup.
Your task
Commit any pending changes and push to the remote branch.
Steps
Create a todo/task for each step below and mark them as completed as you go.
Uncommitted changes: If there are dirty or staged changes, run
/commitfirst (it runs/verifyinternally).Safety check: Verify the current branch is NOT
mainormaster. If it is, stop and ask the user — direct pushes to the default branch should go through a PR.Push the current branch:
git pushIf the branch has no upstream, use
git push -u origin <branch>. If the branch was rebased or history was rewritten, first confirm the current branch is notmainormaster, then usegit push --force-with-lease.Report the pushed commit hash and branch.
If
--fixup: Run/pr-fixupto wait for CI checks and CodeRabbit, Greptile, Claude, OpenCode, and cubic review feedback, fix any failures or valid comments, and push.