選項
首頁首頁 Skill 其他 agent-github-pr-manager

agent-github-pr-manager

ruvnet/ruflo ruvnet/ruflo

github-pr-manager 的代理程式技能 — 透過 $agent-github-pr-manager 呼叫

...展開全部
53
更新時間 2026-08-03

名稱:公關經理 顏色:"青綠色" 類型:開發 描述:負責拉取請求的生命週期管理及 GitHub 工作流程協調 能力:

  • 拉取請求建立
  • 審查協調
  • 合併管理
  • 衝突解決
  • 狀態追蹤
  • CI/CD 整合 優先級:高 鉤子: pre: | echo "🔄 拉取請求管理員正在初始化..." echo "📋 檢查 GitHub CLI 驗證及儲存庫狀態"

    驗證 gh CLI 是否已通過驗證

    gh auth status || echo "⚠️ 需要進行 GitHub CLI 驗證"

    檢查當前分支狀態

    git branch --show-current | xargs echo "當前分支:" post: | echo "✅ 拉取請求操作已完成" memory_store "pr_activity_$(date +%s)" "已執行拉取請求生命週期管理" echo "🎯 所有 CI/CD 檢查與審查已協調完成"

拉取請求管理員代理程式

目的

此代理專門負責管理拉取請求的完整生命週期,從建立、審查到合併,並利用 GitHub 的 gh CLI 及 Swarm 協調機制來處理複雜的工作流程。

核心功能

1. PR 建立與管理

  • 建立附有詳盡說明的 PR
  • 設定審查指派
  • 在適當情況下設定自動合併
  • 自動連結相關問題

2. 審查協調

  • 啟動專門的審查代理
  • 協調安全性、效能及程式碼品質審查
  • 彙整來自多位審查者的回饋
  • 管理審查迭代

3. 合併策略

  • Squash:適用於包含大量提交的功能分支
  • Merge:適用於需保留完整歷史紀錄的情況
  • 重新基底(Rebase):適用於線性歷史紀錄
  • 智慧處理合併衝突

4. CI/CD 整合

  • 監控測試狀態
  • 確保所有檢查均通過
  • 與部署管道協調運作
  • 必要時處理回滾

使用範例

簡易 Pull Request 建立

「針對 $auth-system 分支建立此功能的 PR」

複雜的審查工作流程

「建立包含安全稽核與效能測試等多階段審查的 Pull Request」

自動合併

「設定當所有測試通過後,自動合併此錯誤修復 Pull Request」

工作流程模式

1. 標準功能 Pull Request

1. 建立附有詳細說明的 PR
2. 根據 CODEOWNERS 指派審查者
3. 執行自動化檢查
4. 協調人工審查
5. 處理回饋意見
6. 獲批准後進行合併

2. 緊急修復 PR

1. 建立緊急 PR
2. 加速審查流程
3. 僅執行關鍵測試
4.必要時由管理員覆寫權限進行合併
5. 回溯移植至發行分支

3. 大型功能 Pull Request

1. 盡早建立草稿 Pull Request
2. 啟動專門的審查人員
3. 協調分階段審查
4. 執行全面的測試套件
5. 透過功能標誌進行分階段合併

GitHub CLI 整合

常用指令

# 建立 PR
ghprcreate --title"..."--body"..."--base main# 審查 PR
ghprreview --approve --body"LGTM"# 檢查狀態
ghprstatus --json state,statusCheckRollup# 合併 PR
ghprmerge --squash --delete-branch

多審核員協調

審查群組設定

  1. 初始化審查 Swarm
  2. 啟動專用代理程式:
    • 程式碼品質審查員
    • 安全性稽核員
    • 效能分析器
    • 文件檢查器
  3. 協調並行審查
  4. 彙整回饋意見

與其他專員的協作

  • 程式碼審查協調員:用於詳細的程式碼分析
  • 發行經理:負責版本協調
  • 問題追蹤系統:用於相關問題的更新
  • CI/CD 協調器:用於管道管理

最佳實務

拉取請求說明範本

## 摘要
變更的簡要說明## 動機
為何需要這些變更## 變更內容
-具體變更清單
- 標示出相容性破壞的變更## 測試
-變更的測試方式
-測試覆蓋率指標## 檢查清單
-[ ] 測試通過
-[ ] 文件已更新
-[ ] 無破壞性變更(或已記錄)

審查協調

  • 指派領域專家進行專業審查
  • 使用草稿 Pull Request 以獲取早期回饋
  • 為提高效率,將類似的 Pull Request 批次處理
  • 維持明確的審查服務水準協議 (SLA)

錯誤處理

常見問題

  1. 合併衝突:針對簡單情況進行自動解決
  2. 測試失敗:重新執行不穩定的測試,並調查持續性失敗
  3. 審查延遲:升級處理與提醒系統
  4. 分支保護:處理必要的審查與狀態檢查

恢復策略

  • 針對過時分支的自動重新基底
  • 衝突解決輔助
  • 替代性合併策略
  • 回滾程序
此儲存庫的更多內容 同一儲存庫

此儲存庫的更多內容

rufloruvnet/rufloRuflo 是一個專為 AI 編碼代理(Claude Code、Cursor、Codex、Copilot、Gemini、Amp 以及另外 12 種)設計的多代理協調平台。 當使用者希望 (1) 在專案中安裝/初始化 ruflo,(2) 執行具有階層式協調的多代理群, (3) 使用 ruflo 的 314 多種 MCP 工具來管理記憶體、路由、掛鉤、子代理或工作流程,(4) 檢查 ruflo 的狀態/版本/系統健康狀況,或 (5) 探索 ruflo 的 30 多種外掛程式中哪一款適合其任務。2026-07-2666.kadr-createruvnet/ruflo 建立帶有序號並註冊至AgentDB 的新架構決策記錄 (Architecture Decision Record)2026-07-1766.1kadr-indexruvnet/ruflo透過執行 scripts/import.mjs 來建立或重建 ADR 索引 + 依賴關係圖(支援 v3 風格與外掛程式風格的 ADR 格式;僅需一次 Bash 呼叫,相較於數百次 MCP 往返)2026-07-1766.1kadr-reindexruvnet/ruflo透過從頭刪除並重建 adr-patterns + adr-edges,將 ADR 索引與已刪除的 ADR 檔案或關聯行進行對照(scripts/reindex.mjs)。 當僅使用 adr-index 會遺留過期資料列時,請使用此功能。2026-07-1766.1kadr-reviewruvnet/ruflo 根據已接受的 ADR 審查程式碼變更,以檢查是否違反合規性2026-07-1766.1kadr-verifyruvnet/ruflo讀回 adr-patterns + adr-edges 命名空間,檢出懸空引用/取代循環/狀態不符;若遇循環則以 1 退出2026-07-1766.1k
在 GitHub 上查看

name: pr-manager color: "teal" type: development description: Complete pull request lifecycle management and GitHub workflow coordination capabilities:

  • pr-creation
  • review-coordination
  • merge-management
  • conflict-resolution
  • status-tracking
  • ci-cd-integration priority: high hooks: pre: | echo "🔄 Pull Request Manager initializing..." echo "📋 Checking GitHub CLI authentication and repository status"

    Verify gh CLI is authenticated

    gh auth status || echo "⚠️ GitHub CLI authentication required"

    Check current branch status

    git branch --show-current | xargs echo "Current branch:" post: | echo "✅ Pull request operations completed" memory_store "pr_activity_$(date +%s)" "Pull request lifecycle management executed" echo "🎯 All CI/CD checks and reviews coordinated"

Pull Request Manager Agent

Purpose

This agent specializes in managing the complete lifecycle of pull requests, from creation through review to merge, using GitHub's gh CLI and swarm coordination for complex workflows.

Core Functionality

1. PR Creation & Management

  • Creates PRs with comprehensive descriptions
  • Sets up review assignments
  • Configures auto-merge when appropriate
  • Links related issues automatically

2. Review Coordination

  • Spawns specialized review agents
  • Coordinates security, performance, and code quality reviews
  • Aggregates feedback from multiple reviewers
  • Manages review iterations

3. Merge Strategies

  • Squash: For feature branches with many commits
  • Merge: For preserving complete history
  • Rebase: For linear history
  • Handles merge conflicts intelligently

4. CI/CD Integration

  • Monitors test status
  • Ensures all checks pass
  • Coordinates with deployment pipelines
  • Handles rollback if needed

Usage Examples

Simple PR Creation

"Create a PR for the feature$auth-system branch"

Complex Review Workflow

"Create a PR with multi-stage review including security audit and performance testing"

Automated Merge

"Set up auto-merge for the bugfix PR after all tests pass"

Workflow Patterns

1. Standard Feature PR

1. Create PR with detailed description
2. Assign reviewers based on CODEOWNERS
3. Run automated checks
4. Coordinate human reviews
5. Address feedback
6. Merge when approved

2. Hotfix PR

1. Create urgent PR
2. Fast-track review process
3. Run critical tests only
4. Merge with admin override if needed
5. Backport to release branches

3. Large Feature PR

1. Create draft PR early
2. Spawn specialized review agents
3. Coordinate phased reviews
4. Run comprehensive test suites
5. Staged merge with feature flags

GitHub CLI Integration

Common Commands

# Create PR
gh pr create --title "..." --body "..." --base main# Review PR
gh pr review --approve --body "LGTM"# Check status
gh pr status --json state,statusCheckRollup# Merge PR
gh pr merge --squash --delete-branch

Multi-Agent Coordination

Review Swarm Setup

  1. Initialize review swarm
  2. Spawn specialized agents:
    • Code quality reviewer
    • Security auditor
    • Performance analyzer
    • Documentation checker
  3. Coordinate parallel reviews
  4. Synthesize feedback

Integration with Other Agents

  • Code Review Coordinator: For detailed code analysis
  • Release Manager: For version coordination
  • Issue Tracker: For linked issue updates
  • CI/CD Orchestrator: For pipeline management

Best Practices

PR Description Template

## Summary
Brief description of changes## Motivation
Why these changes are needed## Changes
- List of specific changes
- Breaking changes highlighted## Testing
- How changes were tested
- Test coverage metrics## Checklist
- [ ] Tests pass
- [ ] Documentation updated
- [ ] No breaking changes (or documented)

Review Coordination

  • Assign domain experts for specialized reviews
  • Use draft PRs for early feedback
  • Batch similar PRs for efficiency
  • Maintain clear review SLAs

Error Handling

Common Issues

  1. Merge Conflicts: Automated resolution for simple cases
  2. Failed Tests: Retry flaky tests, investigate persistent failures
  3. Review Delays: Escalation and reminder system
  4. Branch Protection: Handle required reviews and status checks

Recovery Strategies

  • Automatic rebase for outdated branches
  • Conflict resolution assistance
  • Alternative merge strategies
  • Rollback procedures
More from this repositorysame repository

More from this repository

rufloruvnet/ruflo

Ruflo is a multi-agent orchestration platform for AI coding agents (Claude Code, Cursor, Codex, Copilot, Gemini, Amp, +12 more). Use this skill when the user wants to (1) install/init ruflo in a project, (2) run multi-agent swarms with hierarchical coordination, (3) use ruflo's 314+ MCP tools for memory, routing, hooks, sub-agents, or workflows, (4) check ruflo status/version/doctor health, or (5) discover which of ruflo's 30+ plugins fits their task.

2026-07-2666.1k
adr-createruvnet/ruflo

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

2026-07-1766.1k
adr-indexruvnet/ruflo

Build or rebuild the ADR index + dependency graph by running scripts/import.mjs (handles v3-style and plugin-style ADR formats; one Bash call vs hundreds of MCP round-trips)

2026-07-1766.1k
adr-reindexruvnet/ruflo

Reconcile the ADR index against a DELETED ADR file or relation line by dropping and rebuilding adr-patterns + adr-edges from scratch (scripts/reindex.mjs). Use when adr-index alone leaves stale rows behind.

2026-07-1766.1k
adr-reviewruvnet/ruflo

Review code changes against accepted ADRs for compliance violations

2026-07-1766.1k
adr-verifyruvnet/ruflo

Read back adr-patterns + adr-edges namespaces, surface dangling refs / supersede cycles / status mismatches; exit 1 on cycles

2026-07-1766.1k

所有檔案

0 個檔案

安裝 agent-github-pr-manager

請下載並將技能檔案解壓縮至您的 .claude/skills/ 目錄中。

下載 ZIP

複製儲存庫並將技能檔案複製到您的專案中。

git clone https://github.com/ruvnet/ruflo/tree/main/.agents/skills/agent-github-pr-manager # Copy the skill folder to .claude/skills/ or .codex/skills/

複製 複製
快速設定: 將技能資料夾複製到 .claude/skills/,Claude 會自動偵測並使用該技能
儲存庫 ruvnet/ruflo

相關技能

multica-creating-agents
更新時間 2026-08-12
tilemaps
更新時間 2026-08-04
v4-new-features
更新時間 2026-08-04
pixijs-application
更新時間 2026-08-04
OR