hawkingrei/tidb-dev-prompt/pr-review-helper

Claude Code and agent skill by hawkingrei/tidb-dev-prompt

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Gather PR review context: all comments (including review suggestions), diff context, and CI status; download GitHub Actions logs on failures. Prefer GitHub MCP for reads, fall back to gh CLI when needed.

Install

npx vskill@latest install hawkingrei/tidb-dev-prompt/pr-review-helper

SKILL.md

The same SKILL.md was published earlier as hawkingrei/tidb-dev-prompt/pr-review-helper.

pr-review-helper

Collect baseline information for PR review with minimal back-and-forth. Prefer GitHub MCP for all reads; if MCP lacks data or is unavailable, fall back to gh CLI.

Required Inputs

  • Repository owner/name
  • PR number

If any are missing, ask the user once. Do not guess.

Workflow (Prefer GitHub MCP)

  1. PR overview
  • Use mcp__github__pull_request_read with method: get to capture title, author, base/head branches, and head SHA.
  1. All comments and review suggestions
  • Review comment threads: mcp__github__pull_request_read with method: get_review_comments.
  • Extract: file path, line, author, body.
  • If a suggestion block exists, capture the suggested patch and map it to the diff hunk.
  • Review summary: mcp__github__pull_request_read with method: get_reviews.
  • Capture approvals, change requests, and top-level review bodies.
  • PR/issue comments: mcp__github__pull_request_read with method: get_comments.
  • Include non-review discussion.
  1. Diff context
  • Use mcp__github__pull_request_read with method: get_diff for full diff.
  • If the diff is large, also request method: get_files to scope by file before drilling into relevant hunks.
  1. CI status
  • Use mcp__github__pull_request_read with method: get_status for the head SHA.
  • Identify failing checks. If failures appear to be GitHub Actions, proceed to logs.
  1. GitHub Actions logs (when failures exist)
  • If MCP does not provide sufficient log details, fall back to gh CLI.
  • Suggested flow:
  • gh pr checks <PR> to list failing runs and run IDs.
  • gh run view <run-id> --log-failed to extract the failure reason.
  • If logs are truncated or need full context:
  • gh run download <run-id> then inspect the downloaded logs.

TiDB-specific CI heuristics

Apply these rules when the repository is pingcap/tidb or a TiDB fork:

  • If the diff does not touch parser-related files, treat parser test failures as likely flaky noise and do not block on them unless the logs show a direct causal link to the change.
  • Treat fast_test_tiprow, idc-jenkins-ci-tidb/unit-test, and pull-build-next-gen as equivalent unit-test surfaces. Summarize them as one signal instead of three independent blockers.
  • If any one of those equivalent jobs is the blocker and the failure looks flaky or infra-related, recommend replying /retest immediately instead of waiting for the other two to finish or fail.
  • While CI is pending or rerunning, do not keep the user blocked on the same PR. Suggest switching to another ready issue, review, or coding task and come back when fresh CI signal arrives.

Fallback Workflow (gh CLI Only)

Use this when MCP is unavailable or incomplete.

  1. PR overview
  • gh pr view <PR> --json title,author,baseRefName,headRefName,headRefOid
  1. Comments and review threads
  • gh pr view <PR> --json comments,reviews,reviewThreads
  • Parse reviewThreads for file/line and suggestion blocks.
  1. Diff
  • gh pr diff <PR>
  1. CI status and logs
  • gh pr checks <PR>
  • gh run view <run-id> --log-failed
  • gh run download <run-id> if full logs are needed

Output Expectations

Provide a concise summary with:

  • Review comments grouped by file/line, including suggestion patches if present
  • Non-review discussion comments that may affect changes
  • CI status: pass/fail, failing jobs, and key error messages
  • For TiDB PRs, separate likely ignorable flaky failures from actionable failures
  • Clear action items for the PR author

Do not post new comments, re-run CI, or update the PR unless the user explicitly asks.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hawkingrei/tidb-dev-prompt/pr-review-helper/badge)](https://verified-skill.com/skills/hawkingrei/tidb-dev-prompt/pr-review-helper)

Something wrong with this skill or its page? Tell us.