update-pr
FeaturedUpdate an existing pull request with new changes. Use when the user wants to update a PR, push follow-up changes to a PR, refresh a PR description, or sync a PR with latest commits. Triggers on: update pr, update-pr, update the pr, push to pr, refresh pr, sync pr, update pull request.
AI & Automation 777 stars
87 forks Updated 1 weeks ago Apache-2.0
Install
Quality Score: 90/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# PR Updater
Push follow-up changes to an existing PR and update its description to reflect the new work.
---
## Workflow
### Step 1: Pre-flight Checks
1. **Verify GitHub CLI authentication** — run `gh api user --jq '.login'` to confirm the CLI is authenticated. If this fails, the user needs to run `gh auth login` first.
2. **Find the existing PR** — run `gh pr view --json number,title,body,url,baseRefName,state` to find the PR for the current branch. If no PR exists, abort and suggest using `/create-pr` instead. Check the `state` field — if it is not `OPEN`, abort and inform the user that the PR is already merged or closed.
3. **Verify clean git state** — run `git status` to ensure no uncommitted changes. If there are uncommitted changes, run the `/commit` skill first to commit them.
4. **Sync submodules** — check if `.gitmodules` exists first. If it does, run `git submodule update --init --recursive`. If not, skip this step.
### Step 2: Sync with Base Branch
Ensure the feature branch is up-to-date with the base branch to avoid merge conflicts:
1. **Fetch latest remote** — run `git fetch origin <base-branch>` (use the base branch from the PR metadata)
2. **Check for divergence** — run `git log HEAD..origin/<base-branch> --oneline` to see if the base branch has new commits
3. **Rebase if needed** — if there are new commits on the base branch:
a. Run `git rebase origin/<base-branch>`
b. **Resolve conflicts** — if the rebase hits conflicts:
- Read the confli...
Details
- Author
- ReflexioAI
- Repository
- ReflexioAI/claude-smart
- Created
- 4 months ago
- Last Updated
- 1 weeks ago
- Language
- Python
- License
- Apache-2.0
Integrates with
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
update-pr
Update the pull request for the current session. Use when the user wants to push new changes to an existing PR.
25 Updated 5 days ago
chapmanjw AI & Automation Featured
update-pr-summary
This skill should be used when user asks to "update PR summary", "update PR description", "rewrite PR body", "refresh PR title and body", or explicitly invokes "update-pr-summary".
1,141 Updated today
fcakyon AI & Automation Listed
pr-update
{{ ƔƔƔ }} Update a PR description to account for commits made since it was last written
5 Updated 2 days ago
JasonWarrenUK