| name | sprang-chat |
| description | Ask 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. |
| argument-hint | ["<question about the codebase>"] |
Answer questions about this codebase grounded entirely in .sprang/knowledge-graph.json.
Follow the detailed instructions in .windsurf/workflows/sprang-chat.md.
Quick steps:
- Check
.sprang/knowledge-graph.json exists. If not, tell the user to run /sprang-analyze first.
- Read project metadata (project_name, description, languages) to anchor context.
- Call
sprang_query with keywords from $ARGUMENTS to find relevant nodes — use multiple search terms if needed.
- For each matched node, call
sprang_node to get its 1-hop neighborhood (in/out degree, layer, neighbors).
- Follow edges to trace the dependency chain as far as needed to fully answer.
- Find which architectural layers the matched nodes belong to.
- Answer the query grounded in graph data — cite
summary fields directly, reference file paths, name layers.
- Offer follow-ups:
/sprang-explain <file> for deep dive, /sprang-diff if the topic involves recent changes.