Follow up Question.instructions
---
description: "Enforce follow-up questions before generating code"
---
# Follow-up Question Instructions
## Overview
Before generating code, AI must ask clarifying questions to ensure correct implementation.
## Required Questions
When a user requests code generation, ALWAYS ask:
1. **Context**: What is the purpose of this code in the broader system?
2. **Requirements**: What are the specific requirements and constraints?
3. **Dependencies**: What frameworks, libraries, or patterns should be used?
4. **Testing**: What level of test coverage is expected?
5. **Edge Cases**: Are there any special cases to handle?
## Confidence Assessment
After gathering information, state your confidence level:
- **High Confidence (80-100%)**: "I understand the requirements and can proceed."
- **Medium Confidence (50-79%)**: "I have some questions about [X] before proceeding."
- **Low Confidence (<50%)**: "I need more information about [X, Y, Z] to proceed correctly."
## Example Interaction
**User**: "Create an order processing function"
**AI**:when to use it
Community prompt sourced from the open-source GitHub repo duthaho/copilot-instructions (MIT). A "Follow up Question.instructions" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
roleplaycommunitygeneral
source
duthaho/copilot-instructions · MIT