ask-questions-if-underspecified by skillcreatorai/ai-agent-skills
npx skills add https://github.com/skillcreatorai/ai-agent-skills --skill ask-questions-if-underspecified提出最少量的澄清问题以避免错误工作;在必须回答的问题得到解答(或用户明确批准在陈述的假设下继续)之前,不要开始实施。
如果在探索如何执行工作后,以下部分或全部内容仍不清楚,则将请求视为不够明确:
如果存在多种合理的解释,则假定其不够明确。
在第一轮中提出 1-5 个问题。优先选择能消除整个工作分支的问题。
使问题易于回答:
defaults 以接受所有推荐/默认选择)1b 2a 3c);用通俗语言重述所选选项以进行确认在获得必须回答的问题答案之前:
如果用户明确要求你在没有答案的情况下继续:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
一旦你获得答案,用 1-3 句话重述需求(包括关键约束条件和成功标准),然后开始工作。
“在我开始之前,我需要知道:(1) ..., (2) ..., (3) .... 如果你不关心 (2),我将假设 ....”
“应该是以下哪个选项?A) ... B) ... C) ... (选择一个)”
“你认为什么算‘完成’?例如:...”
“有什么我必须遵守的约束条件(版本、性能、风格、依赖项)?如果没有,我将以现有项目的默认值为目标。”
使用带有字母选项和清晰回复格式的编号问题
回复格式:defaults (或 1a 2a)
最初由 @thsottiaux 创建
每周安装量
130
仓库
GitHub 星标数
957
首次出现
2026年1月20日
安全审计
安装于
opencode113
gemini-cli109
codex105
claude-code97
github-copilot94
cursor92
Ask the minimum set of clarifying questions needed to avoid wrong work; do not start implementing until the must-have questions are answered (or the user explicitly approves proceeding with stated assumptions).
Treat a request as underspecified if after exploring how to perform the work, some or all of the following are not clear:
If multiple plausible interpretations exist, assume it is underspecified.
Ask 1-5 questions in the first pass. Prefer questions that eliminate whole branches of work.
Make questions easy to answer:
defaults to accept all recommended/default choices)1b 2a 3c); restate the chosen options in plain language to confirmUntil must-have answers arrive:
If the user explicitly asks you to proceed without answers:
Once you have answers, restate the requirements in 1-3 sentences (including key constraints and what success looks like), then start work.
"Before I start, I need: (1) ..., (2) ..., (3) .... If you don't care about (2), I will assume ...."
"Which of these should it be? A) ... B) ... C) ... (pick one)"
"What would you consider 'done'? For example: ..."
"Any constraints I must follow (versions, performance, style, deps)? If none, I will target the existing project defaults."
Use numbered questions with lettered options and a clear reply format
Reply with: defaults (or 1a 2a)
Originally created by@thsottiaux
Weekly Installs
130
Repository
GitHub Stars
957
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode113
gemini-cli109
codex105
claude-code97
github-copilot94
cursor92
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
65,000 周安装