首页龙虾技能列表 › Peter Pr Ops — 技能工具

Peter Pr Ops — 技能工具

v1.2.1

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

0· 331·0 当前·0 累计
by @chinasilva·MIT-0
下载技能包
License
MIT-0
最后更新
2026/4/10
安全扫描
VirusTotal
可疑
查看报告
OpenClaw
可疑
medium confidence
The skill's instructions match a PR-automation purpose, but the manifest omits required tools (git/gh) and the runtime instructions will execute repository scripts (and rely on existing gh credentials), so review before use.
评估建议
Before installing or enabling this skill: (1) Confirm the host has git and the GitHub CLI (gh) available; the skill expects them even though the manifest does not declare them. (2) Inspect the repository scripts referenced (scripts/automerge, scripts/massageprs, scripts/ensure-workflow-docs) and any script at $HOME/ai_code/study_peter/scripts — they will be executed and can run arbitrary commands. (3) Understand which GitHub credentials/gh auth are used and restrict their scopes (use a least-pri...
详细分析 ▾
用途与能力
The SKILL.md clearly expects to run git and the GitHub CLI (gh) and to execute repository scripts (scripts/automerge, scripts/massageprs, scripts/ensure-workflow-docs). The registry metadata lists no required binaries or credentials — that mismatch is incoherent. A PR automation skill legitimately needs git/gh and possibly CI/GitHub credentials, so the manifest should declare them.
指令范围
Runtime instructions instruct the agent to: determine repo root, run repo-local scripts (including a fallback from $HOME), run gh pr view/checks/merge/list, and update docs/SESSION-BOOTSTRAP.md. Executing repo-provided scripts (or a script in $HOME) can run arbitrary code and perform actions outside the narrow task, so the instructions broaden scope beyond mere API calls. The steps are coherent with PR automation but grant broad discretion to execute repository code.
安装机制
This is an instruction-only skill with no install spec or code files; that is the lowest-risk install mechanism. Nothing is downloaded or written by the skill itself.
凭证需求
The skill declares no required environment variables, but it will invoke gh which uses the system's GitHub CLI authentication (gh auth) or environment tokens. That is expected for a GitHub automation tool, but the manifest should state the dependency on authenticated gh/git and document what credentials/scopes are needed. The skill does not request unrelated secrets.
持久化与权限
always:false and no install hooks are present. The skill does not request persistent, cross-agent privileges. It will modify repository files (docs/SESSION-BOOTSTRAP.md) which is within the repo scope.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.2.12026/3/3

- 优化 PR 自动化流程,区分单个和批量 PR 处理,提高操作效率。 - 优先调用本地脚本 `scripts/automerge` 和 `scripts/massageprs`,脚本缺失自动补齐。 - 新增缺失脚本补齐机制,确保自动化流程不中断。 - 明确合并护栏(如 CI 不通过不强合,单 PR 默认 squash,批量模式默认 merge)。 - 合并完成后自动刷新 `docs/SESSION-BOOTSTRAP.md`,并明确输出结果与操作建议。

● 可疑

安装命令 点击复制

官方npx clawhub@latest install peter-pr-ops
镜像加速npx clawhub@latest install peter-pr-ops --registry https://cn.clawhub-mirror.com

技能文档

30 秒简介

用于“把 PR 处理完”。

默认优先复用仓库脚本:

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

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

适用场景

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

执行步骤

  • 识别处理模式:
  • 单 PR:串行盯到结果
  • 多 PR:批量配置自动合并
  • 优先脚本路径:
scripts/automerge 
scripts/massageprs  
  • 脚本缺失时优先补齐(再重试第 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
  • 回退路径(补齐失败或不可用时):
  • 单 PR(默认 squash):
gh pr view  --json number,state,mergeStateStatus
gh pr checks 
gh pr merge  --auto --squash
  • 批量 PR(默认不 squash,便于并发收口):
gh pr list --author "@me" --state open --json number --jq '.[].number'
gh pr merge  --auto --merge
  • 输出结果:
  • 已完成合并
  • 仍在等待 CI
  • 被阻塞(含原因)
  • 是否已刷新 docs/SESSION-BOOTSTRAP.mdLast Updated + Last Merge Baseline

护栏

  • CI 红灯不强合。
  • 单 PR 默认 squash(与 Peter 的 /automerge 习惯一致)。
  • 批量模式默认不强制 squash,避免破坏已有历史策略。
  • 合并完成后,默认刷新一次 docs/SESSION-BOOTSTRAP.md 时间戳与 merge 基线。
  • 每次只报告可执行下一步,不输出空泛状态。
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务