微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

PR Advocacy

PR Advocacy · v1.0.2
这个包缺安装入口,装上也不会生效 缺 SKILL.md 或 frontmatter 不完整(NO_FRONTMATTER)。我们仍保留下载,方便你自行查看内容。
安全 unknown 级 作者 linux2010 公开目录收录
953 下载 0 安装 4.5k 收藏 1 浏览

简介

PR Advocacy

原始描述

Monitor PR status every 4 hours, promptly address feedback and CI issues, communicate clearly within 24 hours, and drive reviews to timely merge.

通过你的 Agent 添加

安装目录:pr-advocacy/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/pr-advocacy/
Codex CLI~/.codex/skills/pr-advocacy/
DeepSeek Harness~/.agents/skills/pr-advocacy/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文

PR Advocacy Skill

Purpose

Actively monitor, respond to, and drive Pull Request reviews to completion. This skill ensures PRs don't get stuck in review limbo and addresses maintainer feedback promptly.

Core Responsibilities

1. PR Status Monitoring

  • Check PR status every heartbeat cycle (1 hour)
  • Monitor CI/CD check results
  • Track reviewer comments and requested changes
  • Identify blocking vs non-blocking feedback

2. Professional Response Protocol

  • Acknowledge all reviewer feedback within 24 hours
  • Provide clear, technical responses to questions
  • Implement requested changes promptly when valid
  • Politely justify decisions when disagreeing with feedback

3. Proactive Issue Resolution

  • Fix CI/CD failures immediately
  • Address merge conflicts proactively
  • Update documentation when code changes
  • Add tests for edge cases identified by reviewers

4. PR Health Assessment

  • Green Status: All checks pass, no pending reviews → Wait for merge
  • Yellow Status: Minor feedback, passing checks → Respond and wait
  • Red Status: Failing checks or major feedback → Immediate action required
  • Stale Status: No activity for 48+ hours → Gentle ping to reviewers

PR Status Processing Rules

OPEN State Handling

When a PR is in OPEN state:

  • Check for maintainer/reviewer comments pointing out issues
  • If feedback requires changes:
    • Analyze the specific feedback content
    • Create fixes according to maintainer suggestions
    • Automatically commit changes to the PR branch
    • Update PR description if needed
    • Record fix details for learning
  • If no issues found:
    • Continue monitoring CI/CD status
    • Wait for merge approval

CLOSED/REJECTED State Handling

When a PR is CLOSED or REJECTED:

  • Immediately remove from active tracking list
  • Stop all monitoring activities for this PR
  • Record closure reason for future learning and improvement
  • Do not attempt to resubmit unless explicitly instructed

MERGED State Handling

When a PR is successfully MERGED:

  • Remove from active tracking list
  • Add to merged records for success tracking
  • Celebrate the contribution!
  • Update skills and workflows based on successful patterns

Implementation Guidelines

Check Status Analysis

# Check PR status and checks
gh pr view <PR_NUMBER> --json statusCheckRollup,reviewDecision

# Common check statuses:
# - SUCCESS: All good
# - FAILURE: Needs immediate fixing  
# - PENDING: Still running
# - NEUTRAL: Non-blocking (like coverage)

Reviewer Feedback Response Template

Thanks for the review! 

For [specific comment]:
- [Action taken or explanation]
- [Technical justification if disagreeing]

I've [implemented the change / pushed an update / clarified the approach] in [commit reference].

Let me know if you need any additional changes!

Common PR Issues & Solutions

CI/CD Failures
  • Lint errors: Run npm run lint -- --fix locally first
  • Test failures: Reproduce locally, add missing test cases
  • Build errors: Verify dependencies, check Node.js version compatibility
Code Review Feedback
  • Style issues: Follow project's .editorconfig and style guide
  • Architecture concerns: Reference existing patterns in codebase
  • Security concerns: Prioritize security fixes, add validation layers
Documentation Gaps
  • Missing docs: Add/update relevant documentation files
  • Inconsistent formatting: Use project's markdown template
  • Outdated examples: Update code examples to match new implementation

Automation Integration

Heartbeat Integration

  • Integrate with existing heartbeat monitoring system (every hour)
  • Add PR status to daily summary reports
  • Escalate stale PRs after 48 hours of inactivity

Memory Tracking

  • Maintain PR tracking list in workspace memory
  • Automatically clean up closed/rejected PRs from tracking list
  • Record resolution outcomes for learning
  • Update core memory with successful advocacy patterns

Automatic Response Workflow

  1. Detect feedback on OPEN PRs
  2. Analyze requirements and create appropriate fixes
  3. Commit changes to existing PR branch
  4. Update tracking status and notify maintainers
  5. Handle closure by removing from active monitoring

Success Metrics

  • Response time: < 24 hours to reviewer feedback
  • Resolution rate: > 90% of PRs merged within 7 days
  • Rework rate: < 10% of PRs require major revisions after initial review
  • Maintainer satisfaction: Positive feedback from maintainers on communication quality

Best Practices

Communication

  • Be concise but thorough in responses
  • Use code blocks for technical explanations
  • Reference specific line numbers when discussing changes
  • Thank reviewers for their time and expertise

Technical Excellence

  • Ensure changes are minimal and focused
  • Maintain backward compatibility when possible
  • Follow project conventions exactly
  • Test changes thoroughly before pushing

Professionalism

  • Never argue with reviewers; seek to understand their perspective
  • Admit mistakes quickly and fix them
  • Offer to help with related issues when appropriate
  • Celebrate successful merges and thank maintainers

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill