From pensive
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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pensive:blast-radiusThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Analyze the impact of current code changes using the
Analyze the impact of current code changes using the code knowledge graph.
This skill requires the gauntlet plugin for graph data. Check if it's available:
GRAPH_QUERY=$(find ~/.claude/plugins -name "graph_query.py" -path "*/gauntlet/*" 2>/dev/null | head -1)
If gauntlet is not installed (GRAPH_QUERY is empty):
Fall back to a manual impact analysis using git diff
and grep to trace imports and call sites. Skip graph
steps and go directly to step 3 (manual mode).
If gauntlet is installed but no graph.db exists:
Tell the user: "Run /gauntlet-graph build first."
Show current changes: Run git diff --stat to
show the user what files changed.
Run impact analysis (requires gauntlet):
python3 "$GRAPH_QUERY" \
--action impact --base-ref HEAD --depth 2
Fallback (no gauntlet): Trace callers of changed functions with rg (or grep):
# Prefer rg for speed; fall back to grep
if command -v rg &>/dev/null; then
git diff --name-only HEAD | while read f; do
rg -l "$(basename $f .py)" --type py . 2>/dev/null
done | sort -u
else
git diff --name-only HEAD | while read f; do
grep -rl "$(basename $f .py)" --include="*.py" . 2>/dev/null
done | sort -u
fi
Display results in priority order:
Format the output as a table:
Risk | Node | File | Reason
0.85 | auth.py::verify_token | auth.py:45 | untested, security
0.62 | db.py::execute_query | db.py:112 | high fan-in
0.41 | api.py::handle_request | api.py:78 | flow participant
Highlight untested functions: List any affected functions that lack test coverage (no TESTED_BY edge).
Show overall risk: Display the overall risk level (low/medium/high) based on the maximum risk score.
Suggest actions:
Five weighted factors (sum capped at 1.0):
| Factor | Weight | Meaning |
|---|---|---|
| Test gap | 0.30 | No test coverage |
| Security | 0.20 | Auth/crypto/SQL keywords |
| Flow participation | 0.25 | Part of execution flows |
| Cross-community | 0.15 | Called from other modules |
| Caller count | 0.10 | High fan-in function |
npx claudepluginhub athola/claude-night-market --plugin pensivePerforms graph-based impact analysis to answer 'if I change X, what breaks?' before merging PRs or planning refactors.
Analyzes code change impact using GitNexus: maps upstream dependents by depth, affected processes, git-diff risks, and risk levels before edits.
Analyzes code change impact and blast radius using OntoIndex. Answers what will break before editing, with dependency depth and risk assessment.