name: requirements-gap-scan
description:
Use when the user explicitly asks for a requirements gap scan, missing-context checklist, or clarification pass before
implementation.
Also use its question format when a task is genuinely blocked by missing must-have details.
Requirements Gap Scan
Contract
Prereqs:
- User explicitly invokes this skill or asks for a pre-implementation gap scan, missing-context checklist, or clarification pass; or
- A task is blocked because objective, scope, done criteria, constraints, environment, or safety/reversibility are materially unclear.
- User is available to answer questions, choose suggested defaults, or explicitly approve stated assumptions.
Inputs:
- User request + any provided context (codebase, environment, constraints, examples).
- Optional mode:
gap-scan: brainstorm what is underspecified, including nice-to-decide items.
blocking: ask only must-have questions required before action.
- Optional user preference for defaults vs custom answers (for example, "defaults").
Outputs:
gap-scan: a compact requirements-gap checklist with Must Decide, Nice To Decide, Suggested Defaults, and Risks.
blocking: 1-5 numbered "Need to know" questions with short options and an explicit default.
- If the user asks to proceed without answers: a short numbered assumptions list to confirm before starting work.
Exit codes:
- N/A (conversation workflow; no repo scripts)
Failure modes:
- User cannot provide required answers and will not approve assumptions when the task is blocked.
- Constraints conflict or request stays ambiguous after Q/A.
- The skill is used as a generic delay before ordinary implementation work instead of following
AGENTS.md safe-assumption defaults.
Goal
Help the user make vague work concrete. This explicit-first skill replaces the old ask-questions-if-underspecified name with a
requirements-gap scan. Use it when the user wants Codex to find missing requirements, or when missing details would make action risky or
wrong.
Do not use this skill as the default behavior for ordinary implementation requests. If assumptions are low-risk, follow AGENTS.md:
state the assumptions briefly and proceed.
Workflow
Choose the mode
- Use
gap-scan when the user asks to brainstorm missing requirements, clarify scope, or identify what has not been decided yet.
- Use
blocking when action would be risky, wrong, irreversible, or materially incomplete without user input.
- If the user did not ask for a gap scan and safe assumptions are enough, do not stop just to use this skill.
Check the request shape
- Check objective (what should change vs stay the same)
- Check done criteria (acceptance, examples, edge cases)
- Check scope (files/components/users in or out)
- Check constraints (compatibility, performance, style, deps, time)
- Check environment (language/runtime versions, OS, test runner)
- Check safety/reversibility (migrations, rollout, risk)
Produce the right output
- For
gap-scan, separate must-decide gaps from optional decisions, then propose defaults where safe.
- For
blocking, ask only 1 to 5 questions that remove whole branches of work.
- Mark assumptions explicitly; do not present guessed requirements as facts.
Ask must-have questions first in blocking mode
- Ask 1 to 5 questions that remove whole branches of work
- Use numbered questions with short options (a/b/c)
- Provide a clear default (bold it) and a fast path reply like "defaults"
- Allow "not sure - use default" when helpful
- Separate "Need to know" from "Nice to know" only if it reduces friction
Pause before acting only when blocked
- Do not run commands, edit files, or make a detailed plan that depends on missing info
- A low-risk discovery read is allowed if it does not commit to a direction
Confirm and proceed
- Restate requirements and success criteria in 1 to 3 sentences
- Begin work only after answers or explicit approval of assumptions
Gap-Scan Format
Use this when the user explicitly asks to find missing requirements:
Requirements gap scan
Must Decide
1. <decision that changes scope or correctness>
- Suggested default: <default>
- Why it matters: <one sentence>
Nice To Decide
- <decision that can wait or has a safe default>
Suggested Defaults
- <assumption Codex can use if the user says "defaults">
Risks
- <risk if this remains vague>
Reply with: defaults, or answer the numbered items.
Blocking Format
Use a compact, scannable structure. Example:
Need to know
1) Scope?
a) **Minimal change**
b) Refactor while touching the area
c) Not sure - use default
2) Compatibility target?
a) **Current project defaults**
b) Also support older versions: <specify>
c) Not sure - use default
Reply with: defaults (or 1a 2a)
If asked to proceed without answers
- State assumptions as a short numbered list
- Ask for confirmation
- Proceed only after confirmation or corrections
1---2name: requirements-gap-scan3description: Use when the user explicitly asks for a requirements gap scan, missing-context checklist, or clarification pass before implementation. Also use its question for4---5---6name: requirements-gap-scan7description:8 Use when the user explicitly asks for a requirements gap scan, missing-context checklist, or clarification pass before9 implementation.10 Also use its question format when a task is genuinely blocked by missing must-have details.11---1213# Requirements Gap Scan1415## Contract1617Prereqs:1819- User explicitly invokes this skill or asks for a pre-implementation gap scan, missing-context checklist, or clarification pass; or20- A task is blocked because objective, scope, done criteria, constraints, environment, or safety/reversibility are materially unclear.21- User is available to answer questions, choose suggested defaults, or explicitly approve stated assumptions.2223Inputs:2425- User request + any provided context (codebase, environment, constraints, examples).26- Optional mode:27 - `gap-scan`: brainstorm what is underspecified, including nice-to-decide items.28 - `blocking`: ask only must-have questions required before action.29- Optional user preference for defaults vs custom answers (for example, "defaults").3031Outputs:3233- `gap-scan`: a compact requirements-gap checklist with `Must Decide`, `Nice To Decide`, `Suggested Defaults`, and `Risks`.34- `blocking`: 1-5 numbered "Need to know" questions with short options and an explicit default.35- If the user asks to proceed without answers: a short numbered assumptions list to confirm before starting work.3637Exit codes:3839- N/A (conversation workflow; no repo scripts)4041Failure modes:4243- User cannot provide required answers and will not approve assumptions when the task is blocked.44- Constraints conflict or request stays ambiguous after Q/A.45- The skill is used as a generic delay before ordinary implementation work instead of following `AGENTS.md` safe-assumption defaults.4647## Goal4849Help the user make vague work concrete. This explicit-first skill replaces the old `ask-questions-if-underspecified` name with a50requirements-gap scan. Use it when the user wants Codex to find missing requirements, or when missing details would make action risky or51wrong.5253Do not use this skill as the default behavior for ordinary implementation requests. If assumptions are low-risk, follow `AGENTS.md`:54state the assumptions briefly and proceed.5556## Workflow57581. Choose the mode59 - Use `gap-scan` when the user asks to brainstorm missing requirements, clarify scope, or identify what has not been decided yet.60 - Use `blocking` when action would be risky, wrong, irreversible, or materially incomplete without user input.61 - If the user did not ask for a gap scan and safe assumptions are enough, do not stop just to use this skill.62632. Check the request shape64 - Check objective (what should change vs stay the same)65 - Check done criteria (acceptance, examples, edge cases)66 - Check scope (files/components/users in or out)67 - Check constraints (compatibility, performance, style, deps, time)68 - Check environment (language/runtime versions, OS, test runner)69 - Check safety/reversibility (migrations, rollout, risk)70713. Produce the right output72 - For `gap-scan`, separate must-decide gaps from optional decisions, then propose defaults where safe.73 - For `blocking`, ask only 1 to 5 questions that remove whole branches of work.74 - Mark assumptions explicitly; do not present guessed requirements as facts.75764. Ask must-have questions first in `blocking` mode77 - Ask 1 to 5 questions that remove whole branches of work78 - Use numbered questions with short options (a/b/c)79 - Provide a clear default (bold it) and a fast path reply like "defaults"80 - Allow "not sure - use default" when helpful81 - Separate "Need to know" from "Nice to know" only if it reduces friction82835. Pause before acting only when blocked84 - Do not run commands, edit files, or make a detailed plan that depends on missing info85 - A low-risk discovery read is allowed if it does not commit to a direction86876. Confirm and proceed88 - Restate requirements and success criteria in 1 to 3 sentences89 - Begin work only after answers or explicit approval of assumptions9091## Gap-Scan Format9293Use this when the user explicitly asks to find missing requirements:9495```text96Requirements gap scan9798Must Decide991. <decision that changes scope or correctness>100 - Suggested default: <default>101 - Why it matters: <one sentence>102103Nice To Decide104- <decision that can wait or has a safe default>105106Suggested Defaults107- <assumption Codex can use if the user says "defaults">108109Risks110- <risk if this remains vague>111112Reply with: defaults, or answer the numbered items.113```114115## Blocking Format116117Use a compact, scannable structure. Example:118119```text120Need to know1211) Scope?122 a) **Minimal change**123 b) Refactor while touching the area124 c) Not sure - use default1252) Compatibility target?126 a) **Current project defaults**127 b) Also support older versions: <specify>128 c) Not sure - use default129Reply with: defaults (or 1a 2a)130```131132## If asked to proceed without answers133134- State assumptions as a short numbered list135- Ask for confirmation136- Proceed only after confirmation or corrections