ngs/dotfiles/update-pr
Claude Code and agent skill by ngs/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Update current branch's PR with appropriate title, description, and labels.
Install
npx vskill@latest install ngs/dotfiles/update-prSKILL.md
The same SKILL.md was published earlier as ngs/dotfiles/update-pr.
Update Pull Request
Analyze a pull request and update it with appropriate title, description, and labels.
Arguments (Optional)
<owner/repo>- Repository in owner/repo format (e.g.,lifeistech/dtp-career-journey-backend)<pr-number>- PR number (e.g.,87)
Examples:
/update-pr- Update current branch's PR/update-pr 87- Update PR #87 in current repo/update-pr lifeistech/dtp-career-journey-backend 87- Update PR #87 in specified repo
Instructions
Step 0: Parse Arguments
Check if arguments were provided:
- If no arguments: use current branch's PR
- If one numeric argument: use that PR number in the current repo
- If two arguments: first is
owner/repo, second is PR number
Set variables:
REPO_FLAG: empty or-R <owner/repo>PR_NUMBER: empty (for current branch) or the specified number
Step 1: Gather Information
Run these commands to understand the PR context:
If using current branch (no PR number specified):
If PR number is specified:
Then get the diff:
Step 2: Analyze Changes
Based on the gathered information:
- Understand the purpose and scope of the changes
- Identify the type of changes (feature, bugfix, refactor, docs, etc.)
- Note any breaking changes or important considerations
- Determine appropriate labels based on the changes
Step 3: Generate PR Content
Title Format
Types:
feat: New featurefix: Bug fixdocs: Documentation changesstyle: Code style/formatting changesrefactor: Code refactoringperf: Performance improvementstest: Test additions or modificationschore: Build/tooling changes
Rules for title:
- Keep it under 72 characters
- Use imperative mood ("Add feature" not "Added feature")
- Be specific but concise
Description Format
Labels
Select appropriate labels based on the changes. Common labels:
enhancement- New features or improvementsbug- Bug fixesdocumentation- Documentation updatesrefactor- Code refactoringbreaking-change- Breaking changesdependencies- Dependency updates
Step 4: Update the PR
Use the gh CLI to update the PR:
If using current branch:
If PR number is specified:
Output
After updating, display:
- The new PR title
- The new PR description
- The labels that were added
- A link to the PR
If the PR update fails (e.g., no PR exists for current branch), inform the user and suggest creating a PR first with gh pr create.
Security
- Security scanPassed, 95 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 repositoryCheckingrc.d/agents/skills/update-pr/SKILL.md
Popularity
- Repository stars
- 9
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. 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/ngs/dotfiles/update-pr)