Speckit clarify

From jiazhenz026/SciStudio · View interactive version

Speckit clarify is an AI agent skill from the GitHub repository jiazhenz026/SciStudio. Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.

How to use this skill

Skill file

User Input

$ARGUMENTS

You MUST consider the user input before proceeding (if not empty).

Outline

Goal: Detect and reduce ambiguity or missing decision points in the active feature specification and record the clarifications directly in the spec file.

Note: This clarification workflow is expected to run (and be completed) BEFORE invoking /speckit.plan. If the user explicitly states they are skipping clarification (e.g., exploratory spike), you may proceed, but must warn that downstream rework risk increases.

Execution steps:

  1. Run .specify/scripts/powershell/check-prerequisites.ps1 -Json -PathsOnly from repo root once (combined --json --paths-only mode / -Json -PathsOnly). Parse minimal JSON payload fields:
  1. Load the current spec file. Perform a structured ambiguity & coverage scan using this taxonomy. For each category, mark status: Clear / Partial / Missing. Produce an internal coverage map used for prioritization (do not output raw map unless no questions will be asked).

Functional Scope & Behavior:

Domain & Data Model:

Interaction & UX Flow:

Non-Functional Quality Attributes:

Integration & External Dependencies:

Edge Cases & Failure Handling:

Constraints & Tradeoffs:

Terminology & Consistency:

Completion Signals:

Misc / Placeholders:

For each category with Partial or Missing status, add a candidate question opportunity unless:

  1. Generate (internally) a prioritized queue of candidate clarification questions (maximum 5). Do NOT output them all at once. Apply these constraints:
  1. Sequential questioning loop (interactive):

| Option | Description |

|--------|-------------|

| A | <Option A description> |

| B | <Option B description> |

| C | <Option C description> (add D/E as needed up to 5) |

| Short | Provide a different short answer (<=5 words) (Include only if free-form alternative is appropriate) |

  1. Integration after EACH accepted answer (incremental update approach):
  1. Validation (performed after EACH write plus final pass):
  1. Write the updated spec back to FEATURE_SPEC.
  1. Report completion (after questioning loop ends or early termination):

Behavior rules:

Context for prioritization: $ARGUMENTS

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.