[AI] Add Copilot prompts and AI agent guidelines for developer workflows - #2942
Merged
Conversation
Add reusable VS Code Copilot prompts in .github/prompts/ for common maintainer workflows: - code-review.prompt.md: Structured PR review checklist - fix-bug.prompt.md: Bug diagnosis and fix workflow - implement-feature.prompt.md: Feature implementation guide - perf-optimization.prompt.md: Performance investigation workflow Add project-level configuration: - .github/copilot-instructions.md: Project context for Copilot - AGENTS.md: AI agent guidelines with quick-start references Update existing prompts (build, setup-dev-env) to include jre26 as the new default active profile following JDK 26 support (#2939).
Muskan Gupta (muskan124947)
requested review from
Ananya Garg (Ananya2),
Divang Sharma (divang) and
Mahendra Chavan (machavan)
May 4, 2026 05:49
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds repository-specific guidance for AI-assisted developer workflows in mssql-jdbc, including a top-level agent guide plus reusable prompt files under .github/prompts/ and Copilot context under .github/copilot-instructions.md.
Changes:
- Add
AGENTS.mdand.github/copilot-instructions.mdto capture project context, repository structure, and workflow expectations for AI agents. - Add reusable prompt files for build, PR creation, code review, bug fixing, feature work, and performance investigation.
- Document repository-specific constraints such as JRE profile support, testing expectations, and JDBC/TDS-related review criteria.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
AGENTS.md |
New top-level guide for AI agents, linking to repo docs, instruction files, and workflow prompts. |
.github/prompts/perf-optimization.prompt.md |
Adds a structured prompt for performance investigation and optimization work. |
.github/prompts/implement-feature.prompt.md |
Adds a step-by-step feature implementation workflow prompt. |
.github/prompts/fix-bug.prompt.md |
Adds a guided bug diagnosis, testing, and fix workflow prompt. |
.github/prompts/create-pr.prompt.md |
Adds a detailed prompt for preparing branches, commits, and PR descriptions. |
.github/prompts/code-review.prompt.md |
Adds a repository-specific PR review checklist and summary template. |
.github/prompts/build.prompt.md |
Adds a build workflow prompt covering Maven profiles, troubleshooting, and artifact verification. |
.github/copilot-instructions.md |
Adds project-level Copilot instructions with architecture, testing, and workflow context. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Divang Sharma (divang)
approved these changes
May 18, 2026
Ananya Garg (Ananya2)
approved these changes
May 18, 2026
Mahendra Chavan (machavan)
approved these changes
May 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Copilot Prompts & AI Agent Configuration for mssql-jdbc
This PR introduces reusable VS Code Copilot prompt files and project-level AI configuration to help maintainers and contributors work more efficiently with GitHub Copilot. Each prompt encapsulates a common workflow as a structured, repeatable guide that Copilot follows step-by-step.
Developers can invoke any prompt by typing
#prompt-namein the Copilot chat panel (e.g.,#fix-bug,#build). The#getting-startedprompt provides an interactive menu to discover all available options.Prompts
The following prompt files are added under
.github/prompts/:#setup-dev#build#run-tests#fix-bug#implement-feature#code-review#perf-optimization#create-pr#generate-doc-comments#generate-prompt#generate-skillSKILL.md)#getting-startedProject Configuration
These files provide global context so Copilot understands the project's structure, conventions, and constraints across all interactions:
.github/copilot-instructions.mdAGENTS.md