ask-questions-if-underspecified
Agent skill fromMoizIbnYousaf/ai-agent-skills
Clarify requirements before implementing. Do not use automatically, only when invoked explicitly.
How to install ask-questions-if-underspecified
install ask-questions-if-underspecified
# install the ai-agent-skills pack with the skills CLI
npx skills add MoizIbnYousaf/ai-agent-skills# or add only this skill to Claude Code: copy the folder
skills/ask-questions-if-underspecified/
# into
~/.claude/skills/ask-questions-if-underspecified/ (all projects)
.claude/skills/ask-questions-if-underspecified/ (one project)
1# Ask Questions If Underspecified23## Goal45Ask 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).67## Workflow89### 1) Decide whether the request is underspecified1011Treat a request as underspecified if after exploring how to perform the work, some or all of the following are not clear:12- Define the objective (what should change vs stay the same)13- Define "done" (acceptance criteria, examples, edge cases)14- Define scope (which files/components/users are in/out)15- Define constraints (compatibility, performance, style, deps, time)16- Identify environment (language/runtime versions, OS, build/test runner)17- Clarify safety/reversibility (data migration, rollout/rollback, risk)1819If multiple plausible interpretations exist, assume it is underspecified.2021### 2) Ask must-have questions first (keep it small)2223Ask 1-5 questions in the first pass. Prefer questions that eliminate whole branches of work.2425Make questions easy to answer:26- Optimize for scannability (short, numbered questions; avoid paragraphs)27- Offer multiple-choice options when possible28- Suggest reasonable defaults when appropriate (mark them clearly as the default/recommended choice; bold the recommended choice in the list, or if you present options in a code block, put a bold "Recommended" line immediately above the block and also tag defaults inside the block)29…
Excerpt shown under the repository's MIT license.
