Interview-driven requirements gathering for planning
$ARGUMENTS)--template <template-name> to force specific template--max-questions N to limit questionsSKILL_DIR=".pi/skills/os-tk-interview"
if [[ ! -d "$SKILL_DIR" ]]; then SKILL_DIR="pi/skills/os-tk-interview"; fi
eval "$(bash "$SKILL_DIR/scripts/parse-args.sh" "$@") to populate:REQUESTTEMPLATEMAX_QUESTIONSAnalyze the user's request to determine:
Use load-template.sh script to automatically select the appropriate template.
Based on request type, load interview template:
--template is provided: Use that specific templateTemplates are located in:
pi/skills/os-tk-interview/templates/refactor.mdpi/skills/os-tk-interview/templates/feature-add.mdpi/skills/os-tk-interview/templates/bug-fix.mdpi/skills/os-tk-interview/templates/performance.mdpi/skills/os-tk-interview/templates/security.mdpi/skills/os-tk-interview/templates/feature-remove.mdGenerate 5-10 targeted questions based on:
--max-questions)Question categories in templates:
Ask questions and collect answers. User can choose:
Interactive mode (default):
Q1: What is the primary goal?
A1: [User types answer]
Q2: What code needs to be refactored?
A2: [User types answer]
...
Batch mode (for simple requests):
I have some questions to clarify your request:
1. What is the primary goal?
2. What constraints should I consider?
3. Are there integration needs?
Please answer each question or say "N/A" if not applicable.
Answer handling:
Create structured summary including:
# Interview Context
Request: <original request>
Type: <refactor|feature-add|bug-fix|performance|security|feature-remove>
Complexity: <simple|medium|complex>
## Answers
Q1: <question>
A1: <answer>
Q2: <question>
A2: <answer>
...
## Gaps Identified
- <any gaps still present>
- <areas needing more info>
## Next Steps
- Ready for planning with <X> questions remaining
Check if dev notes are enabled in .os-tk/config.json:
.os-tk/dev-notes/Save using save-interview.sh script which:
.os-tk/dev-notes/interview-<timestamp>.md or appends to change note.os-tk/dev-notes/INDEX.md with entry## Interview Complete
**Questions asked:** <number>
**Questions answered:** <number>
**Gaps remaining:** <number>
### Context Summary
[Structured summary from Phase 5]
### Ready to Proceed?
[Options]
- **"Yes, generate plan"** → Continue to planner with interview context
- **"More questions on <topic>"** → Ask follow-up questions on specific area
- **"Adjust answers"** → Review and edit answers before proceeding
- **"Save and exit"** → Save interview to dev notes without proceeding to plan
/os-tk-plan --interview for better planning.devNotes.enabled in config).Question limits:
--max-questions N flag to overrideStop conditions:
Read-only for code:
.os-tk/dev-notes/