Clarify ambiguities in a GitHub issue through structured questioning
Clarifies ambiguous GitHub issues by analyzing them against 9 categories (scope, data model, UX, edge cases, etc.), then asks targeted multiple-choice questions to fill critical gaps. Use when requirements are unclear before implementation to prevent rework.
/plugin marketplace add sjungling/claude-plugins/plugin install workflow@claude-pluginsissue-urlClarify ambiguities in GitHub issue: $ARGUMENTS
Fetch the issue details using gh:
gh issue view "$ISSUE_NUMBER" --json number,title,body,url,labels,state
Parse the issue title and body to understand the current specification.
Analyze the issue against these nine categories to identify gaps:
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
For each category, assign a status:
Generate up to 5 targeted clarification questions that:
For each question:
Use the AskUserQuestion tool to present clarifications:
multiSelect: false for mutually exclusive choicesExample AskUserQuestion usage:
{
"questions": [
{
"question": "What should happen when a user tries to perform this action without authentication?",
"header": "Auth handling",
"multiSelect": false,
"options": [
{
"label": "Redirect to login",
"description": "Send user to login page with return URL. Standard web app pattern."
},
{
"label": "Show 401 error",
"description": "Return 401 status. Better for API endpoints."
},
{
"label": "Graceful degradation",
"description": "Show limited functionality without auth. Good for public features."
}
]
}
]
}
After receiving answers from the user:
Create clarifications file (if it doesn't exist):
/tmp/claude/issue-$ISSUE_NUMBER-clarifications.md# Clarifications for Issue #$ISSUE_NUMBER
## Date: YYYY-MM-DD
### [Category Name]
**Q:** [Question text]
**A:** [User's answer with reasoning if applicable]
---
Update existing clarifications (if file exists):
Update the GitHub issue:
/tmp/claude/issue-$ISSUE_NUMBER-body.md## Clarifications section at the endgh issue edit $ISSUE_NUMBER --body-file /tmp/claude/issue-$ISSUE_NUMBER-body.mdValidate:
After clarification session ends, provide:
## Clarification Summary
**Questions asked:** X
**Questions answered:** Y
**Issue updated:** #$ISSUE_NUMBER
**Coverage by Category:**
| Category | Status | Notes |
|----------|--------|-------|
| Functional Scope | Clear/Partial/Missing | ... |
| Domain Model | Clear/Partial/Missing | ... |
| ... | ... | ... |
**Next Steps:**
- [Suggested action based on coverage]
- [Any remaining ambiguities to address]
- [Ready to proceed with implementation? Yes/No]
gh issue view → extract title and bodyAskUserQuestion tool → collect structured responsesgh issue edit --body-fileProceed with clarifying the issue following these guidelines.