Interview user in-depth about an epic, task, or spec file to extract complete implementation details. Use when user wants to flesh out a spec, refine requirements, or clarify a feature before building. Triggers on /flow-next:interview with Flow IDs (fn-1, fn-1.2) or file paths.
Conduct an extremely thorough interview about a task/spec and write refined details back.
IMPORTANT: This plugin uses .flow/ for ALL task tracking. Do NOT use markdown TODOs, plan files, TodoWrite, or other tracking methods. All task state must be read and written via flowctl.
CRITICAL: flowctl is BUNDLED — NOT installed globally. which flowctl will fail (expected). Always use:
ROOT="$(git rev-parse --show-toplevel)"
OPENCODE_DIR="$ROOT/.opencode"
FLOWCTL="$OPENCODE_DIR/bin/flowctl"
$FLOWCTL <command>
If .flow/meta.json exists and has setup_version, compare to local OpenCode version:
SETUP_VER=$(jq -r '.setup_version // empty' .flow/meta.json 2>/dev/null)
OPENCODE_VER=$(cat "$OPENCODE_DIR/version" 2>/dev/null || echo "unknown")
if [[ -n "$SETUP_VER" && "$OPENCODE_VER" != "unknown" && "$SETUP_VER" != "$OPENCODE_VER" ]]; then
echo "Flow-Next updated to v${OPENCODE_VER}. Run /flow-next:setup to refresh local scripts (current: v${SETUP_VER})."
fi
Continue regardless (non-blocking).
Role: technical interviewer, spec refiner Goal: extract complete implementation details through deep questioning (40+ questions typical)
Full request: $ARGUMENTS
Accepts:
fn-N: Fetch with flowctl show, write back with flowctl epic set-planfn-N.M: Fetch with flowctl show, write back with flowctl task set-description/set-acceptancedocs/spec.md): Read file, interview, rewrite fileExamples:
/flow-next:interview fn-1/flow-next:interview fn-1.3/flow-next:interview docs/oauth-spec.mdIf empty, ask: "What should I interview you about? Give me a Flow ID (e.g., fn-1) or file path (e.g., docs/spec.md)"
ROOT="$(git rev-parse --show-toplevel)"
OPENCODE_DIR="$ROOT/.opencode"
FLOWCTL="$OPENCODE_DIR/bin/flowctl"
Flow epic ID pattern: matches fn-\d+ (e.g., fn-1, fn-12)
$FLOWCTL show <id> --json$FLOWCTL cat <id>Flow task ID pattern: matches fn-\d+\.\d+ (e.g., fn-1.3, fn-12.5)
$FLOWCTL show <id> --json$FLOWCTL cat <id>$FLOWCTL cat <epic-id>File path: anything else with a path-like structure or .md extension
New idea text: everything else
Ask questions in plain text (no question tool). Group 5-8 questions per message. Expect 40+ total for complex specs. Wait for answers before continuing.
Rules:
Example:
1) Primary user goal?
2) Platforms: web, iOS, Android, desktop?
3) Auth required? (yes/no/unknown)
4) Performance targets? (p95 ms)
5) Edge cases you already know?
Read questions.md for all question categories and interview guidelines.
After interview complete, write everything back — scope depends on input type.
Create epic with interview output. Do NOT create tasks — that's /flow-next:plan's job.
$FLOWCTL epic create --title "..." --json
$FLOWCTL epic set-plan <id> --file - --json <<'EOF'
# Epic Title
## Problem
Clear problem statement
## Key Decisions
Decisions made during interview (e.g., "Use OAuth not SAML", "Support mobile + web")
## Edge Cases
- Edge case 1
- Edge case 2
## Open Questions
Unresolved items that need research during planning
## Acceptance
- [ ] Criterion 1
- [ ] Criterion 2
EOF
Then suggest: "Run /flow-next:plan fn-N to research best practices and create tasks."
First check if tasks exist:
$FLOWCTL tasks --epic <id> --json
If tasks exist: Only update the epic spec (add edge cases, clarify requirements). Do NOT touch task specs — plan already created them.
If no tasks: Update epic spec, then suggest /flow-next:plan.
$FLOWCTL epic set-plan <id> --file - --json <<'EOF'
# Epic Title
## Problem
Clear problem statement
## Key Decisions
Decisions made during interview
## Edge Cases
- Edge case 1
- Edge case 2
## Open Questions
Unresolved items
## Acceptance
- [ ] Criterion 1
- [ ] Criterion 2
EOF
First check if task has existing spec from planning:
$FLOWCTL cat <id>
If task has substantial planning content (file refs, sizing, approach):
$FLOWCTL task set-acceptance <id> --file /tmp/acc.md --json
/flow-next:interview <epic-id>If task is minimal (just title, empty or stub description):
# Preferred: combined set-spec (2 writes instead of 4)
$FLOWCTL task set-spec <id> --description /tmp/desc.md --acceptance /tmp/acc.md --json
Description should capture:
Do NOT add: file/line refs, sizing, implementation approach — that's plan's job.
Rewrite the file with refined spec:
This is typically a pre-epic doc. After interview, suggest /flow-next:plan <file> to create epic + tasks.
Show summary:
/flow-next:plan or /flow-next:worknpx skills add gmickel/flow-next-opencode-interview下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer