/interlock:explore [question] [--autonomous]from Interlock
Fans out parallel read-only investigators across subsystems to trace cross-cutting concerns, blast radius, and end-to-end flows. Use before designing changes or exploring complex codebases.
Ships in Interlock. 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.
Think deeply. Fan out when breadth is needed. Synthesize into understanding.
Explore is for thinking, not implementing. Read files, search code, investigate freely — but never write code and never implement a feature here. If asked to implement, say so and point at /interlock:spec. Writing OpenSpec artifacts or an explore brief is capturing thinking, not implementing, and is allowed.
Conversational (default). A thinking partner. Ask the user which thread to pull when several look interesting. Iterate.
Autonomous. Activate on --autonomous, "no questions", "don't ask me", "pursue all threads", or when /interlock:spec invokes this skill. Then:
${CLAUDE_PLUGIN_ROOT}/shared/EXPLORE-BRIEF.md. Path: .claude/handoff/explore-<slug>-<YYYYMMDD-HHMMSS>.md.Session suggestion. Unless another Interlock skill invoked this one, run interlock suggest explore once, now, and print every line it returns verbatim. If it exits non-zero, print SESSION SUGGESTION UNAVAILABLE: <first line of its output> and continue. It is advice and never a gate: do not change the model or the effort yourself, and do not wait for the person to.
Follow Rule 0 of ${CLAUDE_PLUGIN_ROOT}/shared/TOOL-ECONOMY.md. If the graph exists, seed scopes then fan out:
interlock-graph query "<subsystem tokens>" --budget 1500
interlock-graph consumers <symbol-or-field>
interlock-graph path <A> <B>
Scope investigators by real module nodes and consumer lists. Each investigator: graph, then grep for string-keyed and dynamic readers, then Read spans. If the graph is missing and the question spans 3+ subsystems, build it once (interlock-graph build .). Never rebuild when it already exists.
Fan out when the question shows any of these:
| Signal | Example |
|---|---|
| Multiple subsystems touched | "How does deployment work end to end?" |
| Comparative analysis needed | "Redis or SQLite for this?" |
| Cross-file tracing required | "What validates the uploaded archive?" |
| Several options to research | "What are our options for real-time?" |
| Architecture mapping | "Map how auth flows through the system" |
Mandatory fan-out — shared or derived value changes. If the change alters what a value means or who reads it, run Pattern 4 per ${CLAUDE_PLUGIN_ROOT}/shared/INVARIANT-SWEEP.md. This overrides the single-threaded default.
Stay single-threaded for conversational back-and-forth, single-file questions, quick clarifications, sequential discovery where A informs B, or when the user is thinking out loud.
When genuinely unsure, start single-threaded and escalate once you realize the question is broader than it looked.
Pattern 1 — Subsystem mapping. The question spans several parts of the system. One investigator per stage of the flow. Synthesize into a diagram plus narrative.
Pattern 2 — Option comparison. Several viable approaches. One investigator per option, each reporting fit against this codebase, not generic pros and cons. Synthesize into a comparison table plus a recommendation.
Pattern 3 — Layer sweep. "Where does X happen?" when X could happen at several layers. One investigator per layer (client, API, business logic, persistence, post-processing). Synthesize into what each layer catches and where the gaps are.
Pattern 4 — Impact analysis. A change would alter what a value means or who reads it. One investigator per disjoint layer of the blast radius. Synthesize into an impact map with severity per area, and explicitly flag readers still consuming the raw, untransformed form.
subagent_type: "Explore" for read-only investigation.${CLAUDE_PLUGIN_ROOT}/shared/CONTEXT-HYGIENE.md before echoing them into a subagent prompt.interlock routing explore-investigator --json once, not once per investigator. Pass its model and effort on every investigator call; a null means omit that parameter, and the host's default applies. Print every line of its banners verbatim before the fan-out. When the command exits non-zero, print ROUTING UNAVAILABLE: <first line of its output> and spawn at the session defaults — routing is a cost hint, never a reason to stop. Name no model and no effort level anywhere in this skill or in a prompt it emits; the CLI publishes them.Investigate: [[SPECIFIC_QUESTION]]
Context: [[BROADER_TOPIC]]
Look for:
- [specific thing 1]
- [specific thing 2]
Return JSON only:
{ "files": [{ "path": "", "lines": "" }], "how": "", "connections": [], "gaps": [] }
Resolve [[SPECIFIC_QUESTION]] and [[BROADER_TOPIC]] from session state at emit time. An unresolved placeholder halts the fan-out — never gap-fill one.
After investigators return, you must synthesize. Never dump raw agent output.
The result should read like a senior engineer who just debriefed four specialists — not like four reports stapled together.
openspec list --json # is there an active change?
When a change exists, read its artifacts via openspec status --change "<name>" --json for context, and offer to capture decisions as they crystallize:
| Insight | Captured in |
|---|---|
| New or changed requirement | specs/<capability>/spec.md |
| Design decision | design.md |
| Scope change | proposal.md |
Follow ${CLAUDE_PLUGIN_ROOT}/shared/DECISION-LEDGER.md. Do not restate its format.
## Pending Clarifications → needs_human rows.## Assumptions Made → agent_resolved rows with followable evidence (obvious is not evidence).Active change → write openspec/changes/<change>/decisions.md now and run interlock ledger <change>. No change yet → number them D1, D2, … in the brief (class stated) so /interlock:spec transcribes them. Never renumber; never reuse an id.
Conversational mode ends when the user has what they need.
Autonomous mode ends by writing the explore brief and reporting its path — the brief is what /interlock:spec reads instead of re-deriving discovery. Writing it is how explore pays forward.
What SKILL.md sets; muted values are Claude Code's defaults
16 skills in this plugin
/bootstrapOnboard a brownfield project into OpenSpec — analyze the existing codebase with parallel explorer agents, write an initial architecture document, then generate one spec per discovered feature describing what is already built. Use when adopting spec-driven development on a repo that has code but no specs./commitCreate a single feature-level commit after a change is implemented. Reads the OpenSpec change artifacts to write a verb-phrase conventional-commit message with an outcome summary and optional issue reference. Commit only — never runs tests, typecheck, lint or build, and never pushes./dispatchRoute a request to the right interlock skill, after one batched pre-flight that loads git state, OpenSpec status, open tasks and graph presence in a single pass. Use when you are not sure which skill applies, or at the start of a session to orient before doing anything else.npx claudepluginhub renzrollon/interlock --plugin interlockOther plugins' skills for the same job