/jj:jj-update-prfrom jj
Updates GitHub pull request descriptions with AI-generated content based on the current diff. Useful for refreshing PR content or syncing PR with latest changes.
Ships in jj. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill enables updating existing pull request descriptions with fresh AI-generated content based on the current state of the change.
CRITICAL: This workflow requires jj and gh CLI access with authentication. Always use:
required_permissions: ["all"]
When the user asks to update a PR description (e.g., "update the PR", "refresh PR description", "sync PR with changes"):
Default to @- (parent of working copy) unless the user specifies a different change.
jj log -r <change> -T 'bookmarks' --no-graph
gh pr view <branch>
If no PR exists, suggest using the jj-create-pr workflow instead.
Extract the first line of the change's description:
jj log -r <change> -T description --no-graph | head -1
If the description is empty, run the Description Check Protocol (see jj-workflow skill) to generate a conventional commit description from the diff, then re-extract the title:
jj status — if @ is a placeholder (no modified files), evaluate @- carefully: verify it has a non-empty diff AND no trunk bookmarks (main, master, main@origin) before targeting it. If @- carries a trunk bookmark, ask the user which change to use.jj diff -r <change> to understand what changedjj describe -r <change> -m "type: concise description" (or use --stdin if preserving an existing body — see jj-workflow protocol)jj diff -r <change>
Based on the diff, write a fresh PR description:
Example format:
## Summary
Brief description of what this PR accomplishes.
## Changes
- Added X to handle Y
- Refactored Z for better performance
- Fixed bug where A caused B
Update both title and body:
gh pr edit <branch> --title "<new_title>" --body "<new_description>"
Or update body only:
gh pr edit <branch> --body "<new_description>"
User: "Update the PR for @-"
# 1. Get branch name
jj log -r @- -T 'bookmarks' --no-graph
# Output: "push-abc123"
# 2. Verify PR exists
gh pr view push-abc123
# (shows PR details)
# 3. Get updated title (generates one from diff if description is empty — see Step 4)
jj log -r @- -T description --no-graph | head -1
# Output: "feat: add user authentication"
# If empty: run the Description Check Protocol to generate one, then re-extract
# 4. Get current diff
jj diff -r @-
# (analyze the output)
# 5. Update PR with new description
gh pr edit push-abc123 \
--title "feat: add user authentication" \
--body "## Summary
Adds JWT-based user authentication to the API.
## Changes
- Added auth middleware for token validation
- Created login and register endpoints
- Added user model with password hashing
- Updated API documentation"
jj-create-pr workflowgh pr viewWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hotthoughts/jj-skills --plugin jj5 skills in this plugin
/jj-cleanupRemoves the local jj bookmarks, revisions, and workspaces left behind by merged or closed GitHub pull requests, using the jj-cleanup binary through the `jj cleanup` / `jj cl` aliases. Use after a PR or stack merges or closes, when pruning stale bookmarks or workspaces, when `jj log` is cluttered with finished work, or when asked what is safe to delete locally. Also use to install jj-cleanup and its aliases when they are missing./jj-create-prCreates GitHub pull requests from Jujutsu changes with AI-generated descriptions. Use when the user wants to create a PR, push changes for review, or open a pull request./jj-gh-stackManages GitHub stacked PRs from a Jujutsu (jj) repository with the gh stack CLI. Use when creating, growing, updating, unstacking, or merging a stack of pull requests in a jj repo, when a jj bookmark backs a stacked PR layer, or when gh-stack's git-oriented workflow (init/add/checkout/up/down/rebase/sync) would touch a jj repo. Replaces the local-tracking loop in the gh-stack skill with jj bookmarks plus jj git push plus gh stack link./jj-workflowGuides Claude on using Jujutsu (jj) version control system. Use when working with jj repositories, making commits, syncing changes, or managing version control workflows.Other plugins' skills for the same job