Add Clarification Phase to PLAN mode#75
Merged
Merged
Conversation
- Add optional Q&A phase to clarify ambiguous requirements - Sequential questions with progress indicator and multiple-choice format - Ambiguity assessment checklist and question count guidelines - Korean/English language support - Add clarification-guide.md and update core.md close #40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Clarification Phase to PLAN Mode
Summary
This PR adds an optional Clarification Phase to PLAN MODE that enables AI to ask sequential questions to clarify ambiguous requirements before creating implementation plans. This feature significantly improves plan accuracy and reduces rework by ensuring all ambiguities are resolved upfront.
Problem Statement
Current Issues
Before this feature, PLAN MODE would immediately start creating plans even when requirements were ambiguous, leading to:
Solution
Add an optional Clarification Phase that:
Features
Core Functionality
Ambiguity Assessment
6-category checklist to determine if clarification is needed:
Trigger Rule: If 2+ categories are unclear → Start Clarification Phase
Question Guidelines
communication.languagesetting, falls back to user input languageChanges
New Files
.ai-rules/rules/clarification-guide.md(138 lines)docs/plans/2025-12-22-plan-clarification-phase-design.md(271 lines)Modified Files
.ai-rules/rules/core.md.ai-rules/README.md.ai-rules/CHANGELOG.mdArchitecture
Implementation Approach
Usage Examples
Example 1: Ambiguous Request Triggers Clarification
User: "Add user authentication"
AI:
Example 2: Clear Request Skips Clarification
User: "Add email/password authentication with bcrypt hashing, JWT tokens, and session management. Include login, logout, and password reset endpoints."
AI: Skips Clarification Phase → Proceeds directly to PLAN creation
Benefits
Testing
Related Issue
Closes #40
Files Changed
.ai-rules/rules/clarification-guide.md- New (138 lines).ai-rules/rules/core.md- Modified (+38 lines).ai-rules/README.md- Modified (+10 lines).ai-rules/CHANGELOG.md- Modified (+10 lines)docs/plans/2025-12-22-plan-clarification-phase-design.md- New (271 lines)Statistics
Documentation
.ai-rules/rules/clarification-guide.mddocs/plans/2025-12-22-plan-clarification-phase-design.md.ai-rules/rules/core.mdOut of Scope
The following are explicitly out of scope for this PR:
Next Steps
Notes
This feature significantly improves the PLAN mode workflow by ensuring requirements are clarified before plan creation. The rule-based approach means no infrastructure changes are needed - AI assistants simply follow the documented guidelines to implement the clarification phase.
The implementation is designed to be: