AgentSkillsCN

github-code-review

获取并处理 GitHub 拉取请求中的代码评审意见,包括 Copilot 代码评审。适用于用户请求获取评审反馈、回应评审意见、修复评审问题、发起代码评审、查看 PR 评审,或回复评审者的反馈时使用。

SKILL.md
--- frontmatter
name: github-code-review
description: Fetch and address GitHub pull request code review comments, including Copilot code reviews. Use when user asks to get review feedback, address review comments, fix review issues, request a code review, check PR reviews, or respond to reviewer feedback.

GitHub Code Review — Phoenix Agentic Engine Interface

Repo Context

  • Owner: rivie13
  • Repo: Phoenix-Agentic-Engine-Interface
  • Type: Public (TS SDK + Contracts)

Workflow: Fetch & Address Review Comments

Step 1: Identify the PR

If the user doesn't specify a PR number, list open PRs:

code
mcp_github_github_list_pull_requests(owner="rivie13", repo="Phoenix-Agentic-Engine-Interface", state="open")

Step 2: Get review comments

code
mcp_github_github_pull_request_read(method="get_review_comments", owner="rivie13", repo="Phoenix-Agentic-Engine-Interface", pullNumber=<PR_NUMBER>)

Get review status:

code
mcp_github_github_pull_request_read(method="get_reviews", owner="rivie13", repo="Phoenix-Agentic-Engine-Interface", pullNumber=<PR_NUMBER>)

Step 3: Get changed files for context

code
mcp_github_github_pull_request_read(method="get_files", owner="rivie13", repo="Phoenix-Agentic-Engine-Interface", pullNumber=<PR_NUMBER>)

Step 4: Address each unresolved comment

For each unresolved review thread:

  1. Read the file and surrounding context using read_file
  2. Understand the reviewer's concern
  3. Make the fix using file edit tools
  4. Report what was changed and why

Step 5: Request a new review (optional)

code
mcp_github_github_request_copilot_review(owner="rivie13", repo="Phoenix-Agentic-Engine-Interface", pullNumber=<PR_NUMBER>)

Review priorities for this repo

When addressing reviews, keep these Interface SDK review priorities in mind:

  • This is a protocol layer — no UI, no orchestration, no business logic
  • Schema changes in contracts/v1/ are potentially breaking — require justification
  • No orchestration logic, prompt content, or agent coordination (those belong in Backend)
  • Use strict TypeScript (strict: true) — flag any any usage
  • Use Zod schemas for runtime validation
  • Keep dependencies minimal — every new dep is a supply chain risk
  • Ensure contract fixture compatibility tests still pass
  • Run npm test and npm run typecheck after fixes