feat: Enhance AI prompting capabilities with new guidelines and templates for GitHub Copilot
This commit is contained in:
43
prompts/copilot-prompt.md
Normal file
43
prompts/copilot-prompt.md
Normal file
@@ -0,0 +1,43 @@
|
||||
# Copilot Prompt Template
|
||||
|
||||
Generate a prompt to send to GitHub Copilot on the Fidelity development machine.
|
||||
|
||||
The prompt should be self-contained because Copilot will not have this workspace's memory unless the prompt includes it.
|
||||
|
||||
Requirements:
|
||||
|
||||
- Use precise senior-engineer language
|
||||
- Include only relevant context
|
||||
- Include Jira ID and approved title when available
|
||||
- Tell Copilot what to inspect before changing code
|
||||
- Make constraints explicit
|
||||
- Specify whether the desired result is:
|
||||
- investigation
|
||||
- implementation plan
|
||||
- code change
|
||||
- review
|
||||
- test strategy
|
||||
- PR/story text
|
||||
- Include expected output format
|
||||
- Include validation requirements
|
||||
- Avoid overloading the prompt with unrelated workspace history
|
||||
|
||||
Default output format:
|
||||
|
||||
```text
|
||||
Role:
|
||||
|
||||
Project context:
|
||||
|
||||
Task:
|
||||
|
||||
Relevant ticket/context:
|
||||
|
||||
Inspect:
|
||||
|
||||
Constraints:
|
||||
|
||||
Expected output:
|
||||
|
||||
Validation:
|
||||
```
|
||||
Reference in New Issue
Block a user