From claude-resources
Completes pull requests by monitoring CI checks, waiting for them to pass if needed, and auto-merging when approved. Use for 'complete pr', 'merge pr' commands or pending CI.
npx claudepluginhub takazudo/claude-resources[-c/--close] [-k/--keep-issue] [-w/--watch-ci] [-now/--no-wait]This skill uses the workspace's default tool permissions.
This PR is checked, reviewed, and no other tasks are left. Complete the following:
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
This PR is checked, reviewed, and no other tasks are left. Complete the following:
Before anything else, run git status and git diff --stat to check for unstaged or staged-but-uncommitted changes.
/pr-complete./commits push to commit and push automatically, then continue to step 1./commits push first, then re-invoke /pr-complete." and stop here.gh pr view and gh pr checks--no-wait / -now was passed → skip the CI wait and merge immediately (see "--no-wait (-now) option" below)/watch-ci to monitor CI in the backgroundgh pr merge --merge --delete-branchImportant: Before merging, verify:
/watch-ci and stop), unless --no-wait was passedIf any CI checks fail, report the failure and do not merge (unless --no-wait was explicitly passed — see below).
--no-wait (-now) optionIf --no-wait or -now is passed, skip the CI watch entirely and merge the PR immediately, regardless of check status:
/watch-cigh pr merge --merge --delete-branch straight away--close / --keep-issue / --watch-ci) as normalWhen to use: the user has already verified locally that the changes are good (or doesn't care about CI for this merge) and wants the PR merged now without waiting on the pipeline. This is an explicit opt-in — never assume --no-wait from context.
Note: --no-wait only skips waiting for CI checks. The --watch-ci (-w) option, which watches post-merge CI on the target branch, is independent and still works alongside -now.
--close (-c) optionIf --close or -c is passed, after the PR is successfully merged:
gh pr view --json closingIssuesReferencesCheck if it is an epic issue (one that holds sub-issues):
a. Fetch the issue body: gh issue view <number> --json body
b. Look for task list entries referencing issues in the body:
Patterns: - [ ] #N, - [x] #N, - [ ] owner/repo#N, - [x] owner/repo#N
c. Also try the GitHub sub-issues API: gh api repos/{owner}/{repo}/issues/<number>/sub_issues
(this returns a list if the newer GitHub sub-issues feature is in use)
If sub-issues are found (either from the body task list or the API):
gh issue view <sub-issue-number> --json stategh issue close <sub-issue-number>gh issue close <number>If no sub-issues are found (regular issue):
gh issue close <number>--keep-issue (-k) optionIf --keep-issue or -k is passed, after the PR is successfully merged:
--close)[PR-Merged][Confirm] to the issue title:gh issue edit <number> --title "[PR-Merged][Confirm] <original title>"Note: --keep-issue and --close are mutually exclusive. If both are passed, --keep-issue takes precedence.
--watch-ci (-w) optionIf --watch-ci or -w is passed, after the PR is successfully merged:
gh run list --branch <base-branch> --limit 5 --json databaseId,name,status,conclusion/watch-ci to monitor the merge target branch CI in the background/watch-ci already handles merged PRs — it will detect the merged state and watch the target branch CIThis option is only activated when explicitly passed. Without -w, pr-complete does not watch post-merge CI.