skilly. Buy ad slot
All skills
Uncategorized / AGENT SKILL

pr-review

stritti/nak-district-planner
0 installs 0 GitHub stars
0

Handle GitHub PR review comments — fetch, fix, commit, reply, and verify. Use when review feedback arrives on a pull request.

Low community score

pr-review: This skill has a community score below −5, meaning it has received more downvotes than upvotes. Review its source and assessment before installing. Community votes are not a security review.

BEFORE YOU INSTALL

Understand the trade-offs.

SECURITY REVIEW

Not yet assessed

Review the original instructions and requested permissions before installing.

No security review is available for this catalog entry yet.

SKILL QUALITY

Not yet assessed

How clearly the skill guides your agent, how complete its workflow is, and how you can check the outcome.

No quality assessment is available for this catalog entry yet.

The full skill.

Original instructions from the publisher’s SKILL.md

# PR Review Workflow

Handle GitHub PR review comments systematically: fetch all comments, fix each issue in a separate commit, reply with commit SHA, and run quality checks.

**Input**: PR number (or auto-detected from current branch).
**Prerequisites**: `gh` CLI authenticated, git push access.

## Steps

### 1. Fetch all review comments

Get all review comments with full metadata (IDs, paths, line numbers, diff hunks):

```bash
gh api repos/{owner}/{repo}/pulls/{number}/comments --paginate
```

Key fields to extract per comment:
- `id` — comment ID for replying
- `path` — file path
- `line` / `original_line` — line number
- `body` — the review text
- `diff_hunk` — context snippet

### 2. Read affected files

Read each file referenced in the comments in full to understand the surrounding context before making changes.

### 3. Fix each issue in a separate commit

- Create one commit per logical fix
- Use descriptive commit messages: `fix: short description`
- Keep commits focused and atomic
- Reference the review context in the commit body if helpful

### 4. Reply to each review comment

For each comment, post a reply referencing the fix commit:

```bash
gh api repos/{owner}/{repo}/pulls/{number}/comments/{comment_id}/replies \
  -f body="Fixed in {sha} — short description of the fix"
```

### 5. Push and run quality checks

```bash
git push origin {branch}
```

Then run project checks:
- Backend: ruff check, ruff format --check, pytest
- Frontend: ESLint, TypeScript build, Vitest
- Docker Compose: config --quiet

## Output On Success

```text
## PR Review Complete ✓

**Changes (N commits):**
- `{sha}` fix: description
- ...

**Quality Checks:**
- Backend: ruff ✓, pytest ✓ (N tests)
- Frontend: ESLint ✓, build ✓, Vitest ✓ (N tests)
- Docker: ✓

All review comments replied to.
```

## Tips

- For Copilot reviews, the author is typically "github-actions[bot]" or "Copilot"
- Always reply in German if the PR/project uses German
- When multiple comments affect the same file, consider batching them in one commit but reply to each individually
- If a comment is a question rather than a fix request, answer rather than commit

Skill folder

Files included alongside SKILL.md in the publisher’s repository.