npx skills add dyoshikawa/rulesync --skill merge-pr --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Merge Pull Request Merge a pull request using `gh pr merge --admin`. ## Input ``` the user's request ``` ## Step 1: Determine the Target PR Parse `the user's request` to identify the PR to merge: ### Case A: PR number or URL is provided - Extract the PR number from the argument - Examples: `123`, `#123`, `https://github.com/owner/repo/pull/123` ### Case B: No argument provided - Get the PR associated with the current branch: ```bash gh pr view --json number,title,state ``` ### Case C: Unable to determine the PR If the PR cannot be determined (e.g., no PR exists for the current branch, or the argument is ambiguous), **ask the user** to specify which PR to merge. ## Step 2: Verify the PR Before merging, confirm the PR details: ```bash gh pr view <pr_number> --json number,title,state,mergeable,author,baseRefName,headRefName ``` Check: 1. The PR state is `OPEN` 2. Display the PR title and number to the user for confirmation If the PR is not open or not mergeable, inform the user and stop. ## Step 3: Check GitHub Actions Workflow Status Verify that all CI checks have passed before merging: ```bash gh pr checks <pr_number> ``` Check: 1. All workflow checks show `pass` status 2. No chec
- Input
- Step 1: Determine the Target PR
- Case A: PR number or URL is provided
- Case B: No argument provided
- Case C: Unable to determine the PR
- Step 2: Verify the PR
- Step 3: Check GitHub Actions Workflow Status
- Step 4: Merge the PR
- Step 5: Comment on the PR
- Step 6: Report Result
- Step 7: Clean Up Local Branch
gh pr view --json number,title,state gh pr view <pr_number> --json number,title,state,mergeable,author,baseRefName,headRefName gh pr checks <pr_number> gh pr merge <pr_number> --admin --merge gh pr comment <pr_number> --body "@<author_login> Thank you!" git checkout main && git pull --prune && git branch -d <branch-name>
What does the merge-pr skill do?
Merge a pull request using gh pr merge --admin
How do I install it?
Run `npx skills add dyoshikawa/rulesync --skill merge-pr --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From dyoshikawa/rulesync, a repository with 1,285 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.