code-review-graph

Builds call graphs based on syntax trees to precisely locate the impact boundaries of code changes.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "code-review-graph" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-5b1d3f63f7adde10d5cb0273fda84ec959cc17c7ffb7868af3d6cbfb162c1cd6. Verify the upstream source and version against https://skillhub.cn/skills/user_a10ab3ad/code-review-graph before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Builds call graphs based on syntax trees to precisely locate the impact boundaries of code changes.

0 Downloads

Introduction source: third_party · user_a10ab3ad · 1.0.9 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: code-review-graph
description: 基于语法树构建调用图谱,精准定位代码变更影响边界。

📜 用户协议(User Agreement)

  1. 本 Skill 仅供学习与参考用途。使用本 Skill 产生的任何结果,由使用者自行承担全部责任;本 Skill 不提供任何明示或暗示的保证。
  2. 涉及法律、财务、税务、投资、医疗等专业决策时,请务必咨询持证专业人士。
  3. 本代码受版权法保护,未经授权复制、反向工程或商业利用将被追究法律责任。 <!-- user-agreement-injected -->

⚠️ 本内容仅供一般信息参考,不构成法律、财务、税务、投资或医疗建议。 涉及合同签署、报税、投资、诊疗等专业决策时,请务必咨询持证专业人士,并由使用者自行承担决策后果。 <!-- professional-disclaimer-injected -->

code-review-graph — 代码变更影响面分析 Skill

一、能力边界速查卡

1.1 能做什么

能力项 说明 典型场景
解析变更清单 接受 git diff、文件列表、commit 范围作为输入 提交 PR 前自查
构建调用图谱 基于 Tree-sitter 提取函数、类、模块间的静态调用关系 理解模块耦合度
影响范围计算 从变更点出发,沿图谱反向追踪所有可能受影响的调用方 评估重构风险
批量合并分析 多文件、多 commit 的变更去重后统一计算 合并主干前的综合评估
多格式输出 JSON / Markdown / CSV / SVG 可视化 对接 CI 或人工阅读
增量构建 仅重建变更文件的 AST 子图,其余走缓存 大型仓库的日常增量审查
降级保障 图谱构建失败时自动回退到文本 diff 分析 语法错误或极端文件

1.2 不能做什么

限制项 说明
不执行动态分析 不运行测试、不追踪运行时调用链
不保证语义正确 静态分析结果仅代表语法层面的调用关系,不判断逻辑对错
不处理跨语言调用 仅支持单语言项目的图谱构建(可通过 --lang 指定)
不覆盖全部边界场景 动态调用、宏展开等场景依赖启发式策略,存在误判可能
不替代人工审查 输出的是影响面候选清单,最终判断需人工确认

1.3 适用对象

  • 需要评估重构风险的开发者
  • 需要做 Code Review 前置筛选的团队
  • 需要理解模块依赖关系的新人 onboarding
  • CI 流水线中需要自动生成影响报告的运维/QA

许可证(License)

MIT License

Copyright (c) 2026 SkillForge Lab

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

<!-- professional-license-embedded -->

失败处理

  • 命令执行失败或返回非零退出码时,程序会输出明确错误信息并给出排查建议。

  • 依赖缺失时提示安装命令;网络异常时建议重试并检查连接。

  • 异常情况不中断主流程,错误信息包含具体原因(error context),便于定位修复。

    前置条件

  • 本技能开箱即用,无需额外安装依赖。

  • 需要 Python 3.9+ 运行环境。

  • 涉及网络请求时需保持网络连通。

    执行步骤

  1. 读取输入参数或交互输入。
  2. 按技能定义的处理流程执行核心逻辑。
  3. 输出结构化结果,并在完成后给出下一步建议。

Current listing version

1.0.9

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 解决开发者评估重构风险、Code Review 前置筛选等明确痛点
  • 提供基于语法树的静态调用关系分析,精准定位变更影响边界
  • 支持多格式输出和增量构建,适配 CI 流水线等高频场景
Trigger Precision95/100

Highlights

  • description 精准概括核心能力,边界清晰
  • 触发词完整覆盖代码变更影响分析的核心需求
Structure and Standards90/100

Highlights

  • 文档结构完整,包含能力边界、前置条件、执行步骤、失败处理等关键章节
  • 使用清晰的表格说明能做什么/不能做什么,便于用户快速理解
  • frontmatter 完整,符合 Skill 规范要求
Execution Reliability88/100

Highlights

  • 明确说明失败处理机制,包括命令执行失败、依赖缺失、网络异常等情况
  • 提供降级保障策略(图谱构建失败时回退到文本 diff 分析)
  • 异常情况不中断主流程,错误信息包含具体原因便于定位修复
Evidence Verifiability (mean of the first four)91/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.