/asterweave:analyze
Purpose
Analyzes a task and repository without changing files, producing stack, architecture, dependency, blast-radius, baseline, and risk evidence. This is the first working node of /asterweave:deliver's graph, and can also be run alone to understand a change before committing to a plan.
Syntax
/asterweave:analyze <goal|issue>
Arguments
<goal|issue> — a free-text goal or an issue reference (for example owner/repo#123).
Options
None.
Prerequisites
None. Read-only by design.
What happens
- Reads repository instructions, stack-discovery guidance, the repository adapter, and (if present)
specs/. - Resolves the
analyzeroute — a configured project skill/agent, orasterweave:repo-analyzer. - Runs
detect-stack.mjsand verifies its signals against manifests, CI, documentation, and code — treating detection as a signal, not an authority. - Traces the task from entry points through business logic, data boundaries, external contracts, callers, and tests.
- Finds analogous implementations and records conventions to reuse.
- Inspects Git status and reports (without touching) user changes.
- Identifies affected components, data/API/config/deployment impact, security boundaries, and likely regressions.
- Discovers repository-native build/test commands and runs only safe, read-only or baseline checks the repository already defines.
- When run inside an active
deliverworkflow, writes the context manifest so later nodes reuse this bounded context instead of re-scanning the repository.
Agents used
The project's routed analyze agent, or asterweave:repo-analyzer by default.
Files modified
None, except the workflow-state context manifest (.claude/asterweave/context-manifest.json) when run inside an active deliver workflow.
External side effects
None.
Output
Facts with file references, assumptions, unknowns, blast radius, baseline command evidence, risks, and a recommended next graph node.
Examples
/asterweave:analyze owner/repo#123
/asterweave:analyze "why does checkout total round incorrectly for split payments?"
Common errors
- Detected commands don't match reality —
analyzecross-checksdetect-stack.mjsoutput against manifests and CI rather than trusting it blindly; if they diverge, it reports the discrepancy instead of guessing.
Related commands
/asterweave:challenge to grill the resulting understanding before planning; /asterweave:deliver to run the full graph, of which this is the first stage.