Agent skill
graph-blast-radius
[Code Intelligence] Analyze the blast radius of current code changes using the structural knowledge graph. Shows impacted files, functions, test coverage gaps, and risk level. Requires graph to be built first via /graph-build.
Install this agent skill to your Project
npx add-skill https://github.com/duc01226/EasyPlatform/tree/main/.claude/skills/graph-blast-radius
SKILL.md
Blast Radius
Analyze the structural impact of current code changes using the knowledge graph.
Prerequisites
- Graph must be built first: run
/graph-buildif.code-graph/graph.dbdoesn't exist - Requires Python 3.10+ with tree-sitter, tree-sitter-language-pack, networkx
Steps
-
Check graph exists — Verify
.code-graph/graph.dbexists. If not, suggest/graph-build. -
Run blast-radius analysis via Bash:
bashpython .claude/scripts/code_graph blast-radius --json -
Parse JSON output and present:
- Changed files: List of modified files (auto-detected from git)
- Changed nodes: Functions/classes directly modified
- Impacted nodes: Functions/classes affected within 2 hops (callers, dependents, tests)
- Impacted files: Additional files that may need attention
- Truncation: If results were truncated, note total vs shown
-
Risk assessment based on blast radius size:
- Low risk: <5 impacted nodes, changes well-contained
- Medium risk: 5-20 impacted nodes, review callers carefully
- High risk: >20 impacted nodes, consider splitting PR
-
Recommendations:
- Flag untested changed functions
- Suggest files to prioritize in review
- Warn about inheritance/implementation relationship changes
Trace for Deep Impact Analysis
For impact beyond direct callers/importers, use the trace command to follow the full chain through implicit connections:
python .claude/scripts/code_graph trace <changed-file> --direction downstream --depth 3 --json
# File-level overview first (10-30x less noise), then drill into functions:
python .claude/scripts/code_graph trace <changed-file> --direction downstream --node-mode file --json
This reveals downstream impact through MESSAGE_BUS edges (cross-service event consumers), TRIGGERS_EVENT (entity event handlers), and other implicit relationships that blast-radius may not surface directly.
Additional Queries
For deeper investigation, run via Bash:
python ... query callers_of <function> --json— who calls this function?python ... query tests_for <function> --json— what tests cover this?python ... query inheritors_of <class> --json— what inherits from this?python ... query importers_of <file> --json— who imports this file?
Closing Reminders
- MUST break work into small todo tasks using
TaskCreateBEFORE starting - MUST search codebase for 3+ similar patterns before creating new code
- MUST cite
file:lineevidence for every claim (confidence >80% to act) - MUST add a final review todo task to verify work quality
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
fix-parallel
[Implementation] Analyze & fix issues with parallel fullstack-developer agents
ask
[Utilities] Answer technical and architectural questions.
claude-code
[Utilities] Claude Code CLI setup, configuration, troubleshooting, and feature guidance. Triggers on claude code setup, hook not firing, MCP connection, context limit, skill creation, slash command setup.
workflow-deployment
[Workflow] Trigger Deployment & Infrastructure workflow — CI/CD pipelines, Docker, Kubernetes setup and deployment.
workflow-idea-to-pbi
[Workflow] Trigger Idea to PBI workflow — po/ba workflow: capture idea, refine to pbi, create stories, prioritize.
easy-claude-help
[Utilities] Configuration guide for the easy-claude framework — explain settings, guide users through configuring .ck.json.
Didn't find tool you were looking for?