peter-pr-ops

PR 收口自动化。单 PR 串行合并与多 PR 批量清理,减少重复人工操作。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "peter-pr-ops" with this command: npx skills add chinasilva/peter-pr-ops

Peter PR Ops

30 秒简介

用于“把 PR 处理完”。

默认优先复用仓库脚本:

  • 单 PR:scripts/automerge
  • 批量 PR:scripts/massageprs

脚本缺失时,优先补齐脚本;补齐失败再回退到 gh 命令流。

适用场景

  • 用户提到“合并这个 PR”“批量清理 PR”“自动处理评论与 CI”

执行步骤

  1. 识别处理模式:
  • 单 PR:串行盯到结果
  • 多 PR:批量配置自动合并
  1. 优先脚本路径:
scripts/automerge <pr>
scripts/massageprs <pr1> <pr2>
  1. 脚本缺失时优先补齐(再重试第 2 步):
repo_root="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
if [ -x "$repo_root/scripts/ensure-workflow-docs" ]; then
  "$repo_root/scripts/ensure-workflow-docs" all
elif [ -x "$HOME/ai_code/study_peter/scripts/ensure-workflow-docs" ]; then
  "$HOME/ai_code/study_peter/scripts/ensure-workflow-docs" all
else
  echo "ensure-workflow-docs not found"
fi
  1. 回退路径(补齐失败或不可用时):
  • 单 PR(默认 squash):
gh pr view <pr> --json number,state,mergeStateStatus
gh pr checks <pr>
gh pr merge <pr> --auto --squash
  • 批量 PR(默认不 squash,便于并发收口):
gh pr list --author "@me" --state open --json number --jq '.[].number'
gh pr merge <pr> --auto --merge
  1. 输出结果:
  • 已完成合并
  • 仍在等待 CI
  • 被阻塞(含原因)
  • 是否已刷新 docs/SESSION-BOOTSTRAP.mdLast Updated + Last Merge Baseline

护栏

  • CI 红灯不强合。
  • 单 PR 默认 squash(与 Peter 的 /automerge 习惯一致)。
  • 批量模式默认不强制 squash,避免破坏已有历史策略。
  • 合并完成后,默认刷新一次 docs/SESSION-BOOTSTRAP.md 时间戳与 merge 基线。
  • 每次只报告可执行下一步,不输出空泛状态。

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Wangdongjie Cfo Skill

基于王东杰26年实战经验,提供A+H双市场IPO操盘、资本杠杆设计、业财融合和AI数字化风控咨询。

Registry SourceRecently Updated
General

Hk Stock Morning Report

Generate HK stock market morning report (股市晨報) for Chinese bank trading desk. Use when user asks "生成晨报", "股市晨报", "今日股市", "港股晨報", or any similar HK stock mark...

Registry SourceRecently Updated
General

Nansen Mpp Payment

Pay-per-call access to the Nansen API via MPP (Tempo). Use when a user wants anonymous Nansen access without an API key and without managing their own Base/S...

Registry SourceRecently Updated
General

Etsy Autolist

Auto-create and manage digital product listings on Etsy. Creates listings from existing digital product files (PDFs, templates, spreadsheets) using Etsy Open...

Registry SourceRecently Updated