Finishing a Development Branch
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
Update an existing pull request with new changes. An agent skill from ReflexioAI/claude-smart.
$ npx skills add ReflexioAI/claude-smart --skill update-pr -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ReflexioAI/claude-smart update-pr --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ReflexioAI/claude-smart.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/update-pr .claude/skills/update-pr && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "update-pr" agent skill from https://github.com/ReflexioAI/claude-smart/tree/main/.agents/skills/update-pr into .claude/skills/update-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "update-pr", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ReflexioAI/claude-smart/tree/main/.agents/skills/update-prType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ReflexioAI/claude-smart --skill update-pr -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ReflexioAI/claude-smart update-pr --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ReflexioAI/claude-smart.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/update-pr .agents/skills/update-pr && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "update-pr" agent skill from https://github.com/ReflexioAI/claude-smart/tree/main/.agents/skills/update-pr into .agents/skills/update-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "update-pr", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ReflexioAI/claude-smart --skill update-pr -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ReflexioAI/claude-smart update-pr --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ReflexioAI/claude-smart.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/update-pr .cursor/skills/update-pr && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "update-pr" agent skill from https://github.com/ReflexioAI/claude-smart/tree/main/.agents/skills/update-pr into .cursor/skills/update-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "update-pr", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ReflexioAI/claude-smart.git --path .agents/skills/update-pr--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ReflexioAI/claude-smart --skill update-pr -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ReflexioAI/claude-smart update-pr --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ReflexioAI/claude-smart.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/update-pr .gemini/skills/update-pr && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "update-pr" agent skill from https://github.com/ReflexioAI/claude-smart/tree/main/.agents/skills/update-pr into .gemini/skills/update-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "update-pr", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ReflexioAI/claude-smart update-prInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ReflexioAI/claude-smart --skill update-pr -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ReflexioAI/claude-smart.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/update-pr .github/skills/update-pr && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "update-pr" agent skill from https://github.com/ReflexioAI/claude-smart/tree/main/.agents/skills/update-pr into .github/skills/update-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "update-pr", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ReflexioAI/claude-smart --skill update-pr -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ReflexioAI/claude-smart update-pr --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ReflexioAI/claude-smart.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/update-pr .opencode/skills/update-pr && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "update-pr" agent skill from https://github.com/ReflexioAI/claude-smart/tree/main/.agents/skills/update-pr into .opencode/skills/update-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "update-pr", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
update-prUpdate an existing pull request with new changes. An agent skill from ReflexioAI/claude-smart.
Update PR is an agent skill from ReflexioAI/claude-smart. Update 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.
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Pull requests. It works with Git. The repository describes itself as: Turns corrections into Preferences, Project-specific skills, and Shared skills for Claude Code, Codex, and OpenCode. The licence is Apache-2.0.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 687360e. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitghFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git and gh, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Update PR loads about 1.7k tokens when it runs. Until then it costs about 74 tokens; SKILL.md has 907 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ReflexioAI/claude-smart at commit 687360e, republished under its Apache-2.0 licence (© ReflexioAI). 907 words, ~1,696 tokens.
.claude/skills/update-pr/SKILL.md (or your agent's skills folder).Push follow-up changes to an existing PR and update its description to reflect the new work.
gh api user --jq '.login' to confirm the CLI is authenticated. If this fails, the user needs to run gh auth login first.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.git status to ensure no uncommitted changes. If there are uncommitted changes, commit them directly — do NOT delegate to another skill or tell the user to commit first..gitmodules exists first. If it does, run git submodule update --init --recursive. If not, skip this step.Ensure the feature branch is up-to-date with the base branch to avoid merge conflicts:
git fetch origin <base-branch> (use the base branch from the PR metadata)git log HEAD..origin/<base-branch> --oneline to see if the base branch has new commitsgit rebase origin/<base-branch>
b. Resolve conflicts — if the rebase hits conflicts:git add <file>git rebase --continuegit status to confirm no unresolved conflicts remaingit push. If the rebase changed history, use git push --force-with-lease instead. If --force-with-lease fails, it means someone else has pushed to this branch. Fetch the remote branch (git fetch origin <branch>), inspect the divergence (git log HEAD..origin/<branch> --oneline), and ask the user how to proceed — they may need to integrate the other contributor's changes first.Understand the full scope of changes now in the PR:
git log origin/<base-branch>..HEAD --oneline to see all commits on this branchgit diff origin/<base-branch>...HEAD --stat for a high-level summary of changed filesgit diff origin/<base-branch>...HEAD to read the full diff. Note: Three-dot (...) syntax is intentional — it shows only the changes introduced on this branch since it diverged from the base, excluding commits on the base branch that aren't part of this PR.feat, fix, refactor, docs, chore, etc.Important: Look at ALL commits, not just the latest one. The updated PR description should reflect the entire branch, not just the new additions.
feat:, fix:, refactor:, docs:, chore:Review the existing PR body (from Step 1) and update it to reflect the current state of the branch. Preserve any still-accurate content (e.g., context, links, decisions) rather than rewriting from scratch. Use this template — scale detail with PR complexity:
## Summary
<1-5 bullet points explaining what changed and WHY — covering ALL changes in the branch>
## Changes
<Categorized list of what was modified — group by area/concern>
## Diagrams
<OPTIONAL — include Mermaid diagrams when visual aids clarify workflow or architecture changes>
## Test Plan
<How the changes were verified — manual testing steps, automated tests run, curl commands, etc.>Guidelines for the body:
Co-Authored-By linesWrite the body to a temp file and use --body-file to avoid shell argument length limits:
cat > /tmp/pr_body.md <<'EOF'
## Summary
...
## Changes
...
## Test Plan
...
EOF
gh pr edit --title "the pr title" --body-file /tmp/pr_body.mdDo NOT add:
--author flagCo-Authored-By trailerDraft/Ready handling: If the user wants to mark a draft PR as ready for review, run gh pr ready. If the user wants to convert to draft, run gh pr ready --undo.
gh pr edit fails, diagnose the error and suggest fixesPR Size: Keep PRs small and focused. If the diff is very large (>500 lines changed), suggest splitting into smaller PRs.
Commit History: If the commit history is messy, suggest rebasing to clean it up. Clean commits that explain why make review much easier.
Feedback Requests: If the user mentions wanting specific feedback, add a "Feedback Requested" section to the body.
Screenshots: For frontend changes, remind the user to add screenshots or recordings to the PR after updating.
© ReflexioAI, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/update-pr of ReflexioAI/claude-smart.
Open the folder on GitHubat commit 687360e
Update PR next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Update PR this skillReflexioAI/claude-smart | 782 | — | ~1.7k | Automated safety check: Pass | Apache-2.0 | |
| Finishing a Development Branchobra/superpowers | 296k | 5 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Understand Diff AnalysisEgonex-AI/Understand-Anything | 85k | 1 repos | ~1.4k | Automated safety check: Pass | MIT | |
| Contributor-First PR MergeHKUDS/OpenHarness | 16k | 1 repos | ~847 | Automated safety check: Pass | MIT | |
| Open Code Review CLIalibaba/open-code-review | 44k | — | ~3.1k | Automated safety check: Pass | Apache-2.0 | |
| Create Pull Requestcline/cline | 70k | 1 repos | ~1.6k | Automated safety check: Pass | Apache-2.0 |
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
Egonex-AI/Understand-Anything
Reads your git changes or a pull request against a prebuilt knowledge graph of the project to explain what changed, which components are affected and what is risky.
HKUDS/OpenHarness
Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.
alibaba/open-code-review
Runs the ocr command-line tool to review Git changes, a commit or a branch comparison with an AI model, returning line-level comments and optionally applying fixes.
cline/cline
Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.
openinterpreter/openinterpreter
Rewrites the title and body of one or more pull requests with gh, leading with why the change was made, then what changed, and describing only the net result.
ReflexioAI/claude-smart
Create high-quality pull requests via gh pr create. An agent skill from ReflexioAI/claude-smart.
ReflexioAI/claude-smart
Codex-only — use when the user asks to run claude-smart commands in Codex, including claude-smart show, learn, restart, dashboard, clear-all, or slash-like requests such as /claude-smart:learn.
Works with
Categories
Update an existing pull request with new changes. An agent skill from ReflexioAI/claude-smart. Update PR is an agent skill from ReflexioAI/claude-smart. Update an existing pull request with new changes.
Update PR fits situations like: the user wants to update a PR; push follow-up changes to a PR; refresh a PR description; sync a PR with latest commits.
Run `npx skills add ReflexioAI/claude-smart --skill update-pr -a claude-code`. Or copy the skill folder (.agents/skills/update-pr in ReflexioAI/claude-smart) into .claude/skills/update-pr in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ReflexioAI/claude-smart --skill update-pr -a codex`. Or copy the skill folder (.agents/skills/update-pr in ReflexioAI/claude-smart) into .agents/skills/update-pr in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ReflexioAI/claude-smart --skill update-pr -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/update-pr, .gemini/skills/update-pr, .github/skills/update-pr and .opencode/skills/update-pr in your project.
Going by SKILL.md and its folder, Update PR needs the command-line tools its instructions call (git and gh).
SKILL.md contains no URLs. Its commands use git and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Update PR is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Update PR: Finishing a Development Branch (obra/superpowers, 296k stars), Understand Diff Analysis (Egonex-AI/Understand-Anything, 85k stars), Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars) and Open Code Review CLI (alibaba/open-code-review, 44k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ReflexioAI (a GitHub organization) maintains it in ReflexioAI/claude-smart, which has 782 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 6, 2026.
Source: ReflexioAI/claude-smart on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.