Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
openai avatar

Push

  • 116 installs
  • 26.4k repo stars
  • Updated July 24, 2026
  • openai/symphony

Symphony push skill publishing branch to origin and creating or updating PR.

About

Symphony push skill for publishing branch changes and PR management. Requires gh CLI auth. Runs local validation before push, pushes to origin with upstream tracking, handles non-fast-forward via pull skill, and creates or updates PR for the branch. Uses --force-with-lease only when history was rewritten. Stops on auth or permission errors without remote rewriting workarounds. Pairs with pull skill when push is rejected or branch is stale.

  • Push to origin with upstream tracking and PR create or update
  • Local validation before push in Symphony workflow
  • Non-fast-forward handled via pull skill not force push
  • force-with-lease only when history rewritten
  • gh CLI auth prerequisite with clear error surfacing

Push by the numbers

  • 116 all-time installs (skills.sh)
  • +5 installs in the week ending Jul 26, 2026 (Skillselion tracking)
  • Ranked #212 of 733 Git & Pull Requests skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
At a glance

push capabilities & compatibility

Capabilities
push to origin · create or update pr · handle non fast forward
Works with
github
Use cases
ci cd · code review
npx skills add https://github.com/openai/symphony --skill push

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs116
repo stars26.4k
Last updatedJuly 24, 2026
Repositoryopenai/symphony

How do I push and create or update the PR in Symphony?

Push branch changes to origin and create or update the corresponding pull request in Symphony workflows.

Who is it for?

Symphony users publishing branch updates during land or development workflows.

Skip if: Initial repo clone or unrelated git operations outside Symphony.

When should I use this skill?

User asks to push, publish updates, or create pull request in Symphony.

What you get

Branch pushed to origin with PR created or updated via gh CLI.

Files

SKILL.mdMarkdownGitHub ↗

Push

Prerequisites

  • gh CLI is installed and available in PATH.
  • gh auth status succeeds for GitHub operations in this repo.

Goals

  • Push current branch changes to origin safely.
  • Create a PR if none exists for the branch, otherwise update the existing PR.
  • Keep branch history clean when remote has moved.

Related Skills

  • pull: use this when push is rejected or sync is not clean (non-fast-forward,

merge conflict risk, or stale branch).

Steps

1. Identify current branch and confirm remote state. 2. Run local validation (make -C elixir all) before pushing. 3. Push branch to origin with upstream tracking if needed, using whatever remote URL is already configured. 4. If push is not clean/rejected:

  • If the failure is a non-fast-forward or sync problem, run the pull

skill to merge origin/main, resolve conflicts, and rerun validation.

  • Push again; use --force-with-lease only when history was rewritten.
  • If the failure is due to auth, permissions, or workflow restrictions on

the configured remote, stop and surface the exact error instead of rewriting remotes or switching protocols as a workaround.

5. Ensure a PR exists for the branch:

  • If no PR exists, create one.
  • If a PR exists and is open, update it.
  • If branch is tied to a closed/merged PR, create a new branch + PR.
  • Write a proper PR title that clearly describes the change outcome
  • For branch updates, explicitly reconsider whether current PR title still

matches the latest scope; update it if it no longer does. 6. Write/update PR body explicitly using .github/pull_request_template.md:

  • Fill every section with concrete content for this change.
  • Replace all placeholder comments (<!-- ... -->).
  • Keep bullets/checkboxes where template expects them.
  • If PR already exists, refresh body content so it reflects the total PR

scope (all intended work on the branch), not just the newest commits, including newly added work, removed work, or changed approach.

  • Do not reuse stale description text from earlier iterations.

7. Validate PR body with mix pr_body.check and fix all reported issues. 8. Reply with the PR URL from gh pr view.

Commands

# Identify branch
branch=$(git branch --show-current)

# Minimal validation gate
make -C elixir all

# Initial push: respect the current origin remote.
git push -u origin HEAD

# If that failed because the remote moved, use the pull skill. After
# pull-skill resolution and re-validation, retry the normal push:
git push -u origin HEAD

# If the configured remote rejects the push for auth, permissions, or workflow
# restrictions, stop and surface the exact error.

# Only if history was rewritten locally:
git push --force-with-lease origin HEAD

# Ensure a PR exists (create only if missing)
pr_state=$(gh pr view --json state -q .state 2>/dev/null || true)
if [ "$pr_state" = "MERGED" ] || [ "$pr_state" = "CLOSED" ]; then
  echo "Current branch is tied to a closed PR; create a new branch + PR." >&2
  exit 1
fi

# Write a clear, human-friendly title that summarizes the shipped change.
pr_title="<clear PR title written for this change>"
if [ -z "$pr_state" ]; then
  gh pr create --title "$pr_title"
else
  # Reconsider title on every branch update; edit if scope shifted.
  gh pr edit --title "$pr_title"
fi

# Write/edit PR body to match .github/pull_request_template.md before validation.
# Example workflow:
# 1) open the template and draft body content for this PR
# 2) gh pr edit --body-file /tmp/pr_body.md
# 3) for branch updates, re-check that title/body still match current diff

tmp_pr_body=$(mktemp)
gh pr view --json body -q .body > "$tmp_pr_body"
(cd elixir && mix pr_body.check --file "$tmp_pr_body")
rm -f "$tmp_pr_body"

# Show PR URL for the reply
gh pr view --json url -q .url

Notes

  • Do not use --force; only use --force-with-lease as the last resort.
  • Distinguish sync problems from remote auth/permission problems:
  • Use the pull skill for non-fast-forward or stale-branch issues.
  • Surface auth, permissions, or workflow restrictions directly instead of

changing remotes or protocols.

Related skills

FAQ

What if push is rejected?

Run pull skill to merge origin/main, resolve conflicts, validate, then push again.

When is force-with-lease allowed?

Only when history was rewritten; otherwise resolve via pull skill.

What creates the PR?

gh CLI ensures a PR exists for the branch after successful push.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.