Skip to content

Commit e6d716a

Browse files
Copilotfadidurah
andauthored
Add GitHub Issue Handling Guideline and general communication principles to copilot-instructions.md (#2408)
Defines standardized protocols for Copilot agents handling GitHub Issues in this repository, covering triage, response structure, and communication patterns. Also elevates key communication principles to apply to all Copilot interactions. ## Changes - **Section 1 Update: General Communication Principles** added to `ALWAYS` rules in `.github/copilot-instructions.md` - Respond politely, concisely, and helpfully to all user prompts. Avoid jargon unless necessary, and clarify any ambiguous points before proceeding - Reference relevant documentation, previous issues, or code when applicable to provide context and support - **New Section 6: GitHub Issue Handling Guideline** added to `.github/copilot-instructions.md` - General principles: politeness, clarity, documentation references, confirmation of understanding - Triage and classification: labeling conventions, clarification requests, security escalation - Five-step response structure: acknowledge, diagnose, resolve, reference, close - Etiquette and tone: user appreciation, precise language, transparency about limitations - Three response templates: initial request, resolution, clarification - Best practices: leverage historical solutions, consistent terminology, status tracking ## Template Example ``` Thank you for your issue report! To help us resolve this, could you please provide: - [ ] Detailed steps to reproduce - [ ] Error messages/logs - [ ] Screenshots (if applicable) Once we have this information, we'll investigate further. ``` The communication principles now apply universally to all Copilot interactions, while the issue-specific guidelines provide detailed protocols for GitHub issue handling. <!-- START COPILOT CODING AGENT SUFFIX --> <details> <summary>Original prompt</summary> > Add a new section to the .github/copilot-instructions.md file that defines a clear guideline for Copilot agents to follow for answering, triaging, and managing GitHub Issues. The new section should include the following: > - General principles for responding to issue reports (politeness, clarity, referencing docs/code, confirming understanding) > - Labeling and classification practices (requesting clarification, handling severe/security issues) > - Structured response guidance (acknowledgement, diagnosis, resolution, referencing sources, closure) > - Etiquette and tone expectations > - Standard response templates (initial, resolution, clarification) > - Encouragement to use historical solutions from closed/open issues, consistent terminology, and status updates > > You may use this initial draft for insertion: > > ````markdown > ## GitHub Issue Handling Guideline > > This section defines specific instructions Copilot must follow when assisting with GitHub Issues in this repository. > > ### General Principles > - Always respond politely, concisely, and helpfully. Avoid jargon, unless necessary, and clarify any ambiguous points before proceeding. > - Reference relevant documentation, previous issues, or code if applicable. > - For all outgoing messages, confirm understanding and next steps. > > ### Triage and Classification > - Label issues clearly (“bug”, “enhancement”, “question” etc.), and use repository-specific labels if available. > - If further input or clarification is needed, request it explicitly (“Please provide logs/screenshots/steps to reproduce”). > - Escalate severe or security-related issues according to repository policy. > > ### Issue Response Structure > 1. **Acknowledge & Summarize:** Briefly summarize the issue/question as understood. > 2. **Diagnosis/Clarification:** If further information is needed, ask for it. If context is sufficient, proceed to diagnosis. > 3. **Resolution/Next Step:** Supply a relevant answer, workaround, or request for additional action. > 4. **Reference:** Link to documentation, prior issues, or specific code sections, where applicable. > 5. **Closure:** If resolved, confirm with the reporter before closing (for maintainers). Otherwise, indicate that further investigation or input is ongoing. > > ### Etiquette & Tone > - Always thank the user for their report or question. > - Avoid assumptions; use precise language. > - Be transparent about limitations, ongoing work, or next review steps. > > ### Templates > **Initial Response Template:** > ``` > Thank you for your issue report! To help us resolve this, could you please provide: > - [ ] Detailed steps to reproduce > - [ ] Error messages/logs > - [ ] Screenshots (if applicable) > > Once we have this information, we'll investigate further. > ``` > > **Resolution Template:** > ``` > We've reviewed your issue and determined [summary of finding/solution]. Please try the following steps: > 1. [Step or command] > 2. [Link to relevant doc/PR/commit] > > Let us know if this resolves your issue! > ``` > > **Clarification Needed Template:** > ``` > Thank you for raising this. Could you clarify the following points: > - [Specific questions] > ``` > > ### Best Practices From Repository History > - Reference solutions or patterns that worked in previous closed/open issues. > - Use consistent terminology for errors, features, or parts of the codebase. > - Always update issue status and labels to reflect progress. > > --- > > **Copilot should use this guideline for all issue-related conversations and actions in this repository.** > ```` </details> *This pull request was created as a result of the following prompt from Copilot chat.* > Add a new section to the .github/copilot-instructions.md file that defines a clear guideline for Copilot agents to follow for answering, triaging, and managing GitHub Issues. The new section should include the following: > - General principles for responding to issue reports (politeness, clarity, referencing docs/code, confirming understanding) > - Labeling and classification practices (requesting clarification, handling severe/security issues) > - Structured response guidance (acknowledgement, diagnosis, resolution, referencing sources, closure) > - Etiquette and tone expectations > - Standard response templates (initial, resolution, clarification) > - Encouragement to use historical solutions from closed/open issues, consistent terminology, and status updates > > You may use this initial draft for insertion: > > ````markdown > ## GitHub Issue Handling Guideline > > This section defines specific instructions Copilot must follow when assisting with GitHub Issues in this repository. > > ### General Principles > - Always respond politely, concisely, and helpfully. Avoid jargon, unless necessary, and clarify any ambiguous points before proceeding. > - Reference relevant documentation, previous issues, or code if applicable. > - For all outgoing messages, confirm understanding and next steps. > > ### Triage and Classification > - Label issues clearly (“bug”, “enhancement”, “question” etc.), and use repository-specific labels if available. > - If further input or clarification is needed, request it explicitly (“Please provide logs/screenshots/steps to reproduce”). > - Escalate severe or security-related issues according to repository policy. > > ### Issue Response Structure > 1. **Acknowledge & Summarize:** Briefly summarize the issue/question as understood. > 2. **Diagnosis/Clarification:** If further information is needed, ask for it. If context is sufficient, proceed to diagnosis. > 3. **Resolution/Next Step:** Supply a relevant answer, workaround, or request for additional action. > 4. **Reference:** Link to documentation, prior issues, or specific code sections, where applicable. > 5. **Closure:** If resolved, confirm with the reporter before closing (for maintainers). Otherwise, indicate that further investigation or input is ongoing. > > ### Etiquette & Tone > - Always thank the user for their report or question. > - Avoid assumptions; use precise language. > - Be transparent about limitations, ongoing work, or next review steps. > > ### Templates > **Initial Response Template:** > ``` > Thank you for your issue report! To help us resolve this, could you please provide: > - [ ] Detailed steps to reproduce > - [ ] Error messages/logs > - [ ] Screenshots (if applicable) > > Once we have this information, we'll investigate further. > ``` > > **Resolution Template:** > ``` > We've reviewed your issue and determined [summary of finding/solution]. Please try the following steps: > 1. [Step or command] > 2. [Link to relevant doc/PR/commit] > > Let us know if this resolves your issue! > ``` > > **Clarification Needed Template:** > ``` > Thank you for raising this. Could you clarify the following points: > - [Specific questions] > ``` > > ### Best Practices From Repository History > - Reference solutions or patterns that worked in previous closed/open issues. > - Use consistent terminology for errors, features, or parts of the codebase. > - Always update issue status and labels to reflect progress. > > --- > > **Copilot should use this guideline for all issue-related conversations and actions in this repository.** > ```` <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](https://github.com/AzureAD/microsoft-authentication-library-for-android/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo. --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: fadidurah <[email protected]>
1 parent 1f778cb commit e6d716a

File tree

1 file changed

+64
-1
lines changed

1 file changed

+64
-1
lines changed

.github/copilot-instructions.md

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@
5757
- URL encode signature hash in AndroidManifest.xml / Must URL encode in auth_config.json
5858

5959
**ALWAYS:**
60+
- Respond politely, concisely, and helpfully to all user prompts. Avoid jargon unless necessary, and clarify any ambiguous points before proceeding
61+
- Reference relevant documentation, previous issues, or code when applicable to provide context and support
6062
- Use parameters-based APIs from [`snippets/`](../snippets/) directory
6163
- Default to multiple account mode unless specified
6264
- Enable broker integration (`broker_redirect_uri_registered: true`)
@@ -183,4 +185,65 @@ Logger.getInstance().setEnablePII(true); // Only for debugging
183185
**Copy exactly:** Gradle files from golden examples (only change applicationId/namespace)
184186
**Resource structure:** Follow golden examples for res/ directory layout
185187

186-
**Remember:** When in doubt, check snippets/ directory first, then golden examples. Never invent patterns.
188+
**Remember:** When in doubt, check snippets/ directory first, then golden examples. Never invent patterns.
189+
190+
## 6. GitHub Issue Handling Guideline
191+
192+
This section defines specific instructions Copilot must follow when assisting with GitHub Issues in this repository.
193+
194+
### General Principles
195+
- Always respond politely, concisely, and helpfully. Avoid jargon, unless necessary, and clarify any ambiguous points before proceeding.
196+
- Reference relevant documentation, previous issues, or code if applicable.
197+
- For all outgoing messages, confirm understanding and next steps.
198+
199+
### Triage and Classification
200+
- Label issues clearly ("bug", "enhancement", "question" etc.), and use repository-specific labels if available.
201+
- If further input or clarification is needed, request it explicitly ("Please provide logs/screenshots/steps to reproduce").
202+
- Escalate severe or security-related issues according to repository policy.
203+
204+
### Issue Response Structure
205+
1. **Acknowledge & Summarize:** Briefly summarize the issue/question as understood.
206+
2. **Diagnosis/Clarification:** If further information is needed, ask for it. If context is sufficient, proceed to diagnosis.
207+
3. **Resolution/Next Step:** Supply a relevant answer, workaround, or request for additional action.
208+
4. **Reference:** Link to documentation, prior issues, or specific code sections, where applicable.
209+
5. **Closure:** If resolved, confirm with the reporter before closing (for maintainers). Otherwise, indicate that further investigation or input is ongoing.
210+
211+
### Etiquette & Tone
212+
- Always thank the user for their report or question.
213+
- Avoid assumptions; use precise language.
214+
- Be transparent about limitations, ongoing work, or next review steps.
215+
216+
### Templates
217+
**Initial Response Template:**
218+
```
219+
Thank you for your issue report! To help us resolve this, could you please provide:
220+
- [ ] Detailed steps to reproduce
221+
- [ ] Error messages/logs
222+
- [ ] Screenshots (if applicable)
223+
224+
Once we have this information, we'll investigate further.
225+
```
226+
227+
**Resolution Template:**
228+
```
229+
We've reviewed your issue and determined [summary of finding/solution]. Please try the following steps:
230+
1. [Step or command]
231+
2. [Link to relevant doc/PR/commit]
232+
233+
Let us know if this resolves your issue!
234+
```
235+
236+
**Clarification Needed Template:**
237+
```
238+
Thank you for raising this. Could you clarify the following points:
239+
- [Specific questions]
240+
```
241+
242+
### Best Practices From Repository History
243+
- Reference solutions or patterns that worked in previous closed/open issues.
244+
- Use consistent terminology for errors, features, or parts of the codebase.
245+
- Always update issue status and labels to reflect progress.
246+
247+
---
248+
249+
**Copilot should use this guideline for all issue-related conversations and actions in this repository.**

0 commit comments

Comments
 (0)