返回顶部
f

fleet-pr-agent多仓库PR管理

Multi-repo PR monitoring and triage agent. Scans GitHub repos for open PRs, prioritizes by staleness/review status/CI state, and generates a structured Markdown triage summary. Use when managing PRs across multiple repositories.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.0
安全检测
已通过
92
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

fleet-pr-agent

Fleet PR Agent

面向工程团队和同时管理多个仓库的AI代理集群的多仓库拉取请求监控、分类和摘要工具。

功能说明

  • - 使用 gh CLI 扫描一个或多个 GitHub 仓库中的开放 PR
  • 按以下维度排序:陈旧度、审查状态、CI 通过/失败、标签优先级
  • 生成结构化的 Markdown 分类报告(无外部依赖——纯 Python 标准库 + gh)
  • 单次运行支持并发扫描多个仓库

前置条件

  • - gh CLI 已认证(gh auth status)
  • Python 3.6+(仅标准库——无需 pip 包)
  • 你的 GitHub Token 可访问的仓库

快速开始

bash

扫描单个仓库


python3 scripts/triage.py owner/repo

扫描多个仓库

python3 scripts/triage.py owner/repo1 owner/repo2 owner/repo3

生成分类报告到文件

python3 scripts/triage.py owner/repo --output report.md

作为 Claude Code 技能使用

当调用 /fleet-pr-agent 时,提供仓库列表:

/fleet-pr-agent owner/repo1 owner/repo2

该代理将:

  1. 1. 通过 gh 从每个仓库获取所有开放 PR
  2. 按紧急程度评分和排序(陈旧 > CI 失败 > 需要审查 > 草稿)
  3. 输出按优先级排序的 Markdown 摘要

分类优先级规则

优先级条件
P0 - 严重CI 失败 + 超过 3 天
P1 - 高
已批准但未合并,或审查请求超过 2 天 | | P2 - 中 | 开放超过 5 天,无审查活动 | | P3 - 低 | 草稿 PR,近期开放 |

输出格式

markdown

PR 分类报告 — 2026-03-27

P0 — 严重(2)

P1 — 高(1)

P2 — 中(3)

...

摘要

  • - 总开放 PR:15
  • 需要关注:6
  • 已扫描仓库:2

配置

设置环境变量以覆盖默认值:

变量默认值描述
FLEETPRSTALEDAYS5PR 被视为陈旧的天数
FLEETPRCIWEIGHT
3 | CI 失败 PR 的权重乘数 |
| FLEETPRMAX_PRS | 50 | 每个仓库最多获取的 PR 数量 |

架构

  • - scripts/triage.py — 纯 Python 3 分类引擎(仅标准库)
  • 无外部包依赖
  • 使用 gh pr list --json 进行所有数据获取
  • 跨 Linux、macOS、Windows 可移植(需要 Python + gh)

许可证

MIT

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 fleet-pr-agent-1775973782 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 fleet-pr-agent-1775973782 技能

通过命令行安装

skillhub install fleet-pr-agent-1775973782

下载

⬇ 下载 fleet-pr-agent v1.1.0(免费)

文件大小: 5.18 KB | 发布时间: 2026-4-13 10:19

v1.1.0 最新 2026-4-13 10:19
- Introduced a pure Python triage script (`scripts/triage.py`)—no external dependencies required.
- Full migration from shell script to Python for PR triage logic; run via `python3 scripts/triage.py`.
- Now supports concurrent scanning and reporting for multiple repositories in a single run.
- Documentation updated to reflect Python usage, new requirements, and improved portability.
- Architecture section added, clarifying standard library-only usage and cross-platform compatibility.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部