AgentSkillsCN

pr-review

指导开发者构建高质量的MCP(模型上下文协议)服务器,使大语言模型能够通过精心设计的工具,与外部服务实现高效交互。当您需要构建MCP服务器,以集成外部API或服务时——无论是采用Python(FastMCP)还是Node/TypeScript(MCP SDK)——本技能都将为您提供全面的指导。从工具设计、身份认证,到Docker部署与评估方案的制定,本技能均能一一涵盖。但请注意:若您已拥有现成的MCP服务器,则无需使用本技能,直接调用现有服务器即可。

SKILL.md
--- frontmatter
name: pr-review
description: Review a PR for correctness and quality
allowed-tools: Bash(git:*), Bash(gh:*)

Review a Pull Request for quality and correctness.

Usage

Provide PR number or URL as argument: /pr-review 123 or /pr-review https://github.com/...

Review Steps

  1. Fetch PR information

    bash
    gh pr view <PR_NUMBER> --json title,body,files,additions,deletions,baseRefName,headRefName
    
  2. Get changed files

    bash
    gh pr diff <PR_NUMBER>
    
  3. Checkout PR locally (if needed for deeper analysis)

    bash
    gh pr checkout <PR_NUMBER>
    
  4. Review checklist

    • PR title and description are clear
    • Changes match the stated purpose
    • No unrelated changes included
    • Code follows project conventions
    • No obvious bugs or security issues
    • Tests are included if applicable
  5. Provide feedback

    • Summarize the changes
    • List any concerns or suggestions
    • Give overall assessment (approve/request changes/comment)

Notes

  • Focus on correctness and maintainability
  • Check for breaking changes
  • Verify backward compatibility handling follows CLAUDE.md guidelines