Help us improve
Share bugs, ideas, or general feedback.
From velocitai
Leverages an AST knowledge graph to review code changes, explore codebase structure, debug issues, and plan safe refactors with change impact analysis and flow tracking.
npx claudepluginhub danielsuo117/velocitai --plugin velocitaiHow this skill is triggered — by the user, by Claude, or both
Slash command
/velocitai:code-review-graphThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
本项目通过 code-review-graph MCP 接入了基于 AST 的代码知识图谱。探索代码时**优先使用图谱工具**,再降级到 Grep/Glob/Read。
Dispatches code-review-graph queries as an agent: ensures graph freshness/embeddings, runs semantic search, feature exploration, impact analysis, and git-based review context.
Performs graph-based impact analysis to answer 'if I change X, what breaks?' before merging PRs or planning refactors.
Analyzes blast radius of code changes with risk scoring using code knowledge graph or git diff/grep fallback. Shows affected nodes, untested functions, and review priorities.
Share bugs, ideas, or general feedback.
本项目通过 code-review-graph MCP 接入了基于 AST 的代码知识图谱。探索代码时优先使用图谱工具,再降级到 Grep/Glob/Read。
get_minimal_context(task="<你的任务>"),再使用其他图谱工具。detail_level="minimal",仅在不够用时升级到 "standard"。利用知识图谱进行风险感知的代码审查。
detect_changes 获取带风险评分的变更分析。get_affected_flows 查找受影响的执行路径。query_graph pattern="tests_for" 检查测试覆盖。get_impact_radius 理解影响范围。按风险等级(高/中/低)分组,包含:变更内容、测试覆盖状态、改进建议、合并建议。
利用图谱快速理解代码库结构。
list_graph_stats 查看整体指标。get_architecture_overview 了解高层模块结构。list_communities 查找主要模块,用 get_community 获取详情。semantic_search_nodes 按名称或关键词查找函数/类。query_graph 的 callers_of、callees_of、imports_of 追踪关系。list_flows 和 get_flow 理解执行路径。children_of 查看文件内所有函数和类;find_large_functions 定位复杂代码。利用图谱系统化追踪和调试问题。
semantic_search_nodes 查找与问题相关的代码。query_graph 的 callers_of 和 callees_of 追踪调用链。get_flow 查看可疑区域的完整执行路径。detect_changes 检查近期变更是否引发了问题。get_impact_radius 查看受影响范围。利用图谱自信地规划和执行重构。
refactor_tool mode="suggest" 获取重构建议。refactor_tool mode="dead_code" 查找死代码。refactor_tool mode="rename" 预览所有受影响位置。apply_refactor_tool 配合 refactor_id 应用重命名。detect_changes 验证影响。get_impact_radius。get_affected_flows 确保关键路径未被破坏。find_large_functions 识别需要拆分的大函数。