跳到正文
cccskills
免费在 GitHub 公开

review-pr

Review all changes in a pull request or branch against its base branch. Use a knowledge graph, a map of code relationships, to report affected files and functions, test coverage, API compatibility issues, and recommended actions.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Review a PR or branch diff using the knowledge graph for full structural context. Outputs a structured review with blast-radius analysis.

查看安装方法

适用场景

  • Reviewing all commits in a pull request
  • Checking a branch's changes against its base
  • Finding callers missed by public API changes
  • Summarizing impact and missing tests before merging

包含的文件(1)

  • SKILL.md1.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Review PR

Review all commits of a pull request or branch against its base branch.

Steps

  1. Identify the changes. With a branch name run git diff --name-only main...<branch>; otherwise diff the current branch against main (or master). Use that ref as base below.
  2. Call get_minimal_context_tool(task="review PR", base="main"). If it returns status: not_ready, call build_or_update_graph_tool() and continue.
  3. Call detect_changes_tool(base="main", detail_level="minimal") for risk-scored changed functions, test gaps and affected flows across the whole branch.
  4. For high-risk functions call query_graph_tool(pattern="callers_of", target="<function>") and query_graph_tool(pattern="tests_for", target="<function>"). Flag public API changes whose callers were not updated.
  5. Call get_review_context_tool(base="main") for source snippets, or get_impact_radius_tool(base="main") for the full dependent list, only when step 3 leaves a high-risk item unclear.
  6. Read the changed source of the highest-impact files first. Do not load whole files unless the change needs it.

Output

## PR Review: <title>

### Summary
<1-3 sentences>

### Risk
- Overall: Low / Medium / High
- Blast radius: <n> files, <m> functions
- Test coverage: <covered> of <changed> changed functions

### Files
#### <path>
- Changes: <what>
- Impact: <who depends on it>
- Issues: <bugs, style, concerns>

### Missing Tests
- <function> in <file>

### Recommendations
1. <action>

Tips

  • Use semantic_search_nodes_tool to find related code the PR may have missed.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Build or refresh a knowledge graph, a map of code relationships used for code review. Choose a full rebuild or an incremental update, then report the operation's status and summary.

中文简介正在准备中。当前显示英语简介。

  • Setting up the graph for a repository's first review
  • Refreshing the graph after switching branches
  • Updating review data after a large refactor
tirth8205/code-review-graph3.2万2026年10月16日 更新

Investigate bugs using a graph of code relationships. Find relevant functions, trace calls and execution paths, check recent changes, and assess what a proposed fix could affect before reading and changing the implementation.

中文简介正在准备中。当前显示英语简介。

  • Narrowing down code related to a bug
  • Tracing the execution path that triggers an issue
  • Checking whether recent changes caused a bug
tirth8205/code-review-graph3.2万2026年10月16日 更新

Explore an unfamiliar codebase using a graph of code relationships. Inspect its structure, find functions and classes, trace calls and imports, follow execution paths, and locate large functions for closer investigation.

中文简介正在准备中。当前显示英语简介。

  • Understanding the structure of an unfamiliar codebase
  • Finding functions and classes by name or keyword
  • Tracing calls, imports, and execution paths
tirth8205/code-review-graph3.2万2026年10月16日 更新

Plan refactoring with dependency analysis, which shows how code parts rely on each other. Find candidates and unreferenced code, preview and apply renames, and compare the resulting impact with the original plan.

中文简介正在准备中。当前显示英语简介。

  • Finding refactoring candidates and unreferenced code
  • Previewing edits before applying a rename
  • Checking affected dependencies and execution paths
tirth8205/code-review-graph3.2万2026年10月16日 更新

Review code changes using a knowledge graph, a map of code relationships, to assess risk and affected behavior. Organize findings by severity, identify missing tests, suggest fixes, and provide a merge recommendation.

中文简介正在准备中。当前显示英语简介。

  • Prioritizing review findings by risk
  • Checking how changed functions affect other code
  • Identifying missing tests and proposing test cases
tirth8205/code-review-graph3.2万2026年10月16日 更新

Review code changes against the previous commit and identify affected files and functions. Use dependency relationships to assess risk, check missing tests, and produce a focused report with issues and recommendations.

中文简介正在准备中。当前显示英语简介。

  • Reviewing changes against the previous commit
  • Checking how a change affects other functions
  • Finding missing tests for high-risk changes
tirth8205/code-review-graph3.2万2026年10月16日 更新

查看 tirth8205 的全部技能

报告此技能的问题