agent-github-pr-manager
它能做什么
这项技能管理 GitHub 拉取请求的完整生命周期。适合想让 AI 发起拉取请求、协调审查并保持检查通过的开发者。
适用场景
- ✓当用户想创建一个描述清楚的拉取请求的时候。
- ✓当用户想协调审查或处理合并冲突的时候。
- ✓当用户想跟踪拉取请求上的 CI 和状态检查的时候。
技能链接
https://github.com/ruvnet/ruflo/blob/main/.agents/skills/agent-github-pr-manager/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的分支发起一个拉取请求,协调审查,并告诉我什么时候可以合并。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能会检查 GitHub CLI 的登录状态和当前分支,创建带描述的拉取请求,分配审查,在合适时设置自动合并,关联相关问题,并跟踪检查结果。
技术内容(原始 SKILL.md)
作者在 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
- Initialize review swarm
- Spawn specialized agents:
- Code quality reviewer
- Security auditor
- Performance analyzer
- Documentation checker
- Coordinate parallel reviews
- 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
- Merge Conflicts: Automated resolution for simple cases
- Failed Tests: Retry flaky tests, investigate persistent failures
- Review Delays: Escalation and reminder system
- Branch Protection: Handle required reviews and status checks
Recovery Strategies
- Automatic rebase for outdated branches
- Conflict resolution assistance
- Alternative merge strategies
- Rollback procedures
常见问题
它能自动合并吗?
在合适的时候,这项技能可以设置自动合并。
它会关联问题吗?
会。它会自动关联相关问题。
首先需要设置什么?
必须先通过 GitHub CLI 完成身份验证,如果没有,这项技能会提醒你。
详情
热度
- GitHub 星标
- 81k
- 排名
- #1469
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。