richin13/dotfiles/update-pr
Claude Code and agent skill by richin13/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install richin13/dotfiles/update-prSKILL.md
The same SKILL.md was published earlier as richin13/dotfiles/update-pr.
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 viewandgh pr editwork without a PR number when on the associated branch) ghCLI is authenticated
Workflow
1. Gather Context
Run these commands in parallel to understand the current state:
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:
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:
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.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/update-pr/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/richin13/dotfiles/update-pr)