Claude-skill-registry git-pr-merge
Conducts an audit of a Pull Request, merges it into main, and synchronizes the local environment. Use this skill when a PR is ready for final review and integration.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/git-pr-merge" ~/.claude/skills/majiayu000-claude-skill-registry-git-pr-merge && rm -rf "$T"
manifest:
skills/data/git-pr-merge/SKILL.mdsource content
This skill focuses on the "Gatekeeper" role, ensuring that only high-quality, verified code enters the
main branch.
PR Merge & Sync Workflow
-
Audit:
- Inspect the PR diff using
. Focus on source code changes, excluding third-party packages or generated binaries.gh pr diff [id] - Create an audit report in
confirming compliance with tech specs and UI guides.audit_reports/audit_PR-[id].md
- Inspect the PR diff using
-
Merge Execution:
- Once the user approves the audit, perform the merge:
(if it''s a feature branch).gh pr merge [id] --merge --delete-branch - For core
branches, usedev
to integrate into--merge
.main
- Once the user approves the audit, perform the merge:
-
Local Sync:
- Switch to
and pull the latest changes:main
.git checkout main; git pull origin main - Switch back to
and mergedev
to ensure the local development branch is up-to-date:main
.git checkout dev; git merge main - Push the updated
branch to the remote:dev
.git push origin dev
- Switch to
-
Verification:
- Verify that the local state is clean and ready for the next task.