pr-comments

Export GitHub PR review comments, preprocess for evaluation, and fix or reject each review.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "pr-comments" with this command: npx skills add donghaozhang/video-agent-skill/donghaozhang-video-agent-skill-pr-comments

PR Comments Skill

Export GitHub PR review comments, preprocess for evaluation, and fix or reject each review.

Actions

  1. Export: /pr-comments export <owner/repo> <pr-number>

Export all review comments from a PR to individual markdown files.

bash .claude/skills/pr-comments/scripts/export.sh $1 $2 $3

Output: .github/pr-history/pr-{number}/ with one file per comment.

  1. Preprocess: /pr-comments preprocess <input-dir>

Clean exported comments for agentic evaluation (removes <details> blocks, adds evaluation prompt).

bash .claude/skills/pr-comments/scripts/batch-preprocess.sh $1

Output: {input-dir}-tasks/ with cleaned task files.

  1. Analyze: /pr-comments analyze <tasks-dir>

Show comments grouped by source file with recommended processing order.

bash .claude/skills/pr-comments/scripts/analyze.sh $1

Output: Table showing which files have multiple comments and line numbers (sorted for bottom-up fixing).

  1. Fix: /pr-comments fix <task-file.md>

Evaluate a single PR review comment. Read the source file, determine if valid, then fix or explain.

Follow instructions in review-fix.md.

  1. Batch: /pr-comments batch <tasks-dir>

Process all task files in a directory. Groups comments by source file and fixes bottom-up to avoid line number shifts.

Critical: Multiple comments often target the same file. Batch mode:

  • Groups tasks by source file

  • Sorts by line number descending (bottom-up)

  • Fixes all comments for one file before moving to next

Follow instructions in review-batch.md.

  1. Resolve: /pr-comments resolve <owner/repo> <pr-number> <comment-id> [task-file]

Resolve a PR review thread on GitHub and move task to completed folder.

bash .claude/skills/pr-comments/scripts/resolve-thread.sh $1 $2 $3 $4

Example:

/pr-comments resolve donghaozhang/qcut 102 2742327370 .github/pr-history/pr-102-tasks/comment.md

What it does:

  • Resolves the PR conversation thread on GitHub

  • Moves the task file to {tasks-dir}_completed/

When to use:

  • After FIXED → Resolve and move to completed

  • After ALREADY_FIXED → Resolve and move to completed

  • NOT_APPLICABLE → Don't resolve (leave comment explaining why)

Complete Workflow

Step 1: Export comments from PR

/pr-comments export donghaozhang/qcut 102

Step 2: Preprocess into task files

/pr-comments preprocess .github/pr-history/pr-102

Step 3: Analyze (see file groupings)

/pr-comments analyze .github/pr-history/pr-102-tasks

Step 4a: Fix single comment

/pr-comments fix .github/pr-history/pr-102-tasks/comment.md

Step 4b: Or batch fix all

/pr-comments batch .github/pr-history/pr-102-tasks

Step 5: Resolve thread and move task to completed

/pr-comments resolve donghaozhang/qcut 102 2742327370 .github/pr-history/pr-102-tasks/comment.md

Output Structure

.github/pr-history/ ├── README.md ├── pr-102/ # Raw exported comments │ ├── coderabbitai[bot]_file_L42_123.md │ └── gemini-code-assist[bot]_file_L50_456.md ├── pr-102-tasks/ # Preprocessed for evaluation (pending) │ └── coderabbitai[bot]_file_L50_456.md └── pr-102-tasks_completed/ # Resolved tasks └── coderabbitai[bot]_file_L42_123.md

Supporting Files

  • review-fix.md - Single comment evaluation instructions

  • review-batch.md - Batch processing instructions

Requirements

  • GitHub CLI (gh ) - installed and authenticated

  • jq

  • JSON processing

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

ffmpeg media processing

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

ai content pipeline

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

organize-project

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

project-docs

No summary provided by upstream source.

Repository SourceNeeds Review