In short.
update-pr is an AI assistant skill for developers maintaining open GitHub pull requests, and it can commit local work and rewrite branch history before updating the description. Its instructions cover authentication, synchronization with the base branch, review of the full branch diff, preservation of existing context and optional draft or ready status changes. It asks for user decisions when rebase conflicts arise or manually added PR content might be overwritten. No execution results establish reliability, compatibility or time savings.
Researched and written by an AI model and checked by a second AI model. How it works
The selected scope is .agents/skills/update-pr in ReflexioAI/claude-smart at commit cc2a9b251d52cd15776a657302f51dd3bf589e73. The supplied manifest identifies SKILL.md as the sole selected file and repository-root LICENSE as the accompanying licence notice. Other repository skills, application code and assistant-host integrations are outside this scope. No commands were executed: commits, submodule updates, rebases, pushes, PR edits and end-to-end behavior remain untested.
The overview
Identity
The file calls the resource PR Updater and declares its skill name as update-pr. It lives at .agents/skills/update-pr/SKILL.md in ReflexioAI/claude-smart and supplies instructions for an AI assistant with access to Git and GitHub CLI.
The original source folder is [https://github.com/ReflexioAI/claude-smart/tree/main/.agents/skills/update-pr]. The supplied content is pinned to commit cc2a9b251d52cd15776a657302f51dd3bf589e73.
Assessment
The skill is useful for the recurring problem of a pull request description becoming stale after follow-up commits. It explicitly compares the existing title and body with every branch commit and the complete diff, rather than describing only the latest addition.
Its main tradeoff is the breadth of the instructed actions: committing pending work, initializing submodules when present, rebasing and pushing all precede the description update. These actions warrant closer attention than a text-only PR editor. Whether an assistant follows the instructions correctly is unknown.
Users
The primary audience is developers who already maintain Git branches and open GitHub pull requests. It can also help maintainers keep reviewer-facing explanations aligned with changes across several commits.
Beginners receive explicit commands and a description template, but the instructions assume familiarity with commits, rebasing, conflict resolution and remote branches. Developers sharing a feature branch need to understand the history-changing push path before using it.
Capabilities
The documented workflow checks GitHub CLI authentication, locates the current branch's PR, rejects merged or closed PRs, commits pending local changes and conditionally initializes submodules. It fetches the PR's base branch, checks for new base commits and rebases when needed.
It then examines commit history, a diff summary and the full diff before revising the PR. Titles should remain under 70 characters and use a conventional change prefix. The body covers purpose, changes and a test plan, with diagrams when useful.
The instructions also cover preserving accurate existing content, asking about manually added sections, changing draft or ready status when requested, suggesting smaller PRs for large changes and reminding developers to add screenshots for frontend work.
Using it
Requirements
Using the documented commands requires a local Git repository, Git, GitHub CLI, network access, an authenticated GitHub account and permissions to push the branch and edit its PR. An open PR must already exist for the current branch.
The workflow assumes the repository uses an origin remote and that the assistant can run shell commands and edit files. No minimum Git or GitHub CLI version, supported operating system, assistant host or model requirement is specified.
Mechanism
The assistant obtains PR metadata through gh pr view, including the base branch and current description. It uses Git commands to synchronize the feature branch and push it before analyzing and editing the PR narrative.
The full review uses git log origin/<base-branch>..HEAD and git diff origin/<base-branch>...HEAD. The three-dot diff compares against the branches' common ancestor, focusing on changes introduced by the feature branch.
A rebase that changes history leads to git push --force-with-lease. Conflicts require user decisions; a rejected lease leads to fetching and inspecting the remote branch before asking how to proceed. The description is written to /tmp/pr_body.md and submitted with gh pr edit --body-file.
Setup
The file supplies a skill name, description and trigger phrases such as update pr, refresh pr and sync pr. Its location is .agents/skills/update-pr/SKILL.md, but it does not explain installation, registration or discovery by a particular assistant host.
Before invoking it, prepare an authenticated GitHub CLI session and a local branch associated with an open PR. The documented authentication check is gh api user --jq '.login'; the file directs users to gh auth login if authentication fails. Successful loading and operation in any specific assistant remain unverified.
Example
An illustrative use is a developer adding a bug fix to a PR whose description still covers only the original feature. A request to update the PR would direct the assistant to find the open PR, commit pending changes, synchronize with its base branch and push.
It would then examine every branch commit and the complete diff, retain accurate background and update the description to cover both the original feature and the fix. If synchronization produced a conflict, the instructions require showing both sides and asking the user which to keep. This is a hypothetical sequence; no completed run is supplied.
Assessment & evidence
Limitations
The initial commit instruction does not specify how to choose which pending files to stage or how to write the commit message. The body template includes a Test Plan, but the workflow does not require particular tests to pass before pushing.
The push happens before the description edit. Consequently, a later gh pr edit failure could leave published commits paired with an outdated description; no rollback procedure is documented.
The fixed /tmp/pr_body.md filename could collide with another invocation using the same path. That is an inferred concurrency risk, not an observed failure. Command compatibility, conflict handling and successful PR updates have not been demonstrated by execution evidence.
Reasoning
Reviewing the entire branch is the strongest basis for an accurate description: follow-up work may change the PR's purpose or make its original explanation incomplete. Preserving still-accurate context also avoids unnecessarily discarding useful links and decisions.
The requests for user decisions address two concrete hazards: changing code meaning while resolving conflicts and losing manually added review context. The rejected-force-with-lease procedure addresses concurrent remote updates. These are documented safeguards; their effectiveness in actual assistant sessions is unknown.
Alternatives
A developer can perform the documented Git and GitHub CLI steps manually, retaining direct control over commits, rebases and description edits. For a description-only change, editing the PR title and body directly avoids invoking this skill's broader branch-synchronization sequence.
The skill points to /create-pr when no PR exists, but that resource's implementation is not supplied. No evidence supports comparing update-pr with other assistant skills on reliability, speed or cost.
Evidence
The substantive source is the complete SKILL.md at [https://raw.githubusercontent.com/ReflexioAI/claude-smart/cc2a9b251d52cd15776a657302f51dd3bf589e73/.agents/skills/update-pr/SKILL.md]. Its supplied SHA-256 is a9177fd86d67336fe56a051a26cf3ede8fa110bbd7ddc3aa60af90563306eb4b.
The accompanying root LICENSE has supplied SHA-256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30. These files support the documented workflow and licence terms. They contain no execution logs, benchmarks or test results establishing operational outcomes.
Access & freshness
Costs
The supplied Apache 2.0 licence grants reuse without a licence charge. The skill does not specify a purchase price, subscription requirement, model, token consumption or expected runtime.
Assistant-provider charges and any applicable service costs are unknown. No evidence supports an estimate of total operating cost or savings.
Rights
The accompanying repository-root LICENSE contains Apache License 2.0. It permits reproduction, modification and redistribution subject to its conditions. Redistribution requires providing the licence, marking modified files and retaining applicable notices; relevant NOTICE attributions must also be carried forward if such a file accompanies the work.
The licence provides the work without warranties and does not grant general trademark rights. The supplied files do not include a NOTICE file or a separate licence inside the skill folder. The captured licence is available at [https://raw.githubusercontent.com/ReflexioAI/claude-smart/cc2a9b251d52cd15776a657302f51dd3bf589e73/LICENSE].
Freshness
The supplied files were captured on 2026-11-15 at 22:02:08.514 UTC from commit cc2a9b251d52cd15776a657302f51dd3bf589e73. This identifies the exact source snapshot.
The commit's authoring date and any subsequent changes to main are unknown. Compatibility with currently installed assistant hosts, Git versions and GitHub CLI versions is not established by the supplied documentation.
Actions
Before use, inspect pending local changes and decide which belong in the PR, because the skill directs the assistant to commit them. Confirm how your assistant loads the file and whether rebasing is appropriate for the branch's collaborators.
Identify manually added PR content that should survive the edit, and provide actual verification results for the Test Plan. Afterward, inspect both the published branch and the revised PR description, including any draft or ready status change requested.
