重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
interactive-requirements-gathering by oimiragieo/agent-studio
npx skills add https://github.com/oimiragieo/agent-studio --skill interactive-requirements-gathering通过交互式问卷收集需求的结构化框架。基于 Conductor 方法论中经过验证的人机协同模式。
在提出任何问题之前,先对其分类:
| 类型 | 目的 | 措辞 | 示例 |
|---|---|---|---|
| 叠加型 | 头脑风暴,允许多个有效答案 | "选择所有适用的选项" | "您需要哪些功能?" |
| 排他型 | 需要单一选择 | 不使用多选短语 | "我们应该使用哪个框架?" |
所有问题必须遵循此结构:
[问题文本]
A) [选项 A - 通常是推荐的,标记为"(推荐)"]
B) [选项 B]
C) [选项 C]
D) 输入您自己的答案
E) 自动生成并继续
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
关键:一次只问一个问题。等待回答后再问下一个。
CORRECT:
1. 提问 1
2. 等待回答
3. 确认理解
4. 提问 2
INCORRECT:
1. 同时提问 1、2 和 3
宣布您正在处理的部分:
"我现在将帮助您定义 [部分名称]。我会问几个问题来了解您的需求。"
对于每个问题:
选项 D (输入您自己的):
选项 E (自动生成):
关键:仅使用用户选择的答案作为事实来源。
CORRECT:
- 用户选择了 "OAuth 2.0" -> 生成 OAuth 实现细节
INCORRECT:
- 包含未选择的选项 A、B、C 的文本
- 在生成的内容中包含问题文本
生成内容后:
"我已经草拟了 [文档名称]。请审阅:"
[内容预览]
您想做什么?
A) 批准 - 继续下一步
B) 建议修改 - 告诉我需要修改什么
请用 A 或 B 回复。
循环直到获得批准或用户提供其他指示。
这个产品的主要目标是什么?(选择所有适用的选项)
A) 提高用户生产力
B) 降低运营成本
C) 提升客户体验
D) 输入您自己的答案
E) 自动生成并继续
我们应该使用哪个数据库?
A) PostgreSQL (推荐) - 适用于具有复杂查询的关系型数据
B) MongoDB - 用于灵活模式的文档存储
C) SQLite - 适用于小型应用程序的轻量级数据库
D) 输入您自己的答案
E) 自动生成并继续
应支持哪些身份验证方法?(选择所有适用的选项)
A) 邮箱/密码
B) OAuth (Google, GitHub)
C) 魔法链接
D) 输入您自己的答案
E) 自动生成并继续
使用 AskUserQuestion 工具时,映射到此框架:
AskUserQuestion({
questions: [
{
header: 'Database',
question: 'Which database should we use?',
multiSelect: false, // 排他型问题
options: [
{ label: 'PostgreSQL (Recommended)', description: 'Best for relational data' },
{ label: 'MongoDB', description: 'Document store for flexible schemas' },
{ label: 'SQLite', description: 'Lightweight for small apps' },
],
},
],
});
对于多步骤问卷,保存进度:
{
"last_successful_step": "2.1_product_guide",
"answers": {
"product_type": "SaaS",
"target_users": ["developers", "teams"]
}
}
这可以恢复中断的工作流程。
AGENT: "我将帮助您定义产品愿景。第一个问题:"
"这个产品的主要用户是谁?"
A) 开发者
B) 业务用户
C) 终端消费者
D) 输入您自己的答案
E) 自动生成并继续
USER: A, B
AGENT: "明白了 - 目标用户是开发者和业务用户。下一个问题:"
"这个产品解决了什么问题?"
A) 简化工作流程
B) 减少手动工作
C) 改善协作
D) 输入您自己的答案
E) 自动生成并继续
USER: D - "自动化代码审查反馈"
AGENT: "理解了 - 该产品为开发者和业务用户自动化代码审查反馈。让我生成产品愿景..."
| 反模式 | 失败原因 | 正确方法 |
|---|---|---|
| 一次呈现多个问题 | 回答模糊;破坏顺序状态;用户部分回答 | 问一个问题;等待答案;然后问下一个 |
| 在生成的文档中逐字使用选项文本 | 文档包含用户未选择的选项;需求不准确 | 仅使用选定的答案值,而不是完整的选项列表 |
| 跳过问题分类 (叠加型 vs 排他型) | 多选问题被当作单选处理,反之亦然;需求矛盾 | 先分类;对于叠加型问题使用 multiSelect: true |
| 未经确认就继续 | 生成的内容与用户意图不符;需要返工 | 始终呈现输出以供审阅;提供 批准 / 建议修改 循环 |
| 没有自定义输入选项 | 用户的上下文不符合任何选项;会话停滞或被迫做出错误选择 | 始终在每个问题中包含 "D) 输入您自己的答案" |
project-onboarding - 在项目设置期间使用此框架context-driven-development - 根据答案生成上下文工件brainstorming - 用于开放式探索的替代方案开始前: 读取 .claude/context/memory/learnings.md
完成后:
.claude/context/memory/learnings.md.claude/context/memory/issues.md.claude/context/memory/decisions.md假设中断:如果不在记忆中,就表示没有发生。
每周安装次数
81
仓库
GitHub 星标数
23
首次出现
Jan 27, 2026
安全审计
安装于
gemini-cli77
github-copilot77
cursor76
opencode76
kimi-cli75
codex75
Structured framework for gathering requirements through interactive questionnaires. Based on the Conductor methodology's proven human-in-the-loop patterns.
Before asking ANY question, classify its type:
| Type | Purpose | Phrasing | Example |
|---|---|---|---|
| Additive | Brainstorming, multiple answers valid | "Select all that apply" | "Which features do you need?" |
| Exclusive | Single choice required | No multi-select phrase | "Which framework should we use?" |
All questions MUST follow this structure:
[Question text]
A) [Option A - often recommended, marked with "(Recommended)"]
B) [Option B]
C) [Option C]
D) Type your own answer
E) Auto-generate and continue
CRITICAL : Ask ONE question at a time. Wait for response before next question.
CORRECT:
1. Ask Question 1
2. Wait for response
3. Confirm understanding
4. Ask Question 2
INCORRECT:
1. Ask Questions 1, 2, and 3 together
Announce the section you're working on:
"I'll now help you define [section name]. I'll ask a few questions to understand your needs."
For each question:
Option D (Type your own) :
Option E (Auto-generate) :
CRITICAL : Use ONLY the user's selected answers as source of truth.
CORRECT:
- User selected "OAuth 2.0" -> Generate OAuth implementation details
INCORRECT:
- Include Option A, B, C text that wasn't selected
- Include question text in generated content
After generating content:
"I've drafted [document name]. Please review:"
[Content preview]
What would you like to do?
A) Approve - proceed to next step
B) Suggest Changes - tell me what to modify
Please respond with A or B.
Loop until approved or user provides alternative direction.
What are the primary goals of this product? (Select all that apply)
A) Improve user productivity
B) Reduce operational costs
C) Enhance customer experience
D) Type your own answer
E) Auto-generate and continue
Which database should we use?
A) PostgreSQL (Recommended) - Best for relational data with complex queries
B) MongoDB - Document store for flexible schemas
C) SQLite - Lightweight for small applications
D) Type your own answer
E) Auto-generate and continue
Which authentication methods should be supported? (Select all that apply)
A) Email/Password
B) OAuth (Google, GitHub)
C) Magic Links
D) Type your own answer
E) Auto-generate and continue
When using the AskUserQuestion tool, map to this framework:
AskUserQuestion({
questions: [
{
header: 'Database',
question: 'Which database should we use?',
multiSelect: false, // Exclusive question
options: [
{ label: 'PostgreSQL (Recommended)', description: 'Best for relational data' },
{ label: 'MongoDB', description: 'Document store for flexible schemas' },
{ label: 'SQLite', description: 'Lightweight for small apps' },
],
},
],
});
For multi-step questionnaires, save progress:
{
"last_successful_step": "2.1_product_guide",
"answers": {
"product_type": "SaaS",
"target_users": ["developers", "teams"]
}
}
This enables resuming interrupted workflows.
AGENT: "I'll help you define the product vision. First question:"
"Who are the primary users of this product?"
A) Developers
B) Business users
C) End consumers
D) Type your own answer
E) Auto-generate and continue
USER: A, B
AGENT: "Got it - targeting developers and business users. Next question:"
"What problem does this product solve?"
A) Streamlines workflows
B) Reduces manual work
C) Improves collaboration
D) Type your own answer
E) Auto-generate and continue
USER: D - "Automates code review feedback"
AGENT: "Understood - the product automates code review feedback for developers and business users. Let me generate the product vision..."
| Anti-Pattern | Why It Fails | Correct Approach |
|---|---|---|
| Presenting multiple questions at once | Ambiguous responses; breaks sequential state; users answer partially | Ask one question; wait for answer; then ask the next |
| Using option text verbatim in generated docs | Docs include options the user didn't choose; inaccurate requirements | Use only the selected answer values, not the full option list |
| Skipping question classification (Additive vs Exclusive) | Multi-select question treated as single choice or vice versa; contradictory requirements | Classify first; use multiSelect: true for Additive questions |
| Proceeding without confirmation | Generated content doesn't match user intent; rework required | Always present output for review; provide Approve / Suggest Changes loop |
| No custom input option | User's context doesn't fit any option; session stalls or forces wrong choice | Always include "D) Type your own" in every question |
project-onboarding - Use this framework during project setupcontext-driven-development - Generate context artifacts from answersbrainstorming - Alternative for open-ended explorationBefore starting: Read .claude/context/memory/learnings.md
After completing:
.claude/context/memory/learnings.md.claude/context/memory/issues.md.claude/context/memory/decisions.mdASSUME INTERRUPTION: If it's not in memory, it didn't happen.
Weekly Installs
81
Repository
GitHub Stars
23
First Seen
Jan 27, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli77
github-copilot77
cursor76
opencode76
kimi-cli75
codex75
任务估算指南:敏捷开发故事点、计划扑克、T恤尺码法详解
10,500 周安装