/github-workflows:refresh-repofrom github-workflows
Check PR readiness and fast-forward the local default branch.
Ships in github-workflows. 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.
Check open PR merge-readiness and fast-forward the local default branch. For branch creation and PR-branch sync, follow the Git Town rule.
State warning: Branch state, remote tracking, and PR status change between invocations. Re-run all git and gh commands before reporting.
Always check for open PRs, regardless of the current branch.
gh pr view --json state,number,title 2>/dev/null
gh pr list --state open --limit 50 --json number,title,headRefName
For each open PR, run the canonical PR-readiness gate.
It requires zero unaddressed items in the PR feedback ledger
and every required status context reported. Name an absent context as
required check never reported: <context> and see
github-actions-silent-failures.
Replace <OWNER>, <REPO>, and <PR_NUMBER> per the placeholder legend in
that skill.
A PR is ready only when all of these conditions pass:
| Field | Required |
|---|---|
state | OPEN |
mergeable | MERGEABLE |
mergeStateStatus | CLEAN or HAS_HOOKS |
isDraft | false |
reviewDecision | APPROVED or null |
statusCheckRollup.state | SUCCESS |
| PR feedback ledger | Zero unaddressed items |
| Required status-check contexts | Every context reported |
reviewThreads.isResolved | true for every thread |
reviewThreads.pageInfo.hasNextPage | false |
git fetch origin --no-tags.origin/HEAD; use
gh-cli-patterns if it is not set.git worktree list --porcelain.git -C <path> merge --ff-only origin/<default>. If it is dirty, report
that and skip it.git fetch origin <default>:<default>. This creates the local branch if
needed and refuses non-fast-forward updates.git rev-list --left-right --count <default>...origin/<default> and skip.
Do not force, reset, or rebase the local default branch.Report each PR's readiness status and the local default branch as fast-forwarded, already current, or skipped with its reason.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jacobpevans-ai/claude-code-plugins --plugin github-workflows18 skills in this plugin
/finalize-prAutomatically finalize pull requests for merge by resolving CodeQL violations, PR feedback, merge conflicts, and CI failures. Handles single PR (current branch or by number), all open PRs in the repo, or all open PRs across the org. Includes bot-authored PRs in all modes./gh-cli-patternsCanonical reference for all gh CLI command shapes used by skills in this plugin. Defines the placeholder convention, default-branch (trunk vs git-flow) detection, allowed --json fields, GraphQL fallback rules, -f/-F/--raw-field flag semantics, the PR-readiness gate, required status contexts, the feedback ledger, code-scanning alert query, review-thread fetch/count/resolve mutations, and heredoc bodies. Prevents Unknown JSON field errors and divergent query shapes./