Skip to content
Back to skills

2569 Pr Merge Checklist 4fc4e726

ASecurity

When asked to "action", "merge", or "complete" a PR, follow this checklist BEFORE merging:

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
toolsgobash

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2569-pr-merge-checklist_4fc4e726 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2569 Pr Merge Checklist 4fc4e726?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2569 Pr Merge Checklist 4fc4e726
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2569-pr-merge-checklist-4fc4e726/badge)](https://www.skillsdirectory.com/skills/tools-only-2569-pr-merge-checklist-4fc4e726)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# PR Merge Checklist

When asked to "action", "merge", or "complete" a PR, follow this checklist BEFORE merging:

## Pre-Merge Validation

### 1. Check Review Status
```bash
gh pr view $PR_NUMBER --json reviews,reviewDecision
```

**CRITICAL**: Do NOT merge if:
- There are unresolved review comments (use `/fix-pr` instead)
- Review decision is "CHANGES_REQUESTED"
- Review decision is "REVIEW_REQUIRED" (unless explicitly told to override)

### 2. Check CI Status
```bash
gh pr checks $PR_NUMBER
```

**CRITICAL**: Do NOT merge if:
- Any required checks are failing
- Checks are still running (wait for completion)

### 3. Review Comment Analysis
If there ARE review comments, parse them to determine if they require action:

```bash
gh pr view $PR_NUMBER --json comments,reviews
```

For each review comment:
- **Requesting changes?** → Use `/fix-pr` to address them
- **Approved with optional suggestions?** → Can merge if author wants
- **Discussion/questions only?** → Can merge if resolved

## Decision Tree

```
"Can you action this PR?"
  ↓
Are there review comments? → YES → Run `/fix-pr $PR_NUMBER` instead
  ↓ NO
Are CI checks passing? → NO → Fix CI first, then merge
  ↓ YES
Merge the PR ✓
```

## Common Mistakes to Avoid

❌ **WRONG**: Immediately merging when seeing "action this"
✅ **RIGHT**: Check review comments and CI status first

❌ **WRONG**: Ignoring review comments that request changes
✅ **RIGHT**: Use `/fix-pr` to address all review feedback

❌ **WRONG**: Merging a PR with failing CI
✅ **RIGHT**: Fix CI failures before merging

## Example Workflow

```bash
# User says: "@policyengine can you action this"

# Step 1: Check for reviews
gh pr view $PR_NUMBER --json reviews,comments --jq '.reviews'

# Step 2: If reviews found with changes requested
echo "Found unresolved review comments. Running /fix-pr instead..."
# Use /fix-pr to address them

# Step 3: If no reviews or approved
gh pr checks $PR_NUMBER
# If passing, proceed to merge

# Step 4: Merge
gh pr merge $PR_NUMBER --squash
```

## When to Use /fix-pr vs Direct Merge

| Situation | Action |
|-----------|--------|
| No reviews, CI passing | Direct merge ✓ |
| Reviews approved, CI passing | Direct merge ✓ |
| Review comments with changes requested | Use `/fix-pr` |
| Review comments unresolved | Use `/fix-pr` |
| CI failing | Fix CI, then merge |
| Discussion ongoing | Ask user for clarification |

## Remember

The `/fix-pr` command exists specifically to handle review comments and validation issues. Use it when there's ANY indication that the PR needs improvements before merging.

**Default assumption**: If review comments exist, they should be addressed before merging unless explicitly told otherwise.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…