From yux-linear
Merge PR, clean up branch, and mark Linear issue as Done. Triggers on "linear merge", "merge this PR", "complete task", "合并PR".
How this skill is triggered — by the user, by Claude, or both
Slash command
/yux-linear:yux-linear-mergeThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Merge PR, clean up, and close Linear issue.
Merge PR, clean up, and close Linear issue.
Usage: /yux-linear-merge [--squash|--rebase|--merge]
--squash (default): Squash all commits--rebase: Rebase and merge--merge: Create merge commit.claude/linear-config.jsonLIN-xxx from branch, fetch issue via mcp__linear__get_issue()gh pr view --json number,state,mergeable,mergeStateStatusGather from both GitHub and Linear:
gh pr view <number> --json reviews,comments,reviewDecisionmcp__linear__list_comments(issueId: "<uuid>")Filter: only show CHANGES_REQUESTED reviews, unresolved questions, change suggestions. Skip: APPROVED reviews, resolved threads, status updates.
Display if issues exist (skip section entirely if none).
Use AskUserQuestion:
Delegate to linear-merge-executor skill (runs in forked subagent) with:
The skill handles: CI polling -> merge validation -> execute merge -> cleanup -> Linear update.
On success:
.claude/linear-tasks.jsonactive_task to most recently active remaining task (or null)Do NOT call ExitWorktree proactively — let the user decide.
npx claudepluginhub wuyuxiangx/yux-claude-hub --plugin yux-linearMerges reviewed PRs when triggered by /pr-merge or merge commands. Handles squash/rebase, worktrees, integration branches, and auto-merge for CI gating.
Runs a 4-step PR close sequence: reviewer-summary comment, squash-merge with PR title as commit subject, delete remote branch, close linked tracker issues. Use when merging or closing a PR.
Monitors CI checks and merges a pull request when all checks pass. Use when a PR is reviewed and approved but CI is still running.