Skip to content

Commit 4912cd0

Browse files
committed
Add Copilot agent prompt improvement workflow and docs
Added a GitHub Actions workflow for scheduled prompt improvements using the Copilot coding agent, a tailored issue template, and a comprehensive chatmode for prompt engineering in VS Code. Updated README with clear instructions for using the new chatmode and delegating improvements to the Copilot agent. Added TODO.md with setup, usage, and validation steps. Created user prompt for configuring the chatmode and ensured all new files are organized for maintainability and CI/CD best practices.
1 parent 5031744 commit 4912cd0

6 files changed

Lines changed: 789 additions & 6 deletions

File tree

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: "Prompt Improvement: Copilot Agent"
2+
description: "Assign the Copilot coding agent to improve prompts with incremental, validated changes."
3+
title: "[Prompt Improvement] <short title>"
4+
labels: ["copilot-agent", "prompt-improvement"]
5+
assignees: ["github-copilot-agent"]
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Use this template to delegate iterative prompt improvements to GitHub Copilot coding agent.
11+
The agent will create a new branch, open a PR, and iterate based on your PR review comments.
12+
- type: input
13+
id: scope
14+
attributes:
15+
label: Target files / scope
16+
description: "Paths or globs of prompts to improve (e.g., user_prompts/**, prompt_engineering_assistant.system.prompt.md)."
17+
placeholder: "user_prompts/**"
18+
validations:
19+
required: true
20+
- type: dropdown
21+
id: improvement_type
22+
attributes:
23+
label: IMPROVEMENT_TYPE
24+
description: "Defines the scope of improvements."
25+
options:
26+
- incremental
27+
- comprehensive
28+
- targeted
29+
default: 0
30+
validations:
31+
required: true
32+
- type: input
33+
id: change_threshold
34+
attributes:
35+
label: CHANGE_THRESHOLD
36+
description: "Percentage threshold for total changes (default 15%)."
37+
placeholder: "15%"
38+
validations:
39+
required: false
40+
- type: dropdown
41+
id: optimization_focus
42+
attributes:
43+
label: OPTIMIZATION_FOCUS
44+
description: "Primary optimization goal"
45+
options:
46+
- all
47+
- clarity
48+
- redundancy
49+
- modularity
50+
default: 0
51+
validations:
52+
required: true
53+
- type: textarea
54+
id: goals
55+
attributes:
56+
label: Goals and Success Criteria
57+
description: "Define the specific goals and measurable success criteria."
58+
placeholder: |
59+
Goals:
60+
- Reduce redundancy without altering behavior
61+
- Improve clarity and remove ambiguity
62+
Success Criteria:
63+
- Maintain all capabilities and guardrails
64+
- ≤ 15% diff total change
65+
validations:
66+
required: true
67+
- type: textarea
68+
id: instructions
69+
attributes:
70+
label: Instructions for Copilot
71+
description: |
72+
High-level guidance for the agent. It will use the repository's prompt system and the custom chat mode content in .github/chatmodes/prompt_engineering_assistant.chatmode.md.
73+
placeholder: |
74+
- Follow the Prompt Engineering Assistant methodology: Research → Test → Improve → Confirm.
75+
- Preserve all existing functionality and guardrails.
76+
- Provide clear diffs and concise commit messages.
77+
- Add/update minimal tests/docs when public behavior changes.
78+
- Keep changes under the CHANGE_THRESHOLD; prefer incremental PRs.
79+
validations:
80+
required: true
81+
- type: textarea
82+
id: notes
83+
attributes:
84+
label: Notes / Context (optional)
85+
description: "Links, examples, or constraints."
86+
placeholder: |
87+
- Reference prompts: user_prompts/*
88+
- Keep tone and structure aligned to system prompt.
89+
- type: markdown
90+
attributes:
91+
value: |
92+
When ready, submit this issue and assign it to Copilot (Assignee: github-copilot-agent). You can also paste the hashtag below in a VS Code chat to hand off:
93+
94+
#github-pull-request_copilot-coding-agent

0 commit comments

Comments
 (0)