merged
Installation
SKILL.md
Merged
Objective
A PR/change was just merged. Move the local checkout to the merged primary branch, prove the landed state is healthy with lightweight high-signal checks, verify relevant deployment/release follow-through, clean up safe stale branch state, and recommend the next sensible slice.
Default Workflow
- Read repo instructions first when present (
AGENTS.md,CLAUDE.md, repo README/TODO/work tracker) so post-merge verification matches the project. - Inspect current git state before switching branches:
git status --short --branch,git branch --show-current, andgit remote -v. - If unrelated uncommitted work exists, preserve it before switching only when safe. Prefer a narrow stash of conflicting files with a clear message; stop and ask only when ownership or safety is ambiguous.
- Resolve the primary branch from GitHub/default-branch metadata when possible; otherwise use
main, thenmasterif that is the repo default. - Confirm the merge when a PR number, URL, or current branch PR is discoverable. Prefer
gh pr viewforstate,mergedAt,mergeCommit,headRefName,baseRefName, and check/merge status. - Switch to the primary branch and fast-forward only:
git switch <primary>thengit pull --ff-only origin <primary>. - Verify the landed commit locally with lightweight project-appropriate checks: typecheck/lint/test/build/smoke commands that are already documented or obvious from package scripts, justfiles, Makefiles, or CI.
- Verify post-merge CI/deploy/release status when applicable. Use installed CLIs first:
depotfor Depot,ghfor GitHub Actions/checks/releases,vercelfor Vercel,wranglerfor Cloudflare Workers,gcloudfor GCP, or the repo's documented deploy surface. - If the repo has a relevant deployed app/service, do a simple smoke check of the live or production URL. If no deploy applies, say why.
- Delete the old local feature branch only after the merge is confirmed and the branch is not current. Use non-destructive deletion first (
git branch -d); use force deletion only if the remote PR is conclusively merged/squashed and there is no unique local work. - End with a concise status summary: primary branch, pulled commit, local verification, remote/deploy verification, cleanup done/skipped, and one recommended next feature/change grounded in current repo state.