# My PR Checker

Manage your own GitHub pull requests, check CI status, inline review comments...

- Repository: https://github.com/homeassistant-ai/ha-mcp (5395 stars)
- Category: Git and review
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add homeassistant-ai/ha-mcp --skill my-pr-checker -g -a claude-code -y`
Codex: `npx skills add homeassistant-ai/ha-mcp --skill my-pr-checker -g -a codex -y`
Cursor: `npx skills add homeassistant-ai/ha-mcp --skill my-pr-checker -g -a cursor -y`
Gemini CLI: `npx skills add homeassistant-ai/ha-mcp --skill my-pr-checker -g -a gemini-cli -y`

## Description

Manage your own GitHub pull requests, check CI status, inline review comments, PR-level comments, resolve review threads, fix issues, and iterate until all checks pass and threads are resolved. Use for managing your own PRs (not external contributions). Triggers on "check my PR", "check PR", "/my-pr-checker <number>".

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# My PR Checker

Review and resolve all outstanding issues on PR #$ARGUMENTS in `homeassistant-ai/ha-mcp`.

## Step 1: Full PR Assessment

```bash
# PR overview
gh pr view "$ARGUMENTS" --repo homeassistant-ai/ha-mcp \
  --json title,body,state,reviews,statusCheckRollup,headRefName,additions,deletions,changedFiles

# CI checks
gh pr checks "$ARGUMENTS" --repo homeassistant-ai/ha-mcp

# Inline review comments
gh api repos/homeassistant-ai/ha-mcp/pulls/"$ARGUMENTS"/comments \
  --jq '.[] | {id, path, line, author: .user.login, body}'

# PR-level comments
gh api repos/homeassistant-ai/ha-mcp/issues/"$ARGUMENTS"/comments \
  --jq '.[] | {id, author: .user.login, body}'

# Unresolved review threads
gh api graphql -F pr="$ARGUMENTS" -f query='query($pr: Int!) { repository(owner:"homeassistant-ai", name:"ha-mcp") { pullRequest(number:$pr) { reviewThreads(first:100) { nodes { id isResolved path line comments(first:1) { nodes { databaseId body author { login } } } } } } } }'
```

## Step 2: Triage Comments

- **Human comments**: highest priority
- **Bot comments** (Copilot, Codex, CodeRabbit, etc.): treat as suggestions, assess whether they prevent a bug or improve maintainability; dismiss with explanation if not

Accept if: prevents a bug, improves clarity for future maintainers, aligns with project conventions, addresses security.
Dismiss if: incorrect suggestion, reduces readability, conflicts with project patterns, already handled elsewhere.

## Step 3: Fix Code Issues

```bash
gh pr checkout "$ARGUMENTS" --repo homeassistant-ai/ha-mcp
# make changes
git add <files>
git commit -m "fix: address review feedback - [description]"
git push
```

Fix unrelated test failures encountered (document in final summary).

After each push, if the scope changed, update the PR description:
```bash
gh pr edit "$ARGUMENTS" --repo homeassistant-ai/ha-mcp --body "..."
```

## Step 4: Resolve Each Thread (both steps required)

The rest: https://github.com/homeassistant-ai/ha-mcp/blob/HEAD/.claude/skills/my-pr-checker/SKILL.md
