Add comprehensive SQL and PostgreSQL prompt ecosystem for code review and optimization#115
Merged
codemillmatt merged 13 commits intoJul 25, 2025
Merged
Conversation
…wesome-copilot into ms-sql-dba.chatmode
- Add sql-code-review.prompt.md: Universal SQL code review for security, maintainability, and quality standards - Add sql-optimization.prompt.md: Universal SQL performance optimization for query tuning and indexing - Add postgresql-code-review.prompt.md: PostgreSQL-specific code review focusing on PG best practices and anti-patterns - Add postgresql-optimization.prompt.md: PostgreSQL-specific development assistant for unique PG features (JSONB, arrays, custom types) This creates a complete 4-prompt ecosystem with zero overlap: - Universal SQL (code quality + performance) for cross-database compatibility - PostgreSQL-specific (code quality + performance) for PG-exclusive features Each prompt serves distinct, isolated purposes while complementing each other for comprehensive SQL development support.
- Enhanced all 4 prompt descriptions with detailed capability coverage - Added tested_with: 'GitHub Copilot Chat (GPT-4o)' to all prompts - Specified database coverage (MySQL, PostgreSQL, SQL Server, Oracle) - Detailed feature coverage for each prompt's unique capabilities - Updated README.md with enhanced descriptions Addresses PR review feedback for comprehensive descriptions and model testing specification.
…d testing validation - Added detailed descriptions for all four prompts explaining their specific purposes - Enhanced technical depth with comprehensive coverage areas - Added testing validation with GitHub Copilot Chat (GPT-4o) - Validated July 20, 2025 - Improved frontmatter documentation for better discoverability - Ensured zero functional overlap between Universal SQL and PostgreSQL-specific prompts - Completed 4-prompt ecosystem: Code Quality Performance for both Universal SQL and PostgreSQL
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a comprehensive 4-prompt ecosystem for SQL and PostgreSQL development, providing specialized tools for code review and optimization across both universal SQL standards and PostgreSQL-specific features. The prompts offer complete coverage spanning security analysis, performance optimization, maintainability assessment, and PostgreSQL's advanced capabilities like JSONB operations, array types, and extensions.
Key changes include:
- Universal SQL prompts covering security, performance, and code quality standards applicable across all major SQL databases
- PostgreSQL-specific prompts focusing on unique features like JSONB, arrays, custom types, and advanced PostgreSQL capabilities
- Clear separation between universal and PostgreSQL-specific guidance to avoid functional overlap
- Comprehensive examples, anti-patterns, and optimization strategies for both domains
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
prompts/sql-code-review.prompt.md |
Universal SQL code review assistant for security, maintainability, and quality analysis across all SQL databases |
prompts/sql-optimization.prompt.md |
Universal SQL performance optimization assistant for query tuning and indexing strategies |
prompts/postgresql-code-review.prompt.md |
PostgreSQL-specific code review focusing on PostgreSQL best practices and unique features |
prompts/postgresql-optimization.prompt.md |
PostgreSQL-specific development assistant covering advanced PostgreSQL capabilities |
README.md |
Updated with entries for all four new SQL/PostgreSQL prompt files |
Contributor
Author
|
Files already follow the requirement ensure that the values in the front matter are wrapped in single quotes |
codemillmatt
approved these changes
Jul 25, 2025
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.
Pull Request Checklist
node update-readme.jsand verified thatREADME.mdis up to date.Description
This PR adds a comprehensive 4-prompt ecosystem for SQL and PostgreSQL development:
The prompts provide:
Suitable for use with GitHub Copilot Chat.
Intended for developers, DBAs, and teams working with SQL databases seeking efficient workflows, security validation, and performance optimization guidance.
Follows all naming and formatting conventions outlined in the repository's CONTRIBUTING.md.
Model tested: Tested with GitHub Copilot Chat (GPT-4o) - Validated July 20, 2025
Type of Contribution
Additional Notes
Files are clearly named to indicate SQL and PostgreSQL support
Zero overlap between Universal SQL and PostgreSQL-specific prompts
Comprehensive testing validation included
Covers complete development lifecycle from code review to performance optimization