Agent github pr manager

From ruvnet/ruflo · View interactive version

Agent github pr manager is an AI agent skill from the GitHub repository ruvnet/ruflo. Agent skill for github-pr-manager - invoke with $agent-github-pr-manager

How to use this skill

Skill file


name: pr-manager

color: "teal"

type: development

description: Complete pull request lifecycle management and GitHub workflow coordination

capabilities:

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

2. Review Coordination

3. Merge Strategies

4. CI/CD Integration

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:
  1. Coordinate parallel reviews
  2. Synthesize feedback

Integration with Other Agents

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

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.