Agent Github Pr Manager

作者 ruvnet6051f6702b61無授權條款74K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

Agent skill for github-pr-manager - invoke with $agent-github-pr-manager

AI 產生的概覽

管理 GitHub 拉取請求的完整生命週期,涵蓋建立、審查協調、合併與 CI 檢查。

功能
此技能提供透過 gh 命令列工具處理 GitHub 拉取請求的說明,包含建立附說明的 PR、指派審查者、協調審查、選擇合併策略,以及監控 CI/CD 狀態。它也描述多代理審查流程、衝突解決與錯誤復原方式。產出是協調後的 PR 操作,而非程式碼或檔案。
適用情境
適用於在 GitHub 儲存庫中建立、審查或合併拉取請求,以及協調審查、檢查或合併衝突的情境。也適合需要在測試通過後進行分階段或自動合併的工作流程。
執行需求
需要已驗證並指向儲存庫的 GitHub CLI(gh),以及用於分支操作的 git。此技能不含指令碼,僅為說明文件。

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

bash
1. Create PR with detailed description2. Assign reviewers based on CODEOWNERS3. Run automated checks4. Coordinate human reviews5. Address feedback6. Merge when approved

2. Hotfix PR

bash
1. Create urgent PR2. Fast-track review process3. Run critical tests only4. Merge with admin override if needed5. Backport to release branches

3. Large Feature PR

bash
1. Create draft PR early2. Spawn specialized review agents3. Coordinate phased reviews4. Run comprehensive test suites5. Staged merge with feature flags

GitHub CLI Integration

Common Commands

bash
# Create PRgh pr create --title "..." --body "..." --base main
# Review PRgh pr review --approve --body "LGTM"
# Check statusgh pr status --json state,statusCheckRollup
# Merge PRgh 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

markdown
## SummaryBrief description of changes
## MotivationWhy 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

來源與署名

來源:ruvnet/ruflo位於.agents/skills/agent-github-pr-manager提交6051f67

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架