Token导航 LogoToken导航TokenDH.com
待分类需要联网github未标认证来源可访问许可证需确认审计提醒

process-pr过程公关

Agent Skill

process-pr 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

250

周安装

10

GitHub Stars

公开资料未说明

下载量

81
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:process-pr(过程公关)
来源仓库:https://github.com/squirrel289/pax
仓库路径:skills/process-pr
安装命令:
npx skills add https://github.com/squirrel289/pax --skill process-pr
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/squirrel289/pax --skill process-pr

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合围绕仓库状态、代码变更或协作事项进行整理和辅助决策。
  • 可结合来源仓库和原始 README 继续核验具体用法和功能边界。
  • 安装前建议确认权限范围、维护状态及是否触发联网或命令执行。
  • 安装方式:通过 GitHub 仓库安装,支持 Codex、Claude、Cursor、Gemini CLI。

SKILL.md

Process PR

A comprehensive workflow skill that orchestrates the complete pull request lifecycle from initial review through merge.

Purpose

Provides end-to-end automation for processing PRs, composing multiple workflow and tool skills into a unified, efficient process.

When to Use

Use this workflow when:

  • You want complete PR automation from start to finish
  • PR is ready for final processing and merge
  • You need a consistent, repeatable PR workflow
  • Multiple PRs need to be processed efficiently

Skill Composition

This workflow composes:

  1. pull-request-tool: PR interaction and status checking
  2. parallel-execution: Concurrent checks and analyses
  3. sequential-execution: Ordered workflow stages
  4. resolve-pr-comments: Address review feedback
  5. merge-pr: Safe merge execution
  6. yolo OR collaborative: Execution mode

Parameters

Required

  • pr-number: Pull request number(s) to process
  • repository: Repository in format owner/repo

Optional

  • interaction-mode: yolo (autonomous) or collaborative (interactive)
  • merge-method: merge, squash (default), or rebase
  • delete-branch: Delete branch after merge (default: true)
  • run-local-checks: Run tests/lint locally before merge (default: true)
  • resolve-comments: Auto-resolve review comments (default: true)
  • require-approvals: Minimum required approvals (default: 1)

Workflow Stages

Stage 1: Initial Assessment (Parallel)

Execute these checks simultaneously for speed:

  1. Fetch PR details (pull-request-tool)

- Get PR metadata, status, labels - Identify base and head branches

  1. Check review status (pull-request-tool)

- Count approvals - Check for blocking reviews - List unresolved threads

  1. Verify CI checks (pull-request-tool)

- Get status check results - Identify failing/pending checks

Result: Comprehensive PR readiness snapshot

Stage 2: Local Verification (Sequential)

If run-local-checks = true:

  1. Fetch branch

- Checkout PR branch - Pull latest changes

  1. Run tests (parallel)

- Unit tests - Integration tests - Linter - Type checker

  1. Verify build

- Compile/build project - Check for build errors

Stage 3: Address Feedback (Sequential)

If unresolved comments exist and resolve-comments = true:

  1. Invoke resolve-pr-comments workflow

- Uses interaction mode (yolo or collaborative) - Addresses all review feedback - Resolves threads

  1. Push changes

- Commit fixes - Push to PR branch - Trigger CI re-run

  1. Wait for checks

- Monitor CI status - Wait for all checks to complete

Stage 4: Final Verification (Parallel)

Before merge, verify in parallel:

  1. Confirm approvals

- Required approvals met - No blocking reviews

  1. Confirm checks

- All status checks pass - No failing required checks

  1. Confirm mergeable

- No conflicts - Branch up to date

Stage 5: Merge (Sequential)

  1. Invoke merge-pr workflow

- Uses interaction mode (yolo or collaborative) - Executes safe merge - Deletes branch if requested

  1. Verify merge

- Confirm PR merged - Verify commit in main - Check branch deleted

Stage 6: Post-Merge (Optional)

  1. Update local repo

- Pull main branch - Clean up local references

  1. Notify stakeholders

- Post completion message - Tag related issues - Update project boards

Interaction Modes

YOLO Mode (Fully Autonomous)

When interaction-mode = yolo:
- Complete entire workflow without confirmation
- Make all decisions automatically
- Auto-resolve issues where possible
- Report only final summary

Example:

User: "Process PR #42 in YOLO mode"

Agent executes full workflow:
1. Fetches PR, checks status (parallel)
2. Runs local tests (parallel)
3. Addresses 3 review comments
4. Resolves threads
5. Pushes fixes
6. Waits for CI (all pass)
7. Verifies approvals (2 found)
8. Merges PR (squash)
9. Deletes branch

Reports: "PR #42 processed and merged. Addressed 3 comments, all checks pass, merged to main."

Collaborative Mode (Interactive)

When interaction-mode = collaborative:
- Show progress at each stage
- Request confirmation for major decisions
- Present issues for user guidance
- Allow intervention at checkpoints

Example:

User: "Process PR #42"

Agent: "Starting PR #42 processing...

Stage 1: Initial Assessment
✅ PR details fetched
✅ Reviews: 2 approvals
⚠️  Unresolved comments: 3

Should I proceed to address the comments? (yes/no/show)"

User: "show"

[Shows 3 comments]

User: "yes"

Agent: "Addressing comments...
✅ Comment 1: Added error handling
✅ Comment 2: Fixed typo
✅ Comment 3: Clarified with reply

Pushing changes and waiting for CI..."

[CI completes]

Agent: "All checks pass. Ready to merge.
Method: Squash and merge
Delete branch: Yes

Proceed? (yes/no)"

User: "yes"

Agent: "✅ PR #42 merged successfully"

Optimization Strategies

Parallel Execution

Where possible, execute independently:

  • Initial assessment (PR fetch + reviews + checks)
  • Local verification (tests + linter + build)
  • Final verification (approvals + checks + mergeable)

Benefits: 3-5x faster than sequential

Sequential Execution

Where order matters:

  • Address comments → Push changes → Wait for CI
  • Verify readiness → Merge → Verify completion
  • Each stage depends on previous success

Mixed Approach

Combine for optimal speed:

Stage 1: Parallel assessment
Stage 2: Sequential local checks
Stage 3: Sequential comment resolution
Stage 4: Parallel final verification
Stage 5: Sequential merge

Error Handling

Common Issues

  1. Failing CI checks

- YOLO: Wait for checks to pass or report blocker - Collaborative: Show failures, ask to investigate or wait - Auto-retry if transient

  1. Unresolved comments

- YOLO: Auto-resolve if trivial, otherwise address - Collaborative: Show comments, get approval for resolution - Invoke resolve-pr-comments workflow

  1. Merge conflicts

- YOLO: Report blocker (cannot auto-resolve conflicts) - Collaborative: Suggest resolution strategies - Requires manual intervention

  1. Missing approvals

- YOLO: Report blocker, cannot proceed - Collaborative: Show who can approve, ask to request - Wait for approvals

  1. Local test failures

- YOLO: Investigate and fix if possible - Collaborative: Show failures, ask for guidance - May skip if only remote checks required

Workflow Variations

Quick Merge (Minimal Checks)

For low-risk PRs:

Parameters:
  run-local-checks: false
  resolve-comments: false (assume resolved)

Workflow:
1. Verify CI and approvals
2. Merge immediately

Thorough Review (All Checks)

For high-risk PRs:

Parameters:
  run-local-checks: true
  resolve-comments: true
  interaction-mode: collaborative

Workflow:
1. Full local verification
2. Interactive comment resolution
3. Manual merge confirmation

Batch Processing (Multiple PRs)

For processing many PRs:

Parameters:
  pr-number: [42, 43, 44, 45]
  interaction-mode: yolo

Workflow:
1. Process PRs in parallel using parallel-execution
2. Each PR follows full process-pr workflow
3. Report summary of all PRs

Best Practices

  1. Use appropriate mode: YOLO for routine, collaborative for critical
  2. Run local checks: Catch issues before CI
  3. Address comments promptly: Don't skip feedback
  4. Verify before merge: Never rush the final checks
  5. Clean up branches: Delete after merge
  6. Monitor CI: Ensure checks complete before merge
  7. Document decisions: Log choices made during process
  8. Consistent method: Use same merge method across repo

Safety Guardrails

Always enforce:

  • ✅ Required approvals received
  • ✅ All required checks pass
  • ✅ No merge conflicts
  • ✅ PR is actually open
  • ✅ Targeting correct base branch

Never:

  • ❌ Merge with failing tests
  • ❌ Skip required approvals
  • ❌ Override branch protection
  • ❌ Ignore unresolved blockers
  • ❌ Merge conflicted PRs

Output Format

YOLO Mode Output

TASK: Process PR #42
STATUS: Complete

STAGES COMPLETED:
✅ Stage 1: Initial Assessment (3 checks)
✅ Stage 2: Local Verification (tests, lint, build)
✅ Stage 3: Address Feedback (3 comments resolved)
✅ Stage 4: Final Verification (all pass)
✅ Stage 5: Merge (squash method)

SUMMARY:
- PR #42: "Add authentication middleware"
- Comments addressed: 3
- Files changed: 4
- Tests: All passing
- Approvals: 2 (alice, bob)
- Merge method: Squash
- Branch: feature-auth (deleted)

RESULT: Successfully merged to main
TIME: 8 minutes (5min CI wait)

Collaborative Mode Output

PR Processing: #42

Current Stage: 3/5 - Addressing Feedback
Progress: [████████░░] 80%

✅ Stage 1: Initial Assessment
✅ Stage 2: Local Verification
⏳ Stage 3: Addressing Feedback (2/3 comments)
⬜ Stage 4: Final Verification
⬜ Stage 5: Merge

Current Action: Resolving review thread on auth.ts:42
Waiting for: User confirmation to proceed

Next: 1 more comment, then final checks

Integration Examples

Example 1: Single PR Full Process

User: "Process PR #42 end-to-end"

Execution:
- Uses: process-pr (this workflow)
- Mode: collaborative (default)
- Stages: All 5 stages
- Output: Interactive progress updates

Example 2: Batch PR Processing

User: "Process all approved PRs"

Execution:
1. List open PRs
2. Filter for approved PRs
3. Use parallel-execution to spawn:
   - process-pr for PR #42
   - process-pr for PR #43
   - process-pr for PR #44
4. Each uses yolo mode
5. Report summary of all

Example 3: PR Pipeline

User: "Set up automated PR pipeline"

Execution:
1. Monitor for new reviews/approvals
2. When PR approved:
   - Trigger process-pr in yolo mode
   - Auto-merge if all checks pass
3. Notify on completion

Quick Reference

PURPOSE:
  End-to-end PR processing from review to merge

COMPOSITION:
  parallel-execution + sequential-execution + pull-request-tool +
  resolve-pr-comments + merge-pr + (yolo OR collaborative)

MODES:
  YOLO:          Fully autonomous end-to-end
  Collaborative: Interactive with checkpoints

STAGES:
  1. Initial Assessment (parallel)
  2. Local Verification (sequential)
  3. Address Feedback (sequential)
  4. Final Verification (parallel)
  5. Merge (sequential)

PARAMETERS:
  pr-number:        Required (single or array)
  repository:       Required (owner/repo)
  interaction-mode: yolo or collaborative
  merge-method:     merge/squash/rebase
  delete-branch:    true (default)
  run-local-checks: true (default)
  resolve-comments: true (default)

OPTIMIZATION:
  - Parallel where possible (assessment, verification)
  - Sequential where needed (comments, merge)
  - Mixed for optimal speed

SAFETY:
  Always verify:
  - Required approvals
  - All checks pass
  - No conflicts
  - Correct base branch

  Never:
  - Merge with failing tests
  - Skip approvals
  - Override protection

Related Skills

  • pull-request-tool: For PR interaction, checks, and merge operations
  • resolve-pr-comments: For handling review feedback during PR processing
  • merge-pr: For executing merge with proper verification and cleanup
  • handle-pr-feedback: For triaging feedback severity and routing decisions
  • update-work-item: For updating work item status when PR is merged
  • parallel-execution: For concurrent assessment of PR readiness
  • sequential-execution: For ordered workflow phases (assess → resolve → merge)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33%
按下载量换算27

Claude

28.89%
按下载量换算23

Cursor

20.79%
按下载量换算17

Gemini CLI

10.04%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills