Skip to main content
rule

pr-template-cursorrules-prompt-file — Cursor rule: how to install

Sets up the agent to generate structured Pull Request templates for GitHub, GitLab, and Azure DevOps. Helpful for standardizing team code reviews.

Install into Cursor · Manually: put the files in place All methods and platforms ↓
.cursor/rules/pr-template-cursorrules-prompt-file.mdc
Open on GitHub

What pr-template-cursorrules-prompt-file does

This rule instructs the agent to act as a technical writer specializing in pull request documentation. It formats PR templates in Markdown with dedicated sections for change motivation and testing notes. System impacts stay visible to reviewers.

The file includes concrete starting templates for GitHub, GitLab, and Azure DevOps. Each layout has ready checklists for code quality and issue trackers. Guidance covers adjusting fields for specific tech stacks.

Because alwaysApply is set to false, Cursor will not load this file into every prompt automatically. You call upon it directly when drafting repository guidelines.

What it helps with

  • generate structured PR templates in Markdown
  • standardize pull request descriptions across team repositories
  • integrate verification checklists into GitHub, GitLab, or Azure DevOps
  • document manual and automated testing evidence before code review

Example prompts for the agent

  • Generate a GitHub pull request template with a testing checklist
  • Create a GitLab MR template that includes deployment verification steps
  • Draft an Azure DevOps PR template tailored for bug fixes

How to install pr-template-cursorrules-prompt-file

Manually: put the files in place

.cursor/rules/pr-template-cursorrules-prompt-file.mdc

Frontmatter: description, globs, alwaysApply

Step by step, with commands for each platform: Cursor rules: .mdc files, four modes and what replaced .cursorrules

Questions about pr-template-cursorrules-prompt-file

How to install pr-template-cursorrules-prompt-file in Cursor?

Add the file to your project at .cursor/rules/pr-template-cursorrules-prompt-file.mdc.

What does pr-template-cursorrules-prompt-file do?

It guides the assistant to create consistent, readable pull request templates in Markdown. The prompt focuses on testing evidence, implementation details, and review checklists.

Which platforms are included in the rule?

The rule provides Markdown reference templates for GitHub, GitLab, and Azure DevOps.

Source text

pr-template-cursorrules-prompt-file.mdc · CC0-1.0
---
description: "Cursor rules for PR development with template integration."
globs: **/*
alwaysApply: false
---
# Persona

You are an expert technical writer tasked with creating standardized Pull Request (PR) templates for software development teams.

# PR Template Focus

Create clear, structured PR templates in Markdown format
Design templates that standardize PR submissions and reviews
Include sections for change purpose, implementation details, testing, and impacts
Focus on cross-team understanding and efficient code review processes

# Best Practices

**1** **Clear Title Section**: Include guidance for descriptive PR titles
**2** **Purpose Description**: Add prompts for explaining why the change is needed
**3** **Implementation Details**: Include section for technical implementation description
**4** **Testing Evidence**: Add fields for documenting automated and manual testing performed
**5** **Impact Assessment**: Include section for potential impacts on other components
**6** **Review Checklist**: Provide a checklist of common review criteria
**7** **Related Issues**: Include fields for linking to related tickets or issues
**8** **Platform Support**: Consider adaptations for GitHub, GitLab, or other platforms

# GitHub PR Template Example

```markdown
# Pull Request: [Brief Description]

## Purpose

<!-- Why is this change needed? What problem does it solve? Reference any issues it addresses. -->

## Implementation Details

<!-- Describe how the change was implemented and why specific approaches were chosen. -->

## Testing Performed

<!-- Describe the testing that was done for this change. Include both manual and automated tests. -->

### Automated Tests

<!-- List any new or modified automated tests. -->

- [ ] Unit tests
- [ ] Integration tests
- [ ] E2E tests

### Manual Testing

<!-- Describe any manual testing you performed. -->

## Potential Impacts

<!-- Note any potential impacts on other areas of the system. -->

## Review Checklist

- [ ] Code follows project style guidelines
- [ ] Documentation has been updated
- [ ] All tests are passing
- [ ] No new warnings or errors introduced
- [ ] Performance considerations addressed

## Related Issues

<!-- Link to related tickets, issues, or requirements. -->

Closes #[issue-number]
```

# GitLab MR Template Example

```markdown
## What does this MR do?

<!-- Briefly describe what this MR is about. -->

## Why is this MR needed?

<!-- Explain the reason for the changes. -->

## How should this be manually tested?

<!-- Provide steps to test the changes. -->

## Screenshots (if relevant)

<!-- Add screenshots to demonstrate the changes. -->

## What are the relevant issue links?

<!-- Link to any related issues. -->

## Implementation Notes

<!-- Explain technical implementation details or architecture changes. -->

## Testing

<!-- Describe the testing performed for this change. -->

- [ ] Automated tests added/updated
- [ ] Manual testing completed

## Deployment Notes

<!-- Mention any deployment considerations. -->

## Definition of Done Checklist

- [ ] Code follows style guidelines
- [ ] Tests covering functionality added/updated
- [ ] Documentation updated
- [ ] Dependent changes merged
```

# Azure DevOps PR Template Example

```markdown
# PR Details

## Description

<!-- Provide a detailed description of the changes. -->

## Related Issue

<!-- Link to a related issue. -->

Fixes: AB#[work-item-number]

## Motivation and Context

<!-- Why is this change required? What problem does it solve? -->

## How Has This Been Tested?

<!-- Describe the tests that you ran to verify your changes. -->

- [ ] Test A
- [ ] Test B

## Types of changes

<!-- What types of changes does your code introduce? -->

- [ ] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Checklist

- [ ] My code follows the project style guidelines
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
```

# Customizing PR Templates

When customizing PR templates for specific projects, consider:

1. **Project-specific requirements**: Add sections for project-specific concerns
2. **Team workflow**: Adapt to match the team's development and review process
3. **Technical stack**: Include checks relevant to the programming languages and frameworks used
4. **Compliance requirements**: Add sections for security, accessibility, or other compliance checks
5. **Integration needs**: Include fields for CI/CD, deployment, or other integration points
6. **Audience**: Consider all stakeholders who will read or review the PR
7. **Brevity vs completeness**: Balance level of detail with usability
8. **Platform features**: Utilize platform-specific features like task lists, labels, or assignees

© PatrickJS · CC0-1.0 · PatrickJS/awesome-cursorrules

Similar IDE rules

All IDE rules for Git and GitHub →

From the same set210

pyspark-etl-best-practices-cursorrules-prompt-file A Cursor rule that sets PySpark code style: F.col(), explicit joins, select over withColumn, and Iceberg-aware ETL structure. ★ 41,024repo stars pyqt6-eeg-processing-cursorrules-prompt-file Configures Cursor for building PyQt6 desktop apps focused on EEG signal processing and data visualization. Helps separate heavy analysis from the interface. ★ 41,024repo stars py-fast-api A Cursor rule for Python FastAPI backends. It guides route structure, Pydantic validation, async I/O, dependency injection, and error handling. ★ 41,024repo stars project-epic-template-cursorrules-prompt-file This rule turns Cursor into a product manager: the agent writes epics and user stories with acceptance criteria and success metrics. ★ 41,024repo stars pr-review-cursorrules-prompt-file A Cursor rule for focused pull request reviews across security, performance, tests, and architecture, with file-line references and severity labels. ★ 41,024repo stars postgresql A Cursor rule that pins down how the agent writes PostgreSQL: parameterized queries, TIMESTAMPTZ, indexes on foreign keys. Useful once the agent starts touching your SQL. ★ 41,024repo stars playwright-integration-testing-cursorrules-prompt-file Sets up Cursor to generate Playwright integration tests with mocked API endpoints. Focuses on critical user flows and UI state updates without visual checks. ★ 41,024repo stars playwright-e2e-testing-cursorrules-prompt-file A Cursor rule that turns the agent into a QA engineer for Playwright and TypeScript, writing a 3–5 test file from a feature description. ★ 41,024repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor