| name | investigation-create |
| description | Start a new investigation or redirect to a simpler chunk workflow. |
Tips
- The ve command is an installed CLI tool, not a file in the repository. Do not
search for it - run it directly via Bash.
Instructions
The operator has described something they want to explore or understand:
$ARGUMENTS
Phase 1: Scale Assessment
Before creating an investigation, evaluate whether this task truly needs
investigative exploration or could be handled directly as a chunk.
Investigation-Warranted Signals
Look for these signals that suggest a full investigation is appropriate:
- Unclear root cause: "I don't know why...", "something is causing...",
"need to figure out..."
- Multiple hypotheses: "could be X or Y", "not sure if it's...", "might be..."
- Spans multiple systems: "affects both...", "across the...", "throughout..."
- Architectural implications: "might need to change our approach",
"fundamental to how we..."
- Exploration needed: "want to understand...", "need to learn about...",
"should we migrate to..."
- Cross-session work: Implies ongoing discovery that may span multiple sessions
Chunk-Sufficient Signals
Look for these signals that suggest a direct chunk would be more appropriate:
- Known fix: "I know we need to...", "just need to change...",
"the fix is..."
- Single hypothesis: Clear understanding of what needs to happen
- Localized change: Affects one file, function, or small area
- Obvious next step: "add a button that...", "change the color of...",
"fix the typo in..."
- No exploration needed: Clear requirements, no uncertainty
Decision
Based on your assessment, proceed to either Phase 2A (if investigation
signals dominate) or Phase 2B (if chunk signals dominate).
Phase 2A: Investigation Creation (Investigation-Worthy)
If the task warrants investigation:
-
Derive a short name from the operator's description:
- Extract key nouns that capture the subject of investigation
- Use underscore separation (e.g.,
memory_leak, graphql_migration)
- Keep under 32 characters
- Present the proposed name:
"I'll create an investigation called <proposed_name> to explore this
systematically. Does this name work?"
-
Create the investigation:
ve investigation create <confirmed_name>
Note the created directory path. We'll refer to this as <investigation_directory>.
-
Guide Trigger population:
Ask the operator to articulate what prompted this investigation:
"What specifically triggered this investigation? I'll document this in the
Trigger section."
Update <investigation_directory>/OVERVIEW.md with their response.
-
Guide Success Criteria population:
Ask the operator to define what "done" looks like:
"What questions must be answered, or what evidence would you need, to
consider this investigation complete?"
Update the Success Criteria section with their response.
-
Seed initial hypotheses:
Based on the description, propose 1-2 initial testable hypotheses:
"Based on what you've described, I'd suggest starting with these hypotheses:
H1: [hypothesis statement]
H2: [hypothesis statement]
Should I add these to the Testable Hypotheses section?"
Update the Testable Hypotheses section if confirmed.
-
Confirm next steps:
"Investigation created at <investigation_directory>.
To continue exploring: Work through hypotheses in the Exploration Log
To document findings: Update the Findings section as you verify/falsify
To propose work: Add chunk prompts to Proposed Chunks when action items emerge
(see OVERVIEW.md for depends_on semantics when declaring inter-chunk dependencies)
To resolve: Update status to SOLVED, NOTED, or DEFERRED when complete"
Phase 2B: Chunk Redirect (Simple Task)
If the task is better suited as a direct chunk:
-
Explain why investigation isn't needed:
"This looks like a straightforward task rather than an investigation:
- [reason 1 from signals above]
- [reason 2 if applicable]
A full investigation would add overhead without much benefit here."
-
Offer to create a chunk instead:
"I can create a chunk directly with /chunk-create using this prompt:
[suggested chunk description derived from their input]
Would you like me to proceed with creating a chunk instead?"
-
Allow override:
"If you still feel this needs investigation (perhaps there's uncertainty
I'm not seeing), I'm happy to create an investigation instead. Just let me
know."
-
If user confirms chunk: Invoke /chunk-create with the suggested description.
-
If user requests investigation: Return to Phase 2A.