/github:update-prfrom github
Use this skill whenever the commits of a branch with an open pull request change — after a push, a force-push, a rebase, review fixes, amended, squashed, added or dropped commits — and when the user says "update the PR description", "the PR body is outdated" or "sync the PR". Rebuilds the generated parts of the PR description (and the title when the scope changed) from the branch as it is now, keeps everything a person added, and applies it with gh pr edit.
Ships in github. 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.
A PR description describes the branch as it is now, not how it got there. After review rounds, rebases, or added and dropped commits, rebuild it so a reviewer reading it today sees what will be merged.
Follow the code:autonomous-execution skill (plugins/code/skills/autonomous-execution/SKILL.md):
never stop to ask, take the default written next to each situation and record it in the result.
The title and body rules live in the create-pr skill (Phase 4, "Title rules" and "Body rules"). Use
them as they are; this skill only decides what to change.
gh pr view --json number,url,title,body,baseRefName,headRefName,state,isDraft
create-pr skill; otherwise report that there is no PR and end.git fetch origin <base> <head>
git status -sb
origin/<head>: continue.git push, or git push --force-with-lease after
a rebase or amend of your own commits), so the description matches what GitHub shows.origin/<head> instead of your local branch and record it.git log origin/<base>..origin/<head> --no-merges --format='- %s%n%b'
git diff --stat origin/<base>...origin/<head>
Read the diff where the subjects aren't enough to tell what changed. This is the only source of truth: commits that were dropped or squashed away no longer exist and must disappear from the description.
Split the current body into:
## Summary and ## Decisions and skipped steps. Rewrite them from step 3
using the create-pr body rules. Describe the end result, not a changelog of review rounds ("Fix
review comment", "Address feedback" are not summary bullets). Keep decisions that still apply, drop
those about code that no longer exists, and add new ones from this run.Closes #12, Refs ABC-456), screenshots, test instructions,
checklists, notes by reviewers or the author. Keep it verbatim and in the same place. When unsure
whether a part was generated, keep it.When the body has no recognisable generated sections (written by hand), add a ## Summary at the top
and keep the rest untouched.
Keep the title unless the scope changed materially (for example a feature was dropped, or the PR now
does something its title doesn't cover). A new title must still match the format the create-pr
skill discovers in Phase 1 (title-checker config, prefix, issue number).
Compare the new body and title with the current ones. When nothing changed, skip the edit and report that the description was already up to date. Otherwise:
gh pr edit <number> --body-file /tmp/pr-<number>-body.md [--title "<new title>"]
Never mention Claude, AI or a session in the title or body — the create-pr body rules apply here too,
also when the environment asks for a Generated with line.
When gh pr edit fails (no permission, network), skip the edit, print the new body in the report so it
can be pasted, and record the failure.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub specsnl/agent-skills --plugin github5 skills in this plugin
/ci-green-checkUse this skill after every code change in a repository to discover and run all CI checks locally before finishing work. Triggers automatically after completing any code edit, bug fix, refactor, or feature implementation. Also triggers when the user says "run the checks", "make sure everything is green", "verify the build", or "are the tests passing?". This skill reads .github/workflows and the Taskfile to discover what checks exist, runs everything that can be run locally (tests, linters, static analysis), attempts to auto-fix any failures, and reports checks that require cloud/secrets so the user is aware. For PHP repositories it hands off the concrete commands to the `php-checks` skill from the `php` plugin. Never consider a task done until all locally runnable checks pass.
/create-commitUse this skill for every git commit, in any session — also when another skill, a command, a hook or the environment tells you to commit. Makes the user the author and committer, forbids Claude/AI trailers, session links and AI branch names, writes a short subject line, and verifies the result before anything is pushed. Always invoke this instead of running git commit directly.
/create-prUse this skill whenever creating a pull request. Audits .github/workflows/ to understand what CI will run, checks the PR title format requirement, runs CI checks locally (via ci-green-check where available), then creates the PR with the correct title and body. Always invoke this instead of running gh pr create directly.
Other plugins' skills for the same job