/sprang:sprang-analyze [path] [--full] [--language <lang>] [--chunk <N>]from sprang
Analyze 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".
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.
Read when SKILL.md points to them; scripts run unread.
Analyze the codebase and produce .sprang/knowledge-graph.json with full
semantic enrichment. You are the analysis engine — read every file, write rich
summaries, detect architecture, score risk.
CRITICAL: Complete ALL 8 phases (Phase 0 through Phase 7) in one run. Stopping early leaves the Architecture, Domains, and Learn tabs empty. NEVER write
.sprang/knowledge-graph.jsonyourself — Phase 7 assembles it. RESUME: If a graph already exists atphase: complete, jump to Phase 4 to re-run enrichment only.
For the full phase-by-phase procedure, read REFERENCE.md in this skill's
directory. Read it before starting — the summary below is not sufficient to
execute the skill correctly.
--full — force complete rebuild even if a graph exists--language <lang> — output summaries in a specific language (ISO code: zh,
ja, ko, es, fr, de, pt, ru)--chunk <N> — split node output into chunks of N nodesPROJECT_ROOT and SPRANG_ROOT="$PROJECT_ROOT/.sprang",
read .sprangignore, decide incremental vs full, collect README/manifest
context and the entry point.scan-result.json.final-nodes-chunk-*.json (max 50 nodes
each), final-edges.json, and assembled-graph.json (project metadata only).final-layers.json directly (not layers.json).final-tours.json as an
array of Tour objects (not a flat step array — each needs id, title,
description, steps).final-domains.json with domain/flow/step structure.risk-scores.json as
{"<node-id>": {"risk_score": 0.0, "risk_factors": [], "structural_warnings": [], "decision_context": {...}}}.
The assemble step applies all of these fields to the nodes.sprang merge "$PROJECT_ROOT" (normalises +
validates, no Python needed). If sprang is not on PATH, fall back to
PROJECT_ROOT="$PROJECT_ROOT" python3 skills/sprang-analyze/scripts/merge.py.
Then write .sprang/SPRANG_REPORT.md.All intermediate files live in
.sprang/intermediate/and both readers consume these exact names:final-nodes-chunk-*.json,final-edges.json,final-layers.json,final-tours.json,final-domains.json,risk-scores.json,assembled-graph.json. All must exist before assembling.
layer field on nodes — layer membership comes from
final-layers.json. A layer of null fails validation.imports, exports, contains, inherits,
implements, calls, subscribes, publishes, middleware, reads_from,
writes_to, transforms, validates, depends_on, tested_by,
configures, related, similar_to, deploys, serves, provisions,
triggers, migrates, documents, routes, defines_schema,
contains_flow, flow_step, cross_domain, cites, contradicts,
builds_on, exemplifies, categorized_under, authored_by.tested_by: source file → the test file that covers it (note
the direction: source → test).Report files analyzed, nodes/edges, top risks, layers and domains found. Suggest
the sprang-chat skill to ask questions, sprang-onboard for the guided tour,
and pnpm --filter @sprang/dashboard dev to open the dashboard.
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-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-diffBlast 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".