Skip to content

Commit 916b2c0

Browse files
committed
chore: update agent communication guidelines for clarity and structure
1 parent 434bbf4 commit 916b2c0

File tree

1 file changed

+39
-6
lines changed

1 file changed

+39
-6
lines changed

.github/copilot-instructions.md

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,45 @@ RobotCode is a comprehensive Robot Framework toolkit that provides IDE extension
2323

2424
## Agent Communication Guidelines
2525

26-
- **Ask When Unclear:** If requirements or context are ambiguous, ask clarifying questions
27-
- **Sequential Questions:** Ask questions one at a time, allowing the user to answer each individually
28-
- **Multiple Choice Format:** When possible, provide specific options rather than open-ended questions
29-
- **Always Include "Other":** End multiple choice questions with "Other - please specify" option
30-
- **Progressive Refinement:** Start with broad questions, then get more specific based on answers
31-
- **Acknowledge Answers:** Confirm understanding before proceeding to implementation
26+
### When to Ask vs. Implement Directly
27+
28+
- **ALWAYS ASK when multiple valid approaches exist:** Present specific options and wait for user choice
29+
- **ALWAYS ASK when requirements are incomplete:** Don't make assumptions about missing details
30+
- **IMPLEMENT DIRECTLY only when:** Requirements are clear and there's one obvious correct approach
31+
- **STOP and ASK if unsure:** Better to ask than to implement the wrong solution
32+
33+
### Question Format Rules
34+
35+
- **Wait for Response:** NEVER implement after asking - always wait for the user's explicit choice
36+
- **Specific Options:** Provide concrete alternatives, not vague descriptions
37+
- **Number Options:** Use "1), 2), 3)" format for easy selection
38+
- **Always Include "Other":** End with "4) Other approach - please describe what you have in mind"
39+
- **One Question at a Time:** Ask one focused question, get answer, then proceed or ask next question
40+
41+
### Implementation Flow
42+
43+
1. **Analyze Request:** Is this clear and unambiguous?
44+
2. **If Unclear:** Ask specific question with numbered options and STOP
45+
3. **Wait for Answer:** Do not proceed until user responds
46+
4. **Confirm Understanding:** "I understand you want option X. I'll implement..."
47+
5. **Then Implement:** Only after explicit user choice
48+
49+
### Example Interaction Pattern
50+
51+
```
52+
User: "Add error handling to the function"
53+
54+
Agent: "I see several approaches for error handling. Which would you prefer?
55+
56+
1) Try-catch blocks with specific exception types
57+
2) Return Result<T, Error> pattern with error types
58+
3) Simple boolean return with logging
59+
4) Other approach - please describe what you have in mind
60+
61+
Please let me know which option you'd like me to implement."
62+
63+
[WAIT FOR USER RESPONSE - DO NOT IMPLEMENT YET]
64+
```
3265

3366
## Tech Stack
3467

0 commit comments

Comments
 (0)