Context-Aware Question Generator Skill
Analyze project context to surface information gaps and generate prioritized, actionable questions.
When to Use
Activate when:
- User asks "what am I missing?" or "what questions should I be asking?"
- Reviewing issues before starting work
- Analyzing documentation completeness
- Preparing a draft (issue, PR, document) for submission
- During project planning or kickoff
Fetching Issues
Where issues are needed, fetch them with the gh CLI (must be installed and authenticated):
gh issue list --state open --json number,title,body,labels,assignees
gh issue view <n> --comments
Analysis Modes
1. Project-Wide Review
When asked "what am I missing?" or "what questions should I be asking?":
- Fetch all open issues (see Fetching Issues)
- Analyze project structure
- Check README and documentation
- Analyze all gathered data for information gaps
- Generate prioritized questions
2. Issue Review
When asked to review a specific issue:
- Fetch the issue and all comments (see Fetching Issues)
- Analyze for missing requirements, unclear specs, and gaps
- Generate targeted questions for that issue
3. Draft Review
When reviewing a draft (issue, PR, note) before submission:
- Analyze the provided text for completeness
- Check against standard templates and best practices
- Suggest specific improvements
4. Documentation Gap Analysis
When asked about documentation completeness:
- Read README.md and files in docs/
- Analyze what the project contains
- Identify missing documentation by comparing project content to docs
Gap Detection Heuristics
Issue Analysis
- Missing acceptance criteria: No checkboxes, no "done when" statement
- Vague descriptions: Less than 100 characters, contains "unclear", "might", "maybe"
- Missing labels or assignees: Issue has no labels or no assignee
- Stale issues: Open more than 30 days with no activity
- Bug reports without reproduction steps: No "steps to reproduce" section
Documentation Analysis
- Missing README sections: No install, usage, or examples sections
- No dedicated docs/ directory: For projects with more than 10 files
- Short README: Less than 500 characters
- Missing license information: No LICENSE file or license section
- No inline documentation: Missing JSDoc/docstrings in key files
Project-Wide Analysis
- Conflicting descriptions across issues, README, and docs
- Missing architecture documentation: No system overview for complex projects
- Undocumented key files: Entry points without explaining comments
- No project overview available: Run the
project-analysis skill first to map the project structure
Output Structure
Questions are categorized and prioritized:
Categories
- requirements: Missing acceptance criteria, unclear specs, vague descriptions
- technical: Implementation questions, architecture decisions
- documentation: Missing docs, unclear README sections
- process: Workflow gaps, missing labels/assignees
- consistency: Conflicting information across sources
- architecture: High-level design questions
Priorities
- high: Blocking or critical gaps that need immediate attention
- medium: Important gaps that should be addressed soon
- low: Nice-to-have clarifications
Example Output
## Information Gaps Found
### High Priority (3)
1. [requirements] Issue #42 lacks acceptance criteria
- Context: "Add login feature" has no definition of done
- Suggested Action: Add checkboxes with acceptance criteria
2. [documentation] No API documentation found
- Context: Project has 15 endpoints but no API reference
- Suggested Action: Create docs/api.md with endpoint documentation
### Medium Priority (5)
...
Best Practices
When Generating Questions
- Always prioritize by impact
- Group related questions together
- Provide actionable suggested actions
- Link to specific sources (issue number, file path)
When Reviewing Drafts
- Be constructive, not critical
- Suggest specific improvements with example text when helpful
- Acknowledge what's already good
When Analyzing Documentation
- Check against industry standards
- Consider the project type (CLI needs different docs than library)
1---2name: context-aware-questions3description: Use when asked 'what am I missing?', reviewing an issue or draft before submission, or checking documentation completeness - detects requirement, spec, and doc gaps and generates prioritized actionable questions4---56# Context-Aware Question Generator Skill78Analyze project context to surface information gaps and generate prioritized, actionable questions.910## When to Use1112Activate when:13- User asks "what am I missing?" or "what questions should I be asking?"14- Reviewing issues before starting work15- Analyzing documentation completeness16- Preparing a draft (issue, PR, document) for submission17- During project planning or kickoff1819## Fetching Issues2021Where issues are needed, fetch them with the `gh` CLI (must be installed and authenticated):2223```bash24gh issue list --state open --json number,title,body,labels,assignees25gh issue view <n> --comments26```2728## Analysis Modes2930### 1. Project-Wide Review3132When asked "what am I missing?" or "what questions should I be asking?":33341. Fetch all open issues (see Fetching Issues)352. Analyze project structure363. Check README and documentation374. Analyze all gathered data for information gaps385. Generate prioritized questions3940### 2. Issue Review4142When asked to review a specific issue:43441. Fetch the issue and all comments (see Fetching Issues)452. Analyze for missing requirements, unclear specs, and gaps463. Generate targeted questions for that issue4748### 3. Draft Review4950When reviewing a draft (issue, PR, note) before submission:51521. Analyze the provided text for completeness532. Check against standard templates and best practices543. Suggest specific improvements5556### 4. Documentation Gap Analysis5758When asked about documentation completeness:59601. Read README.md and files in docs/612. Analyze what the project contains623. Identify missing documentation by comparing project content to docs6364## Gap Detection Heuristics6566### Issue Analysis67- **Missing acceptance criteria**: No checkboxes, no "done when" statement68- **Vague descriptions**: Less than 100 characters, contains "unclear", "might", "maybe"69- **Missing labels or assignees**: Issue has no labels or no assignee70- **Stale issues**: Open more than 30 days with no activity71- **Bug reports without reproduction steps**: No "steps to reproduce" section7273### Documentation Analysis74- **Missing README sections**: No install, usage, or examples sections75- **No dedicated docs/ directory**: For projects with more than 10 files76- **Short README**: Less than 500 characters77- **Missing license information**: No LICENSE file or license section78- **No inline documentation**: Missing JSDoc/docstrings in key files7980### Project-Wide Analysis81- **Conflicting descriptions across issues, README, and docs**82- **Missing architecture documentation**: No system overview for complex projects83- **Undocumented key files**: Entry points without explaining comments84- **No project overview available**: Run the `project-analysis` skill first to map the project structure8586## Output Structure8788Questions are categorized and prioritized:8990### Categories91- **requirements**: Missing acceptance criteria, unclear specs, vague descriptions92- **technical**: Implementation questions, architecture decisions93- **documentation**: Missing docs, unclear README sections94- **process**: Workflow gaps, missing labels/assignees95- **consistency**: Conflicting information across sources96- **architecture**: High-level design questions9798### Priorities99- **high**: Blocking or critical gaps that need immediate attention100- **medium**: Important gaps that should be addressed soon101- **low**: Nice-to-have clarifications102103## Example Output104105```markdown106## Information Gaps Found107108### High Priority (3)1091. [requirements] Issue #42 lacks acceptance criteria110 - Context: "Add login feature" has no definition of done111 - Suggested Action: Add checkboxes with acceptance criteria1121132. [documentation] No API documentation found114 - Context: Project has 15 endpoints but no API reference115 - Suggested Action: Create docs/api.md with endpoint documentation116117### Medium Priority (5)118...119```120121## Best Practices122123### When Generating Questions1241. Always prioritize by impact1252. Group related questions together1263. Provide actionable suggested actions1274. Link to specific sources (issue number, file path)128129### When Reviewing Drafts1301. Be constructive, not critical1312. Suggest specific improvements with example text when helpful1323. Acknowledge what's already good133134### When Analyzing Documentation1351. Check against industry standards1362. Consider the project type (CLI needs different docs than library)