← Back to Skills Marketplace
lanxevo3

Fleet PR Agent

by lanxevo3 · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ suspicious
114
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install fleet-pr-agent
Description
Multi-repo PR monitoring and triage agent. Scans GitHub repos for open PRs, prioritizes by staleness/review status/CI state, and generates a structured Markd...
README (SKILL.md)

Fleet PR Agent

Multi-repository pull request monitoring, triage, and summary tool for engineering teams and AI agent fleets managing many repos at once.

What It Does

  • Scans one or more GitHub repos for open PRs using the gh CLI
  • Prioritizes by: staleness, review status, CI pass/fail, label priority
  • Generates a structured Markdown triage report (no external dependencies — pure Python stdlib + gh)
  • Supports concurrent scanning of multiple repos in a single run

Prerequisites

  • gh CLI authenticated (gh auth status)
  • Python 3.6+ (standard library only — no pip packages required)
  • Repos accessible to your GitHub token

Quick Start

# Scan a single repo
python3 scripts/triage.py owner/repo

# Scan multiple repos
python3 scripts/triage.py owner/repo1 owner/repo2 owner/repo3

# Generate triage report to file
python3 scripts/triage.py owner/repo --output report.md

Usage as Claude Code Skill

When invoked as /fleet-pr-agent, provide repos:

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

The agent will:

  1. Fetch all open PRs from each repo via gh
  2. Score and rank them by urgency (stale > failing CI > needs review > draft)
  3. Output a prioritized Markdown summary

Triage Priority Rules

Priority Condition
P0 - Critical CI failing + older than 3 days
P1 - High Approved but not merged, or review requested > 2 days ago
P2 - Medium Open > 5 days, no review activity
P3 - Low Draft PRs, recently opened

Output Format

## PR Triage Report — 2026-03-27

### P0 — Critical (2)
- [#123 Fix auth middleware](url) — CI failing since Mar 24, 2 approvals
- [#456 DB migration](url) — CI failing since Mar 25, no reviews

### P1 — High (1)
- [#789 Add caching layer](url) — Approved Mar 25, ready to merge

### P2 — Medium (3)
...

### Summary
- Total open PRs: 15
- Needing attention: 6
- Repos scanned: 2

Configuration

Set env vars to override defaults:

Variable Default Description
FLEET_PR_STALE_DAYS 5 Days before a PR is considered stale
FLEET_PR_CI_WEIGHT 3 Weight multiplier for CI-failing PRs
FLEET_PR_MAX_PRS 50 Max PRs to fetch per repo

Architecture

  • scripts/triage.py — Pure Python 3 triage engine (stdlib only)
  • No external package dependencies
  • Uses gh pr list --json for all data fetching
  • Portable across Linux, macOS, Windows (Python + gh required)

License

MIT

Usage Guidance
This skill appears to implement PR triage as described, but there are practical inconsistencies you should address before installing or running it: 1) The scripts require an authenticated gh CLI (a GitHub token) — treat that token as sensitive and prefer a token with minimal scopes; the skill does not declare this requirement explicitly. 2) The SKILL.md claims only Python stdlib + gh and Python 3.6+, but triage.py uses capture_output (Python 3.7+) and the included triage.sh requires jq (not listed) and uses date flags that may not work on all platforms. 3) Decide which script you will run (Python or shell) and ensure your environment meets its real requirements (Python >=3.7 for triage.py; gh + jq + compatible date for triage.sh). 4) Review the scripts yourself or run them in a limited/test environment first (non-production account or token with restricted repo access). 5) If you plan to let an autonomous agent invoke this skill, be aware that the agent will be able to run gh commands using whatever gh auth is present — restrict token scopes accordingly. If the publisher can be contacted, ask them to update SKILL.md to list jq and the exact Python version requirement and to explicitly document the need for an authenticated GitHub token and recommended minimal scopes.
Capability Analysis
Type: OpenClaw Skill Name: fleet-pr-agent Version: 1.1.0 The fleet-pr-agent skill is a legitimate utility for monitoring and triaging GitHub Pull Requests across multiple repositories. It uses the official GitHub CLI (`gh`) to fetch PR data and processes it using standard Python and Bash scripts (`scripts/triage.py` and `scripts/triage.sh`) to generate a prioritized Markdown report. The code follows security best practices by avoiding shell execution in subprocess calls and contains no evidence of data exfiltration, obfuscation, or malicious intent.
Capability Assessment
Purpose & Capability
The declared purpose (scanning GitHub PRs, scoring, producing Markdown) matches the code: both Python and shell scripts call the gh CLI and build reports. However the SKILL.md claims "pure Python stdlib + gh" and portability across platforms, while the shipped shell script actually requires additional tools (jq) and uses date flags that are platform-dependent. Also the SKILL.md claims Python 3.6+ but triage.py uses subprocess.run(capture_output=True) which requires Python 3.7+.
Instruction Scope
Runtime instructions and the scripts only fetch PR data via the gh CLI and format reports (no hidden network endpoints, no file exfiltration beyond writing the optional output file). Nothing in SKILL.md or the scripts instructs reading unrelated local files or transmitting data to third-party endpoints beyond GitHub via gh.
Install Mechanism
There is no install spec (instruction-only), so nothing will be downloaded at install time. But the package includes two runnable scripts; the presence of a shell script with additional runtime dependencies (jq, specific date behavior) means the runtime environment must provide more than the SKILL.md declares.
Credentials
The skill implicitly requires an authenticated gh CLI (and therefore a GitHub token) but does not declare a required credential or primaryEnv. That token gives access to the repos the user scans and should be considered sensitive; the SKILL.md should explicitly call out required token scopes. The shell script also depends on jq (undeclared). The optional env vars for configuration are fine, but the lack of explicit declaration for the GitHub credential and the undeclared jq dependency are disproportionate to the transparency expected.
Persistence & Privilege
The skill does not request permanent 'always' inclusion and does not modify other skills or system-wide settings. It only runs ad-hoc scanning when invoked.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install fleet-pr-agent
  3. After installation, invoke the skill by name or use /fleet-pr-agent
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
- 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.
v1.0.0
Initial release of fleet-pr-agent. - Multi-repo pull request monitoring and triage tool for GitHub. - Prioritizes PRs by staleness, review status, CI results, and label priority. - Generates a daily structured Markdown triage summary. - Optional posting of review comments using the GitHub CLI. - Supports configuration via environment variables and flags.
Metadata
Slug fleet-pr-agent
Version 1.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Fleet PR Agent?

Multi-repo PR monitoring and triage agent. Scans GitHub repos for open PRs, prioritizes by staleness/review status/CI state, and generates a structured Markd... It is an AI Agent Skill for Claude Code / OpenClaw, with 114 downloads so far.

How do I install Fleet PR Agent?

Run "/install fleet-pr-agent" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Fleet PR Agent free?

Yes, Fleet PR Agent is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Fleet PR Agent support?

Fleet PR Agent is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Fleet PR Agent?

It is built and maintained by lanxevo3 (@lanxevo3); the current version is v1.1.0.

💬 Comments