ask-questions-if-underspecified by trailofbits/skills
npx skills add https://github.com/trailofbits/skills --skill ask-questions-if-underspecified当请求存在多种合理解读,或关键细节(目标、范围、约束、环境或安全性)不明确时,使用此技能。
当请求已足够清晰,或通过一次快速、低风险的探索性阅读即可获取缺失细节时,请勿使用此技能。
提出最少的澄清性问题以避免错误工作;在必须回答的问题得到解决(或用户明确批准基于既定假设继续)之前,不要开始实施。
如果在探索如何执行工作后,以下部分或全部内容仍不清晰,则视为请求不够明确:
如果存在多种合理解读,则假定其不够明确。
在第一轮中提出 1-5 个问题。优先选择能排除整个工作分支的问题。
使问题易于回答:
defaults 以接受所有推荐/默认选择)1b 2a 3c);用通俗语言重述所选选项以进行确认广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
在获得必须的答案之前:
如果用户明确要求你在没有答案的情况下继续:
一旦获得答案,用 1-3 句话重述需求(包括关键约束和成功标准),然后开始工作。
1) 范围?
a) 最小化改动 (默认)
b) 在涉及该区域时进行重构
c) 不确定 - 使用默认值
2) 兼容性目标?
a) 当前项目默认值 (默认)
b) 同时支持旧版本:<指定>
c) 不确定 - 使用默认值
回复格式:defaults (或 1a 2a)
1.7K
3.9K
2026年1月19日
claude-code1.4K
codex1.4K
opencode1.3K
gemini-cli1.3K
github-copilot1.2K
cursor1.2K
Use this skill when a request has multiple plausible interpretations or key details (objective, scope, constraints, environment, or safety) are unclear.
Do not use this skill when the request is already clear, or when a quick, low-risk discovery read can answer the missing details.
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)
Weekly Installs
1.7K
Repository
GitHub Stars
3.9K
First Seen
Jan 19, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code1.4K
codex1.4K
opencode1.3K
gemini-cli1.3K
github-copilot1.2K
cursor1.2K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装