From my-skills
Waits for CI to pass, marks draft PRs ready, removes worktree, then merges the PR and cleans up the local repo. Use after a PR is opened and you want it merged once green.
How this skill is triggered — by the user, by Claude, or both
Slash command
/my-skills:merge-when-readyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The final step of the workflow chain. After **pick-issue** has opened a PR
The final step of the workflow chain. After pick-issue has opened a PR (and review has passed), this skill waits for CI checks to pass and then merges the PR, handling worktree teardown and post-merge cleanup so the repo returns to a clean state on the main branch.
gh pr view --json number -q .number.--repo flag, or when on the main branch, you
MUST pass an explicit branch name:
gh pr view <branch-name> --json number -q .number --repo <owner>/<repo>.
gh pr view cannot infer the PR without an argument when --repo is used
or when the current branch is not the feature branch.gh pr checks <PR number>.gh pr checks every 30 seconds until all checks pass.gh pr ready <PR number>.git worktree remove .worktrees/<branch-name> (add --force
if it has a submodule), then git branch -D <branch-name>. Removing the
worktree and deleting the local branch prevents "branch used by worktree"
errors during merge.gh pr merge <PR number> --merge --delete-branch run from the
main worktree (the project root directory), NOT from a feature worktree.git pullgit remote prune origingh pr merge from the main worktree, not from a feature
worktree.gh pr merge, not after. This
prevents "branch used by worktree" errors.Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub mizzy/my-skills --plugin my-skills