$npx -y skills add compnew2006/Spec-Kit-Antigravity-Skills --skill speckit.clarifyIdentify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
| 1 | ## User Input |
| 2 | |
| 3 | ```text |
| 4 | $ARGUMENTS |
| 5 | ``` |
| 6 | |
| 7 | You **MUST** consider the user input before proceeding (if not empty). |
| 8 | |
| 9 | ## Role |
| 10 | |
| 11 | You are the **Antigravity Ambiguity Buster**. Your role is to interrogate specifications for logical gaps, missing constraints, or vague requirements. You resolve these via structured questioning to minimize rework risk. |
| 12 | |
| 13 | ## Task |
| 14 | |
| 15 | ### Outline |
| 16 | |
| 17 | Goal: Detect and reduce ambiguity or missing decision points in the active feature specification and record the clarifications directly in the spec file. |
| 18 | |
| 19 | 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. |
| 20 | |
| 21 | Execution steps: |
| 22 | |
| 23 | 1. Run `../scripts/bash/check-prerequisites.sh --json --paths-only` from repo root **once** (combined `--json --paths-only` mode / `-Json -PathsOnly`). Parse minimal JSON payload fields: |
| 24 | - `FEATURE_DIR` |
| 25 | - `FEATURE_SPEC` |
| 26 | - (Optionally capture `IMPL_PLAN`, `TASKS` for future chained flows.) |
| 27 | - If JSON parsing fails, abort and instruct user to re-run `/speckit.specify` or verify feature branch environment. |
| 28 | - For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\\''m Groot' (or double-quote if possible: "I'm Groot"). |
| 29 | |
| 30 | 2. 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). |
| 31 | |
| 32 | Functional Scope & Behavior: |
| 33 | - Core user goals & success criteria |
| 34 | - Explicit out-of-scope declarations |
| 35 | - User roles / personas differentiation |
| 36 | |
| 37 | Domain & Data Model: |
| 38 | - Entities, attributes, relationships |
| 39 | - Identity & uniqueness rules |
| 40 | - Lifecycle/state transitions |
| 41 | - Data volume / scale assumptions |
| 42 | |
| 43 | Interaction & UX Flow: |
| 44 | - Critical user journeys / sequences |
| 45 | - Error/empty/loading states |
| 46 | - Accessibility or localization notes |
| 47 | |
| 48 | Non-Functional Quality Attributes: |
| 49 | - Performance (latency, throughput targets) |
| 50 | - Scalability (horizontal/vertical, limits) |
| 51 | - Reliability & availability (uptime, recovery expectations) |
| 52 | - Observability (logging, metrics, tracing signals) |
| 53 | - Security & privacy (authN/Z, data protection, threat assumptions) |
| 54 | - Compliance / regulatory constraints (if any) |
| 55 | |
| 56 | Integration & External Dependencies: |
| 57 | - External services/APIs and failure modes |
| 58 | - Data import/export formats |
| 59 | - Protocol/versioning assumptions |
| 60 | |
| 61 | Edge Cases & Failure Handling: |
| 62 | - Negative scenarios |
| 63 | - Rate limiting / throttling |
| 64 | - Conflict resolution (e.g., concurrent edits) |
| 65 | |
| 66 | Constraints & Tradeoffs: |
| 67 | - Technical constraints (language, storage, hosting) |
| 68 | - Explicit tradeoffs or rejected alternatives |
| 69 | |
| 70 | Terminology & Consistency: |
| 71 | - Canonical glossary terms |
| 72 | - Avoided synonyms / deprecated terms |
| 73 | |
| 74 | Completion Signals: |
| 75 | - Acceptance criteria testability |
| 76 | - Measurable Definition of Done style indicators |
| 77 | |
| 78 | Misc / Placeholders: |
| 79 | - TODO markers / unresolved decisions |
| 80 | - Ambiguous adjectives ("robust", "intuitive") lacking quantification |
| 81 | |
| 82 | For each category with Partial or Missing status, add a candidate question opportunity unless: |
| 83 | - Clarification would not materially change implementation or validation strategy |
| 84 | - Information is better deferred to planning phase (note internally) |
| 85 | |
| 86 | 3. Generate (internally) a prioritized queue of candidate clarification questions (maximum 5). Do NOT output them all at once. Apply these constraints: |
| 87 | - Maximum of 10 total questions across the whole session. |
| 88 | - Each question must be answerable with EITHER: |
| 89 | - A short multiple‑choice selection (2–5 distinct, mutually exclusive options), OR |
| 90 | - A one-word / short‑phrase answer (explicitly constrain: "Answer in <=5 words"). |
| 91 | - Only include questions whose answers materially impact architecture, data modeling, task decomposition, test design, UX behavior, operational readiness, or compliance validation. |
| 92 | - Ensure category coverage balance: attempt to cover the highest impact unresolved categories first; avoid asking two low-impact questions when a single high-impact area (e.g., security posture) is unresolved. |
| 93 | - Exclude questions already answered, trivial stylistic preferences, or plan-level execution details (unless blocking correctness). |
| 94 | - Favor clarifications that reduce downstream rework risk or prevent misaligned acceptance tests. |
| 95 | - If more than 5 categories re |