agentleFS
OpenAIKnown publisheropenai/symphony/.codex/skills/push/SKILL.md

push

Skill28k starsChanged 9 months agoApache-2.0View on GitHub

- pull: use this when push is rejected or sync is not clean (non-fast-forward, merge conflict risk, or stale branch). 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,…

  • Deletes or force-pushes
  • Commits and pushes

20 other projects use a version of this.

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 21 mentionsApr 2026: 3 mentionsMay 2026: 14 mentionsJun 2026: 4 mentionsJul 2026: 7 mentionsAug 2026: 5 mentionsSep 2026: 11 mentionsOct 2026: 6 mentionsNov 2026: 3 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the openai/symphony repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about openai/symphony

The biggest 5 of 74 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 74

Talked about on GitHub, Bluesky and Hacker News (74 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 16

11 more on Bluesky

On Hacker News · 8

3 more on Hacker News

Used with

Projects with it also use test, plan and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Microsoft AzureSkill

    test

    Also in 3 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 4 projects that use this

  • AWSSkill

    tdd

    Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 12 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create a PR if none exists for the branch, otherwise update the existing PR.

    line 18
  2. Distinctive:

    Keep branch history clean when remote has moved.

    line 19
  3. Very specific:

    Run local validation (make -C elixir all) before pushing.

    line 29
  4. Distinctive:

    If push is not clean/rejected:

    line 32
  5. Very specific:

    If the failure is a non-fast-forward or sync problem, run the pull skill to merge origin/main, resolve conflicts, and rerun validation.

    line 33
  6. Distinctive:

    If the failure is due to auth, permissions, or workflow restrictions on the configured remote, stop and surface the exact error instead of …

    line 36
  7. Distinctive:

    Ensure a PR exists for the branch:

    line 40
  8. Distinctive:

    If no PR exists, create one.

    line 41
  9. Distinctive:

    If a PR exists and is open, update it.

    line 42
  10. Distinctive:

    If branch is tied to a closed/merged PR, create a new branch + PR.

    line 43
  11. Distinctive:

    Write a proper PR title that clearly describes the change outcome

    line 44
  12. Very specific:

    Write/update PR body explicitly using .github/pull_request_template.md:

    line 47
  13. Distinctive:

    Keep bullets/checkboxes where template expects them.

    line 50
  14. Distinctive:

    If PR already exists, refresh body content so it reflects the total PR scope (all intended work on the branch), not just the newest …

    line 51
  15. Distinctive:

    Do not reuse stale description text from earlier iterations.

    line 54
  16. Very specific:

    Do not use --force; only use --force-with-lease as the last resort.

    line 113
  17. Very specific:

    Use the pull skill for non-fast-forward or stale-branch issues.

    line 115

“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.