Use when the user wants one of their open PRs brought up to date with trunk and pushed — "pull origin trunk, resolve conflicts, commit and push", "sync this PR", "update
Ships in sejas-ai-code-skills. 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.
Bring one PR branch up to date with trunk, push it, and keep its description true. Works in any repo whose default branch is trunk; substitute main otherwise.
Done means: branch contains latest origin/trunk, conflicts resolved, touched files lint-clean, pushed with a plain git push, description matches the diff, and the report's first line says whether it pushed.
gh pr view --json number). Several PRs → do them one at a time, parent before child.gh pr view <pr> --json number,url,state,headRefName,baseRefName,body,isCrossRepository. Stop if it is merged, closed, or from a fork.git worktree list --porcelain (main checkout and ~/worktrees.nosync/*, ~/.t3/worktrees/*). Not checked out anywhere → ask whether to create a worktree with the worktree skill; never switch the branch of a checkout that is on another branch.git status --porcelain in that checkout. Uncommitted changes → stop and ask: commit them first, or leave them out. Never git stash (the stash is shared across worktrees).git config user.email must be the address this remote expects (work vs. personal); fix the includeIf pattern in ~/.gitconfig if not, before any commit.When baseRefName isn't trunk and the base branch's PR is merged (or the branch is gone): retarget with gh pr edit <pr> --base trunk and say so in the report. When merging trunk in step 3, the parent's own commits arrive squashed; for conflicts in code that came from the parent (gh pr diff <parent>), take trunk's side — it is the merged version of the same change.
git fetch origin trunk "$HEAD_BRANCH"
git merge --ff-only @{u} || git merge @{u} # the remote branch may have moved (other pushes, suggested changes)
git merge origin/trunk # never rebase: rebasing forces a force-push
Conflicts: read both sides and resolve each by intent — keep this PR's change on top of trunk's latest code, not one side wholesale. Lockfiles (yarn.lock): take trunk's, then yarn install and commit the result. If a conflict changes behaviour on both sides and the right merge is unclear, stop and show the hunk instead of guessing.
Commit with git's default merge message.
Node: the zsh .nvmrc hook fails on cd (exit 3, which breaks && chains), so use absolute paths and git -C <checkout>, and run node tools with env PATH=$HOME/.nvm/versions/node/v$(cat <checkout>/.nvmrc)/bin:$PATH bash -c "cd <checkout> && …".
git diff --name-only --diff-filter=d origin/trunk...HEAD, then the repo's linter on those (e.g. yarn eslint <files>).git push. Never --force / --force-with-lease. Rejected → fetch, merge @{u} again, re-check, push once more; rejected again → stop and report.
Compare the body with git diff origin/trunk...HEAD --stat, the commit list and what the code now does. If it is still accurate, leave it. If it drifted:
$INTERNAL_HOSTS_RE) and fix every hit.gh pr edit <pr> --body-file <file>. If the edit would remove content (a section, a screenshot, testing steps), ask before applying.Pushed: yes — <short sha> to <branch> (or: Pushed: no — <reason>)
PR: <url>
Merged trunk: <n> commits; conflicts: <files, or none>
Checks: <what ran → result>; not run: <what and why>
Base: retargeted to trunk / unchanged
Description: updated (<what changed>) / unchanged
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
40 skills in this plugin
/ai-prsList all open PRs targeting the Studio AI command with draft status, approval state, and requested reviewers/ai-radarUse when Antonio wants to catch up on frontier AI — "what's new in AI", "AI radar", "what is karpathy working on", "AI trends", "research digest", "what should I learn next", "where to invest learning time", or /ai-radar./blog-postThis skill should be used when the user asks to "write a blog post", "draft a blog post", "create a blog post", "write an article about", or wants to produce a markdown blog post on any topic. Outputs to ~/claude.nosync/posts/./brainstorming-namesUse when the user wants to name or rename something — a product, feature, brand, project, command, or company — or asks to "brainstorm names", "find a better name", "naming ideas", or invokes /brainstorming-names./chrome-doctorUse when Claude in Chrome doesn't work or the user wants Claude to drive their real Chrome — "chrome doesn't work", "browser tools missing", "it fails from T3", "troubleshoot chrome", "control my browser", or /chrome-doctor [task]. Diagnoses why the mcp__claude-in-chrome__* tools are missing or failing (headless/T3 launches without --chrome, extension not connected, wrong browser), fixes what it can, then runs the optional task in their Chrome./commitWrite a commit message and create a git commit. Use when the user wants to commit changes, asks for a commit message, or says "commit this" or "make a commit"./sejas-ai-code-skills:sync-prfrom sejas-ai-code-skills
sejas-ai-code-skills@cascade-code-general-misc-3 is listed by joshuarweaver/cascade-code-general-misc-3 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-3 --plugin sejas-ai-code-skills