com um clique
update-pr
Update the current branch's PR description to reflect the latest changes
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Update the current branch's PR description to reflect the latest changes
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the project issue tracker. Use when the user wants to convert a plan into issues, create implementation tickets, or break down work into issues.
Turn the current conversation into a spec and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.
Capture rough notes locally with zero ceremony, then export them to their right permanent home. Use when the user wants to jot/park/stash a thought mid-task without derailing ("note to self", "remember to", "journal this"), or when they later want to export/file/route parked notes into an issue, spec, ADR, CONTEXT term, or docs. Capture is local and gitignored; export delegates to whichever existing skill owns the note's permanent home.
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes — Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/spec asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X".
Implement a piece of work based on a spec or set of tickets.
Plan a huge chunk of work — more than one agent session can hold — as a shared map of investigation tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.
| name | update-pr |
| description | Update the current branch's PR description to reflect the latest changes |
| allowed-tools | Bash(git:*), Bash(gh pr view:*), Bash(gh pr edit:*) |
Update the PR description for the current branch to accurately reflect the current state of the changes. Run each step in order. Stop and report if any step fails.
gh pr view --json number,title,body,baseRefName,headRefName
If no PR exists for the current branch, stop and tell the user to open one first (or suggest running /open-pr).
git log --oneline develop..HEAD
git diff develop..HEAD --stat
Read the full diff to understand what changed:
git diff develop..HEAD
Use .github/pull_request_template.md as the base structure.
Fill in sections from the diff. Before rewriting, carefully read the existing PR body to identify content that should be preserved:
Screenshot rule (CRITICAL):
user-attachments/assets/... URLs (drag-and-dropped by the user via the GitHub web UI) belong in the Screenshots section<img> tags or ![...]() image markdown that contain GitHub-hosted URLs — always preserve them in place with their exact URLs, alt text, and surrounding headers/captionsraw.githubusercontent.com URL, SHA-pinned raw URL, or local file path into the Screenshots section_screenshot pending_ placeholder alongside any preserved ones — do not link to local filespictures/<branch>/, report the full paths to the user and remind them to drag-drop the relevant ones into the PR body via the GitHub web UI themselvesGeneral preservation rules:
Closes #... or Fixes #... references from the existing bodyRedundancy rule:
PR style for this repo:
Closes #<issue> on its own line (extract ticket number from branch name or commits)Example Changes section (good — precise):
Adds a Flat toggle to the graph sidebar topic tree (desktop + mobile) that swaps the nested tree for an alphabetical flat list of leaves. Labels show the full path when it fits a 30-char budget, otherwise compact to firstSegment...tail. Selection state is preserved across toggles.
Example Changes section (bad — verbose, redundant bullets, filler):
Adds a Flat toggle to the graph sidebar topic tree (desktop and mobile). When on, the tree renders as a flat alphabetical list of leaves; when off, it returns to the nested tree with selection state preserved across the toggle. This is a building block for selected-topics-only views.
- New flattenTreeNodes + compactTopicLabel helpers in src/utils/tree.utils.ts
- Toggle UI (PrimeNG ToggleSwitch) wired into the desktop and mobile sidebar headers
- Flat labels show the full path when it fits (default 30-char threshold) and otherwise compact to firstSegment...tail, keeping as much of the tail as fits
The bad version repeats the same information in prose and bullets, narrates the toggle behavior instead of stating it, and pre-pitches a future feature in Changes.
Writing shape (borrowed from Matt's writing-shape skill):
Backtick rule: Max 3 backtick usages in the entire PR description. You can reference files, functions, and identifiers without backticks — only use them for commands worth copy-pasting.
Write the new body to /tmp/<branch-name>-pr-body.md, where <branch-name> is the current git branch (git branch --show-current). Using a branch-specific filename avoids stale content from previous PRs leaking in.
gh pr edit --body-file "/tmp/$(git branch --show-current)-pr-body.md"
Report what was updated, including a summary of what changed in the description.