/agent-toolkit-forge:pr-shipfrom agent-toolkit-forge
Ships and babysits pull requests using conflict-first ordering, skeptical comment verification, push-before-reply SHA citations, dual GitHub check gates, and Goal v2 policy checks.
Ships in agent-toolkit-forge. 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.
Move an open pull request to a clean, merge-ready state using a strict conflict-first frontier, skeptical review triage, dual GitHub check verification, and Goal v2 policy gating.
Before any local or remote action, check Goal v2 policy_ceiling and delivery_mode (schemas/goal-v2.schema.json):
| PR operation | Required Goal v2 policy_ceiling effect | Fallback when omitted |
|---|---|---|
| Read PR metadata, threads, and checks | github.read | Inspect local Git state only |
| Edit files to resolve conflicts or feedback | repository.write | Report exact proposed diff locally |
| Run local tests, linters, or lockfile checks | process.execute | Skip execution and mark checks inconclusive |
| Commit resolved fixes locally | git.commit | Leave changes unstaged for user review |
| Push fix commits to PR branch | git.push | Stop at local commit and print push command |
| Reply on PR review threads | github.comment.create | Draft thread replies locally via core/output-handshake |
| Edit PR title, body, or update branch | github.pr.update | Output proposed title, body, or rebase command |
| Open a new draft PR | github.pr.create | Write PR text via core/pr-fallback |
| Merge an approved PR | github.merge | Stop at review-ready PR and report status |
When delivery_mode is report, perform zero remote writes (git.push, github.comment.create, github.pr.update, github.pr.create, github.merge). Never call release.publish, create tags, or dispatch release workflows from PR shipping.
Check repository state and ownership before modifying or merging any PR:
codex/*, goal/*, wt-*) was updated within the last 48 hours, or when an active mission file (goals/*.md or knowledge/projects/*/STATE.md) claims the repository. Report skipped, owned by active session with the observed PR or file path.allow_auto_merge at runtime instead of trusting cached assumptions. On report-only or veasel-pilot repositories, make zero GitHub writes and produce draft proposals only.gh pr merge --admin.Execute these stages in order and restart at Stage 1 whenever a new commit lands on the branch:
Never spend review or CI cycles on a conflicted PR, because resolving conflicts changes the head commit SHA and invalidates earlier check runs and line comments.
git status and query mergeable and mergeable_state on the PR.forge/fix-merge-conflicts.git.push within policy_ceiling) before reading review comments or debugging CI.Fetch all inline review threads, review summaries, and conversation comments via forge/gh-address-comments.
file:line and surrounding callers before editing code.file:line, invariant, or test result that disproves it.hermetic or real), commit, and push to the remote branch. Only after git push succeeds, reply on the thread (github.comment.create) citing the exact pushed commit SHA. Never post a "Fixed" reply while the fix exists only locally.Inspect CI only after conflicts are clean and pending review fixes are pushed.
Query both GitHub check APIs. Read both the Check Runs API and the Commit Statuses API for the exact candidate_sha:
gh api "repos/$repo/commits/$sha/check-runs?per_page=100" \
--jq '.check_runs[] | "\(.name)|\(.status)|\(.conclusion)"'
gh api "repos/$repo/commits/$sha/status" \
--jq '.statuses[] | "\(.context)|\(.state)"'
Never trust only one API. Check runs alone miss Danger, Vercel, and external commit statuses that appear with name=null in statusCheckRollup.
Verify expected check coverage. Zero check runs on a PR head SHA is never green; report it as unverified. Require conclusion=success on every expected or required check (skipped or neutral only for non-required checks) and zero failure or error commit statuses.
Baseline green-to-red regression diffing. Before blaming the PR or merging, record the default branch's latest workflow conclusions (gh run list --repo "$repo" --branch "$default_branch" --event push --limit 20 --json workflowName,conclusion,headSha). Flag only green-to-red transitions introduced on the PR as PR regressions. If every open PR in the repository fails the exact same check on the base branch, report one repo-wide blocker on the base branch instead of patching symptoms per PR.
Frozen lockfile check. Whenever dependency manifests or lockfiles change, verify reproducibility with the repo's frozen install mode (npm ci, pnpm install --frozen-lockfile, uv sync --frozen, yarn install --frozen-lockfile, or cargo check --locked). Never add --legacy-peer-deps or dependency overrides without maintainer approval.
Fix actionable CI failures one at a time. Delegate CI log inspection and minimal single-failure fixes to forge/gh-fix-ci.
mergeable, mergeable_state, and head SHA checks for remaining PRs before acting, because two independent passing PRs can break the default branch when combined.quality/unslop on PR titles, PR bodies, and review thread replies. Use core/output-handshake and core/pr-fallback when no PR template exists, and delegate branch push or PR updates to forge/github-cli-workflow or forge/gitlab-cli-workflow.schemas/goal-evidence-v1.schema.json (task_id, attempt, repository, base_sha, candidate_sha, mode, environment, verifier_identity, verifier_version, result, digests) bound to the pushed PR head SHA. Use hermetic or real mode for passing claims; never present fixture passes as live proof.github.merge is inside policy_ceiling, the 48h active-session guard is clear, and all dual-API checks and human approvals pass.git push succeeds and you cite the pushed commit SHA.--admin, hand-edit lockfiles, or merge two same-lockfile PRs in one unrefreshed pass.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pr-management, merge-frontier, ci-verification, review-triage
10 skills in this plugin
/fix-merge-conflictsResolve merge conflicts non-interactively, validate build and tests, and finalize conflict resolution/gh-address-commentsTriage and address open GitHub PR review and conversation comments using the gh CLI. Use when the user wants to "address PR comments", "resolve review threads", or "respond to reviewers" on the current branch's pull request./gh-contribution-plannerDaily GitHub contribution planner — analyzes the gh-logged-in user's non-archived repos (owned + forks) and recent contributions, produces a prioritized plan, halts for approval, then dispatches parallel sub-agents to execute approved items via existing PR/CI/review skills.npx claudepluginhub ulises-jeremias/agent-toolkit --plugin agent-toolkit-forge2 plugins in one repository ship this exact skill · first indexed Dec 2, 2026
Other plugins' skills for the same job