Sprang explain
Deep-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".From its SKILL.md
npx -y skills add FavioVazquez/sprang --skill sprang-explainAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.4 KB, as published. Nobody here has run it
In-depth explanation of a specific code component: what it does, why it exists, who changed it, what depends on it.
Arguments: <file path or path:functionName> (e.g. src/auth/login.ts or
src/auth/login.ts:validatePassword)
Instructions
-
Check
.sprang/knowledge-graph.jsonexists. If not, run thesprang-analyzeskill first. -
Call
sprang_querywith the argument to find the target node. Note itsid,type,summary,tags,complexity,risk_score,risk_factors,structural_warnings, anddecision_context. -
Call
sprang_nodewith the resolvednode_idto get:layer(name + id),layer_mate_count,in_degree,out_degree,has_annotation, and the full 1-hop neighborhood with edge directions and types.- Outgoing edges → what this node imports, calls, or depends on
- Incoming edges → what imports, calls, or depends on this node (blast radius)
-
Call
sprang_whywith the samenode_idfor decision context: commit history,primary_authors,last_changed,rationale_snippets,change_frequency,pr_references, and any team annotation. -
Read the actual source file at
filePathfor its current state. -
Produce a structured explanation:
What it does
2-3 paragraphs on purpose and responsibilities.
Where it fits
- Layer: layer name and why it belongs there
- Imports: what it depends on and why
- Used by: what calls or imports it — the blast radius
How it works
Walk through the key functions, classes, and logic with real line numbers.
History & ownership
- Last changed: date
- Authors: primary authors
- Change frequency: commits in the last 90 days
- Why it exists: rationale from commit messages, if available
Risk & warnings
- Risk score and the factors driving it
- Structural warnings: any smells detected
- What to watch out for: practical advice
Next steps
Suggest edits only after checking
risk_score. Offersprang-diffto see whether this file is currently changing, orsprang-chatfor follow-ups.
$ARGUMENTS