Skip to content
Agentmart
Submit a tool

update-pr

This skill should be used when the user asks to "update the PR", "update PR body", "update PR title", "sync PR description", "update pull request", or wants…

Skill by richin13

IndexedMIT★ 15
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/richin13-update-pr

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

This skill should be used when the user asks to "update the PR", "update PR body", "update PR title", "sync PR description", "update pull request", or wants the pull request title and body to reflect the actual changes on the current branch.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/update-pr

What's inside

Skill name
update-pr
Description
This skill should be used when the user asks to "update the PR", "update PR body", "update PR title", "sync PR description", "update pull request", or wants the pull request title and body to reflect the actual changes on the current branch.
License
MIT
Instructions
80 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Update PR

Analyze the current branch's changes and update the associated pull request's title and body to accurately reflect what was done.

## Prerequisites

- The current branch must have an open PR (both `gh pr view` and `gh pr edit` work without a PR number when on the associated branch)
- `gh` CLI is authenticated

## Workflow

### 1. Gather Context

Run these commands in parallel to understand the current state:

```bash
gh pr view --json number,title,body,headRefName,baseRefName
```

```bash
gh pr diff
```

```bash
git log <baseRefName>..HEAD --oneline
```

Use `baseRefName` from the PR view output as the base branch for the log and diff commands.

### 2. Analyze Changes

Review ALL commits and the full diff, not just the latest commit. Identify:

- The nature of each change (new feature, bug fix, refactor, cleanup, etc.)
- Group related changes into coherent bullet points
- Note any files or areas of the codebase affected

### 3. Draft Title and Body

**Title rules:**
- Under 70 characters
- Summarize the overall intent, not individual changes
- Use imperative mood ("Add X" not "Added X")
- Accurate verb choice: "add" for new features, "fix" for bugs, "update" for enhancements, "remove" for deletions, "refactor" for restructuring

**Body format:**

```markdown
## Summary
- <bullet points describing changes>

## Test plan
- [ ] <verification steps>

---
> Drafted by <your name> 🤖
```

Keep bullet points concise. The summary should focus on "why" not "what" when possible. Test plan items should be actionable verification steps.

### 4. Present and Confirm

Show the drafted title and body to the user. Wait for explicit approval before applying.

### 5. Apply

Use the REST API directly to avoid a known GraphQL error where `gh pr edit` fails because it queries the deprecated "Projects (classic)" `projectCards` field:

```bash
gh api repos/<owner>/<repo>/pulls/<number> -X PATCH -f title="<title>" -f body="$(cat <<'EOF'
<body>
EOF
)" --jq '.html_url'
```

Always use a HEREDOC for the body to preserve formatting. Extract owner/repo from `gh repo view --json nameWithOwner --jq .nameWithOwner`.

After applying, return the PR URL from the output.

From richin13/dotfiles, MIT.

Signals

Stars
15
Forks
5
Open issues
0
Last commit (this folder)
Jul 23, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from richin13

Cite this page

update-pr skill. Agent Mart. https://agentmart.dev/skills/richin13-update-pr (last updated 2026-10-24)