From yux-linear
Merge PR, clean up branch, and mark Linear issue as Done. Triggers on "linear merge", "merge this PR", "complete task", "合并PR".
npx claudepluginhub wuyuxiangx/yux-claude-hub --plugin yux-linearThis skill is limited to using the following tools:
Merge PR, clean up, and close Linear issue.
Merges GitHub Pull Requests after validating comments replies, tests, linting, CI checks, and milestones. Confirms with user, executes merge commit, deletes branch, and handles post-merge cleanup.
Merges reviewed GitHub PRs using rebase or squash, rebases onto base if behind, resolves conflicts, runs tests, and cleans up branches/worktrees.
Merges open PRs in dependency order after CI/approval checks, closes linked issues from PRs or .claude-harness/features/active.json, deletes feature branches locally/remotely, prunes refs, and reports summary. Use for completing features, post-review merges, or release cycles.
Share bugs, ideas, or general feedback.
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.