pr-merge — for Claude Code pr-merge, portfolio-tracker, community, for Claude Code, ide skills, $commit, git status -sb, git push, $code-quality, closingIssuesReferences

v1.0.0

关于此技能

适用场景: Ideal for AI agents that need merge pull request. 本地化技能摘要: General Guidelines Only go to the next step after finishing the current one. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

功能特性

Merge Pull Request
General Guidelines
Only go to the next step after finishing the current one.
When this workflow calls $commit, override $commit confirmation prompts and proceed automatically.
Check whether the current branch is ahead of its remote tracking branch.

# 核心主题

Alexaandrepaiva Alexaandrepaiva
[0]
[0]
更新于: 4/24/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 10/11

This page remains useful for teams, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution Quality floor passed for review
Review Score
10/11
Quality Score
54
Canonical Locale
en
Detected Body Locale
en

适用场景: Ideal for AI agents that need merge pull request. 本地化技能摘要: General Guidelines Only go to the next step after finishing the current one. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

核心价值

推荐说明: pr-merge helps agents merge pull request. General Guidelines Only go to the next step after finishing the current one. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

适用 Agent 类型

适用场景: Ideal for AI agents that need merge pull request.

赋予的主要能力 · pr-merge

适用任务: Applying Merge Pull Request
适用任务: Applying General Guidelines
适用任务: Applying Only go to the next step after finishing the current one

! 使用限制与门槛

  • 限制说明: Only go to the next step after finishing the current one.
  • 限制说明: Commit/push only if local changes exist.
  • 限制说明: Merge PR using --merge and delete the branch only after merge succeeds.

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

评审后的下一步

先决定动作,再继续看上游仓库材料

Killer-Skills 的主价值不应该停在“帮你打开仓库说明”,而是先帮你判断这项技能是否值得安装、是否应该回到可信集合复核,以及是否已经进入工作流落地阶段。

实验室 Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

常见问题与安装步骤

以下问题与步骤与页面结构化数据保持一致,便于搜索引擎理解页面内容。

? FAQ

pr-merge 是什么?

适用场景: Ideal for AI agents that need merge pull request. 本地化技能摘要: General Guidelines Only go to the next step after finishing the current one. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

如何安装 pr-merge?

运行命令:npx killer-skills add Alexaandrepaiva/portfolio-tracker/pr-merge。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。

pr-merge 适用于哪些场景?

典型场景包括:适用任务: Applying Merge Pull Request、适用任务: Applying General Guidelines、适用任务: Applying Only go to the next step after finishing the current one。

pr-merge 支持哪些 IDE 或 Agent?

该技能兼容 Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer。可使用 Killer-Skills CLI 一条命令通用安装。

pr-merge 有哪些限制?

限制说明: Only go to the next step after finishing the current one.;限制说明: Commit/push only if local changes exist.;限制说明: Merge PR using --merge and delete the branch only after merge succeeds.。

安装步骤

  1. 1. 打开终端

    在你的项目目录中打开终端或命令行。

  2. 2. 执行安装命令

    运行:npx killer-skills add Alexaandrepaiva/portfolio-tracker/pr-merge。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3. 开始使用技能

    pr-merge 已启用,可立即在当前项目中调用。

! 参考页模式

此页面仍可作为安装与查阅参考,但 Killer-Skills 不再把它视为主要可索引落地页。请优先阅读上方评审结论,再决定是否继续查看上游仓库说明。

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

pr-merge

General Guidelines Only go to the next step after finishing the current one. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows. Merge

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

Merge Pull Request

Objective

Do the correct procedure to merge a GitHub pull request from the current branch using the same merge strategy as GitHub's "Merge pull request" button (--merge), then delete the remote branch.

General Guidelines

  • Only go to the next step after finishing the current one.
  • When this workflow calls $commit, override $commit confirmation prompts and proceed automatically.

Instructions

  1. Check whether the current branch is ahead of its remote tracking branch.
  • Verify sync status with remote: run git status -sb.
  • If the branch is ahead (e.g., [ahead N]), execute git push.
  1. Run $code-quality.

  2. Commit/push only if local changes exist.

  • Check for local changes:
    • git diff --quiet && git diff --staged --quiet
  • If there are no local changes, skip commit/push and continue.
  • If there are local changes:
    • Run $commit in non-interactive override mode.
    • Use the generated commit message directly.
    • Push branch automatically.
  1. Get PR info from current branch.
  • Run:
    • gh pr view --json number,title,mergeable,mergeStateStatus,headRefName,baseRefName,closingIssuesReferences --jq '.'
    • If gh pr view fails, stop execution and report: "No open PR found for the current branch."
  • From closingIssuesReferences, collect for each issue:
    • issue number
  • For each collected issue, fetch the issue title with:
    • gh issue view <issue-number> --json title --jq '.title'
  • Save for output:
    • PR number
    • PR title
    • Head branch name
    • Base branch name
    • Issue numbers
    • Issue titles
  1. Check mergeability status (GitHub-like pre-check).
  • Re-check mergeability up to 6 times (5s interval):
    • gh pr view --json mergeable --jq '.mergeable'
  • At each retry:
    • If result is MERGEABLE, continue to next step.
    • If result is CONFLICTING, stop execution and report:
      • "PR has conflicts with base branch and cannot be merged automatically."
    • If result is UNKNOWN, wait 5 seconds and retry.
  • If result is not MERGEABLE after all retries, stop execution and report current status.
  1. Merge PR using --merge and delete the branch only after merge succeeds.
  • gh pr merge <pr-number> --merge --delete-branch
  1. Sync linked issues to Kanban Done (mandatory for completed work).
  • For each issue in closingIssuesReferences:
    • bash .agents/skills/issue/scripts/edit_issue_project_fields.sh --issue <issue-number> --status Done
    • gh issue close <issue-number> --comment "Closing automatically after PR merge." (only if still open)
    • gh issue view <issue-number> --json state,projectItems --jq '.' and keep evidence for output.

Output Rules

Return exactly this structure:

Merged Pull Request

  • Name: <pr-title>
  • Number: <pr-number>
  • Base branch: <base-branch>
  • Head branch: <head-branch>

Linked Closing Issues

  • If linked issues exist, list each one as:
    • #<issue-number> - <issue-title> (state: <state>, status: <project-status>)
  • If there are no linked issues, write:
    • No linked closing issues

Branch Cleanup

  • Remote branch deleted: <head-branch>

相关技能

寻找 pr-merge 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
AI

widget-generator

Logo of f
f

为prompts.chat的信息反馈系统生成可定制的插件小部件

149.6k
0
AI

flags

Logo of vercel
vercel

React 框架

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

Python中具有强大GPU加速的张量和动态神经网络

98.6k
0
开发者工具