Skip to content

New PR review prompt#575

Open
AlexJSully wants to merge 1 commit intomainfrom
alexjsully-260214-pr-review-prompt
Open

New PR review prompt#575
AlexJSully wants to merge 1 commit intomainfrom
alexjsully-260214-pr-review-prompt

Conversation

@AlexJSully
Copy link
Owner

No description provided.

@AlexJSully AlexJSully requested a review from Copilot February 15, 2026 04:03
@AlexJSully AlexJSully self-assigned this Feb 15, 2026
@vercel
Copy link

vercel bot commented Feb 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
portfolio Ready Ready Preview, Comment Feb 15, 2026 4:04am

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new GitHub Copilot prompt template for automated pull request reviews. The prompt provides comprehensive instructions for an AI agent to perform thorough code reviews across 13 categories including correctness, security, privacy, error handling, code quality, architecture, testing, performance, documentation, standards, accessibility, concurrency, and regulatory compliance.

Changes:

  • Adds audit-pr.prompt.md prompt file with structured PR review guidelines
  • Includes YAML frontmatter defining prompt metadata (title, scope, targets, labels)
  • Provides 3-step review process: PR alignment check, categorized code review, and overall summary

@@ -0,0 +1,282 @@
---
Copy link

Copilot AI Feb 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The readme.md file in the .github/prompts directory documents the existing prompts (audit-docs.prompt.md and audit-quality.prompt.md) but does not include documentation for this new audit-pr.prompt.md file. The readme should be updated to include a section describing this new PR review prompt, following the same format as the existing prompt descriptions (with Purpose, Key Features, When to Use, etc.).

Copilot uses AI. Check for mistakes.
- `#getJiraIssueRemoteIssueLinks`
- `#getJiraIssueTypeMetaWithFields`
- `#getJiraProjectIssueTypesMetadata`
- `#searchJiraIssuesUsingJql`
Copy link

Copilot AI Feb 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The prompt references several Jira-related tools (#getJiraIssue, #getJiraIssueRemoteIssueLinks, etc.) and GitHub issue tools (#issue_fetch, #issue_read) without verification that these tools are available in the GitHub Copilot environment. If these tools don't exist, the prompt will confuse users or fail to execute correctly. Consider adding a note that these tools are optional/conditional, or verify their availability in the target environment.

Suggested change
- `#searchJiraIssuesUsingJql`
- `#searchJiraIssuesUsingJql`
- **Note:** These tools may not be available in all GitHub Copilot environments. If you cannot access them, do not attempt to call them; instead, infer requirements from the PR title/description, visible ticket links, and any in-PR context.

Copilot uses AI. Check for mistakes.
Comment on lines +187 to +188


Copy link

Copilot AI Feb 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are two empty lines between Category 9 and Category 10, which is inconsistent with the single empty line separator used between all other categories in this document. For consistency, reduce this to a single empty line.

Suggested change

Copilot uses AI. Check for mistakes.
- Does the change introduce any synchronous blocking operations in an async context?
- Are there any memory leaks (event listeners not cleaned up, subscriptions not unsubscribed, file handles not closed)?

- Do the changes in the PR cause existing documentation to become inaccurate or misleading (drift)? If so, flag the specific docs that need updating.
Copy link

Copilot AI Feb 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line appears to be a misplaced fragment that belongs to Category 9 (Documentation & Comments). It's currently placed between Category 8 (Performance & Efficiency) and Category 9, creating confusion about which category it belongs to. This line should be moved inside Category 9, and the duplicate on line 185 should be removed.

Copilot uses AI. Check for mistakes.
- Are complex or non-obvious sections of code explained with a "why" comment, not just "what"?
- Is the PR description or linked ticket updated to reflect the implementation approach?
- Are any README or external docs that describe changed functionality updated?
- Does the changes in the PR cause existing documentation to become inaccurate or misleading (drift)? If so, flag the specific docs that need updating.
Copy link

Copilot AI Feb 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is duplicated from line 176. The documentation drift check appears twice in Category 9, which is redundant. Remove this duplicate line.

Suggested change
- Does the changes in the PR cause existing documentation to become inaccurate or misleading (drift)? If so, flag the specific docs that need updating.

Copilot uses AI. Check for mistakes.
- **Protobuf:** Protobuf Style Guide, proto3 best practices
- **R:** Google R Style Guide
- **HTML & CSS/SCSS:** W3C standards
- **SQL:** Consistent naming, query optimisation, proper indexing
Copy link

Copilot AI Feb 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The word "optimisation" uses British spelling, which is inconsistent with American spelling used elsewhere in the repository. The codebase uses American English spelling conventions (e.g., "behavior" not "behaviour"). Change "optimisation" to "optimization" for consistency.

Suggested change
- **SQL:** Consistent naming, query optimisation, proper indexing
- **SQL:** Consistent naming, query optimization, proper indexing

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant