/sprang:sprang-diff [files...]from sprang
Blast radius analysis for changed files — shows what will break if you change something. Use when the user says "/sprang-diff", "what will break", "blast radius", "impact analysis", or "what depends on this".
Ships in sprang. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Blast radius analysis for changed files — what is affected before you commit.
Arguments: [file1 file2 ...] (optional — uses git diff if omitted)
Check .sprang/knowledge-graph.json exists. If not, run the sprang-analyze
skill first.
Collect changed files. If arguments were provided, parse them as space/comma-separated paths. Otherwise:
git diff --name-only HEAD 2>/dev/null
git diff --name-only --cached 2>/dev/null
# On a feature branch, also compare against the base branch
git diff main...HEAD --name-only 2>/dev/null || git diff master...HEAD --name-only 2>/dev/null
Deduplicate into CHANGED_FILES.
Call sprang_diff_impact with CHANGED_FILES to compute the full blast radius
(BFS over incoming edges). It returns changed_nodes (directly touched),
impact_nodes (everything that transitively depends on them), risk_counts,
and total_impact.
Call sprang_node on each changed node to get layer, in_degree,
out_degree, risk_score, and has_annotation.
Identify affected layers — which architectural boundaries the change crosses.
Compute the risk assessment:
risk_score >= 0.7in_degree > 10circular_dependency or god_node in
structural_warnings, explain the specific risk.Write the diff overlay for the dashboard — .sprang/diff-overlay.json:
{
"version": "1.0.0",
"generatedAt": "<ISO timestamp>",
"baseBranch": "<base branch>",
"changedFiles": ["<list>"],
"changedNodeIds": ["<list>"],
"affectedNodeIds": ["<transitively affected, excluding changedNodeIds>"],
"blastRadius": 0,
"crossLayerChanges": 0
}
This drives the amber/warm-gray highlighting in the dashboard Graph view.
Report:
sprang-explain <highest-risk-changed-file> for a deeper look$ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub faviovazquez/sprang --plugin sprang11 skills in this plugin
/sprangBuild or refresh the Sprang knowledge graph for this workspace. Use when the user says "/sprang", "build the knowledge graph", "scan the codebase", "index this project", or "run sprang"./sprang-analyzeAnalyze a codebase to produce a rich semantic knowledge graph — file summaries, architecture layers, guided tour, domain map, risk scores. Use when the user says "/sprang-analyze", "analyze the codebase", "full analysis", or "run sprang-analyze"./sprang-chatAsk any question about the codebase using the knowledge graph. Use when the user says "/sprang-chat", "ask about the codebase", "what does X do", or any question about code that should be answered from the knowledge graph./sprang-domainMap code to business processes and domain hierarchy. Use when the user says "/sprang-domain", "business domains", "domain map", "what business process does X implement", or "show me the domain structure"./sprang-explainDeep-dive explanation of a specific file, function, or module. Use when the user says "/sprang-explain", "explain this file", "what does this function do", or "deep dive on X"./sprang-healthFull structural health report — health grade, code smells, security issues, risk nodes, orphans, circular dependencies. Use when the user says "/sprang-health", "health report", "code smells", "show risks", "what's broken", "security issues", or "architectural health".