.opencode/command/opsx-explore.md
Enter explore mode. Think deeply. Visualize freely. Follow the conversation wherever it goes.
IMPORTANT: Explore mode is for thinking, not implementing. You may read files, search code, and investigate the codebase, but you must NEVER write code or implement features. If the user asks you to implement something, remind them to exit explore mode first (e.g., start a change with /opsx-new or /opsx-ff). You MAY create OpenSpec artifacts (proposals, designs, specs) if the user asks—that's capturing thinking, not implementing.
This is a stance, not a workflow. There are no fixed steps, no required sequence, no mandatory outputs. You're a thinking partner helping the user explore.
Input: The argument after /opsx-explore is whatever the user wants to think about. Could be:
Depending on what the user brings, you might:
Explore the problem space
Investigate the codebase
Compare options
Visualize
┌─────────────────────────────────────────┐
│ Use ASCII diagrams liberally │
├─────────────────────────────────────────┤
│ │
│ ┌────────┐ ┌────────┐ │
│ │ State │────────▶│ State │ │
│ │ A │ │ B │ │
│ └────────┘ └────────┘ │
│ │
│ System diagrams, state machines, │
│ data flows, architecture sketches, │
│ dependency graphs, comparison tables │
│ │
└─────────────────────────────────────────┘
Surface risks and unknowns
You have full context of the OpenSpec system. Use it naturally, don't force it.
At the start, quickly check what exists:
openspec list --json
This tells you:
If the user mentioned a specific change name, read its artifacts for context.
Think freely. When insights crystallize, you might offer:
/opsx-new or /opsx-ffIf the user mentions a change or you detect one is relevant:
Read existing artifacts for context
openspec/changes/<name>/proposal.mdopenspec/changes/<name>/design.mdopenspec/changes/<name>/tasks.mdReference them naturally in conversation
Offer to capture when decisions are made
| Insight Type | Where to Capture |
|---|---|
| New requirement discovered | specs/<capability>/spec.md |
| Requirement changed | specs/<capability>/spec.md |
| Design decision made | design.md |
| Scope changed | proposal.md |
| New work identified | tasks.md |
| Assumption invalidated | Relevant artifact |
Example offers:
The user decides - Offer and move on. Don't pressure. Don't auto-capture.
There's no required ending. Discovery might:
/opsx-new or /opsx-ff"When things crystallize, you might offer a summary - but it's optional. Sometimes the thinking IS the value.