بنقرة واحدة
clarify
Analyze specifications and generate clarification questions to eliminate ambiguity before implementation
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Analyze specifications and generate clarification questions to eliminate ambiguity before implementation
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Analyze and extract requirements from use case diagram. Use when extracting UR/FR/NFR from use cases or when called by generate-prd.
Check consistency between implementation code and design documents (design), detecting discrepancies
Generate quality assurance checklists from specifications and plans with structured IDs and categories
Define and manage non-negotiable project principles (Constitution) and verify synchronization with other documents
Automatically executed during document updates or before implementation to check consistency between PRD ↔ *_spec.md ↔ *_design.md. Detects missing requirement ID (UR/FR/NFR) references, data model mismatches, API definition discrepancies, terminology inconsistencies, and ensures traceability between documents.
Finalize and integrate PRD from all artifacts. Use when combining use case diagrams, requirements analysis, and requirements diagrams into a complete PRD, or when called by generate-prd.
| name | clarify |
| description | Analyze specifications and generate clarification questions to eliminate ambiguity before implementation |
| argument-hint | <feature-name> [--interactive] |
| arguments | ["feature-name"] |
| license | MIT |
| user-invocable | true |
| allowed-tools | Read, Write, Edit, Glob, Grep, AskUserQuestion |
| disallowed-tools | Bash |
Scans specifications across 9 key categories and generates targeted clarification questions to eliminate ambiguity before implementation.
Read the following prerequisite references before execution:
references/prerequisites_plugin_update.md - Check for plugin updatesreferences/prerequisites_principles.md - Read AI-SDD principles documentreferences/prerequisites_directory_paths.md - Resolve directory paths using SDD_* environment variablesThis command is complementary to the vibe-detector skill:
| Tool | Purpose | When to Use |
|---|---|---|
| vibe-detector | Detects vague instructions in user requests | During task initiation |
| clarify | Scans existing specs for ambiguity and gaps | Before implementation planning |
Output templates are located under templates/${SDD_LANG:-en}/ within this skill directory.
The SDD_LANG environment variable determines the language (default: en).
feature-name: $feature-nameFull argument string: $ARGUMENTS
Fallback: If the value above is empty, remains a literal
$placeholder, or starts with--(a flag captured positionally), treat the argument as omitted and interpret the full argument string instead. Ask the user interactively when a required argument is missing.
| Argument | Required | Description |
|---|---|---|
feature-name | Yes | Target feature name or path (e.g., user-auth, auth/user-login) |
--interactive | - | Interactive mode: Answer questions one at a time |
Reference: references/command_examples.md
Both flat and hierarchical structures are supported.
See references/target_specification_loading.md for the list of paths to load for flat and hierarchical structures.
Note the difference in naming conventions:
index.md, {feature-name}.md)_spec or _design suffix required (index_spec.md, {feature-name}_spec.md)Analyze specifications across 9 key categories. See references/nine_category_analysis.md for:
Based on category analysis, generate up to 5 high-impact questions using the format in
references/nine_category_analysis.md.
After receiving user answers, the main agent (this skill) applies the integration:
clarification-assistant agent output*_spec.md or *_design.md using Edit/Write toolsNote: The clarification-assistant agent outputs integration proposals (target file, section, content). This skill
applies the actual edits.
Use the templates/${SDD_LANG:-en}/clarification_output.md template for output formatting.
When user provides answers, use the --integrate flag (e.g. /clarify user-auth --integrate).
This will:
| Scenario | Recommended Action |
|---|---|
| Before task breakdown | Run /clarify to catch ambiguities early |
| After receiving vague requirements | Use with /generate-spec to build complete specs |
| During spec review | Verify all 9 categories are addressed |
| Before implementation | Final check to ensure no hidden assumptions |
See references/complementary_commands.md for the recommended command sequence around /clarify.
Use --categories with a comma-separated list, e.g. /clarify user-auth --categories flow,integrations,edge-cases.
Use --detail with one of the following values:
| Value | Effect |
|---|---|
minimal | Top 3 questions only |
standard | Top 5 questions (default) |
comprehensive | All identified issues |
The following verifications are automatically performed during clarification:
Reference: references/verification_commands.md
| Clarity Score | Recommended Action |
|---|---|
| 80% or above | Ready for implementation |
| 60-79% | Recommended to resolve Partial items |
| Below 60% | Further clarification required before implementation |