Home › Agent workflows › Code review prompt file (Copilot)

Code review prompt file (Copilot)

A Copilot prompt file (/review-changes) that reviews the current changes and reports issues by severity without editing.

GitHub CopilotAgent workflows

How to use

Save this as .github/prompts/review-changes.prompt.md in your repository root, commit it, and your agent will pick it up automatically. Edit the commands to match your project.

Note: Review and test before use. Provided as is, without warranty. See Terms.

.github/prompts/review-changes.prompt.mdDownload  
---
description: Review my current changes for bugs, security issues and missing tests
agent: ask
---

Review the changes in this workspace (staged and unstaged diff). Do not edit any files.

Check, in priority order:
1. **Correctness:** logic errors, unhandled errors and null cases, race conditions, wrong async usage, off-by-one.
2. **Security:** missing auth or ownership checks, injection, secrets in code/logs, unvalidated input.
3. **Data and compatibility:** migrations, breaking API/schema changes, missing transactions.
4. **Tests:** new behavior without tests; tests that don't assert anything meaningful.
5. **Maintainability:** confusing names, duplication, overly complex functions.

Skip formatting and anything a linter enforces.

## Output format
- First line: `Verdict: approve | approve with nits | changes requested`.
- Then sections **Blockers**, **Should fix**, **Nits** (omit empty ones). Each item: `file:line` — the problem, why it matters, and a concrete fix (a code snippet if short).
- End with up to three questions for the author if intent is unclear.

More: all Agent workflows rules · all GitHub Copilot rules

Related rules

Code review Copilot instructions

Copilot instructions focused on pull request review: what to flag, severity labels, and how to word comments.

GitHub CopilotAgent workflows

Code reviewer subagent (Claude Code)

A Claude Code subagent definition that reviews the current diff for bugs, security, and tests, reporting by severity.

Claude Code (CLAUDE.md)Agent workflows

/commit slash command (Claude Code)

A Claude Code /commit slash command that reviews staged changes and writes a Conventional Commits message.

Claude Code (CLAUDE.md)Agent workflows

Context management for long agent sessions CLAUDE.md

CLAUDE.md practices for keeping Claude Code effective in long sessions: lean memory, notes files, subagents, and resets.

Claude Code (CLAUDE.md)Agent workflows

Git commits & PRs AGENTS.md

AGENTS.md rules for how agents commit: Conventional Commits, atomic changes, safe git commands, and PR descriptions.

AGENTS.mdAgent workflows

Create README prompt file (Copilot)

A Copilot prompt file (/create-readme) that writes or updates a README from the actual repo contents and verified commands.

GitHub CopilotAgent workflows

Get new rules weekly

One email a week: fresh rule files, agent tips, and what's changing in Cursor, Claude Code and Copilot. Free, unsubscribe anytime.

Opens the Rulestack Newsletter on beehiiv in a new tab. Or subscribe directly on beehiiv.