home/claude/skills/pr-update-now/SKILL.md
Update the title and body of an existing pull request WITHOUT asking for approval
npx skillsauth add lambdalisue/dotfiles pr-update-nowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This is the non-interactive variant of /pr-update. The user invoking /pr-update-now IS the explicit intent to update the PR — do NOT ask for approval. Use the interactive /pr-update when the user wants to review the draft first.
!git branch --show-current
!gh pr view --json number,title,body,baseRefName,headRefName --jq '"\(.number) \(.headRefName) -> \(.baseRefName)\nTitle: \(.title)\nBody:\n\(.body)"' 2>/dev/null || echo "No PR found for current branch"
Target PR:
gh pr viewLanguage: Match the language of the existing PR title and body. Default to English if unclear.
Scope: Use only origin/<base>..HEAD diff for analysis.
Title: Concise summary of all changes (imperative mood)
Body: Explain WHY these changes were made, not just WHAT changed. Preserve existing structure if the body already follows a consistent format.
Line breaks: Do NOT insert hard line breaks in the middle of a sentence or paragraph. Write each paragraph as a single continuous line and let the renderer wrap it. Only break between paragraphs (blank line), at list items, or at headings. Never hard-wrap to a fixed column width.
Identify PR - Determine target PR number:
gh pr view --json number --jq '.number' to get PR for current branchFetch Current PR - Get current title, body, and base branch:
gh pr view <number> --json title,body,baseRefName,headRefName
Analyze Changes - Review commits and diffs from base branch:
git log --oneline origin/<base>..HEAD
git diff --stat origin/<base>..HEAD
Detect Language - Check the language of the existing PR title/body
Draft Update - Create updated title and body:
Title: <concise summary>
## Summary
- <bullet points of changes>
## Why
<explanation of WHY these changes were made>
## Test Plan
- [ ] <test items>
Update - Execute immediately, without asking for approval (the /pr-update-now invocation is the explicit permission). Pass the body via a HEREDOC to preserve formatting:
gh pr edit <number> --title "<title>" --body "<body>"
Present the PR URL to the user.
Identify the target PR (from argument or current branch), fetch current title and body, analyze commits, draft updated content, and update the PR immediately. Do NOT ask for approval — the /pr-update-now invocation is the explicit permission.
tools
Create a pull request with title and body based on commits WITHOUT asking for approval
tools
Create a Conventional Commit from already staged changes WITHOUT asking for approval
tools
Map staged changes to existing commits and create fixup commits for autosquash WITHOUT asking for approval
tools
Analyze working tree changes and commit them WITHOUT asking for approval — fixup into existing commits where appropriate, otherwise new atomic commits