code-impact-analysis
Safely analyze code impact before refactors, behavior changes, API changes, and cross-module edits.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Safely analyze code impact before refactors, behavior changes, API changes, and cross-module edits.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Choose the right code intelligence tool before searching, navigating, refactoring, or analyzing a codebase.
Check whether global code intelligence tools are installed and configured consistently.
Build a compact architecture map of a repository using CGC, Semble, rg, and source reads.
| name | code-impact-analysis |
| description | Safely analyze code impact before refactors, behavior changes, API changes, and cross-module edits. |
| execution_mode | docs_only |
| supported_agents | ["codex","claude"] |
Builds a verified impact set before changing shared behavior, public interfaces, state stores, routes, API DTOs, database models, feature flags, or memory/transcription flows.
Use this before any refactor or behavior change where missing one caller could break the product.
rg.rg.Useful commands:
rg -n "symbolName\\(" .
uvx --from semble==0.2.0 semble search "similar usage of symbolName" .
cgc analyze callers symbolName --context "$(basename "$PWD")"
cgc analyze calls symbolName --context "$(basename "$PWD")"
cgc analyze complexity --limit 20 --context "$(basename "$PWD")"
rg and Serena disagree, inspect both results. Generated code, dynamic dispatch, and framework magic can explain the difference.rg or Serena, treat CGC as incomplete until verified.