Pr Template
Cursor-Regel für ein einheitliches PR-Beschreibungsformat mit festen Abschnitten.
Cursor-Regel für ein einheitliches PR-Beschreibungsformat mit festen Abschnitten.
Original-Beschreibung der Autoren: Cursor rules for PR development with template integration.
Die Regel
---
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
## 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
# 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:
- Project-specific requirements: Add sections for project-specific concerns
- Team workflow: Adapt to match the team’s development and review process
- Technical stack: Include checks relevant to the programming languages and frameworks used
- Compliance requirements: Add sections for security, accessibility, or other compliance checks
- Integration needs: Include fields for CI/CD, deployment, or other integration points
- Audience: Consider all stakeholders who will read or review the PR
- Brevity vs completeness: Balance level of detail with usability
- Platform features: Utilize platform-specific features like task lists, labels, or assignees
## So nutzt du sie
Die Regel kopieren (Button oben) oder als Datei herunterladen und im Projekt unter `.cursor/rules/` ablegen — Cursor lädt sie beim nächsten Start automatisch. Ältere Cursor-Versionen lesen alternativ eine einzelne `.cursorrules`-Datei im Projektstamm; dort einfach den Regel-Text ohne den Kopfblock zwischen den `---`-Zeilen einfügen.
Der Regel-Text ist englisch — Cursor versteht ihn unabhängig von der Sprache, in der Sie mit dem Editor chatten.
## Im Detail
Diese Regel gibt Cursor eine feste Struktur für Pull-Request-Beschreibungen vor, etwa Abschnitte für Zusammenfassung, Motivation, Testplan und Breaking Changes. Damit erzeugt der KI-Editor beim Anlegen eines PRs automatisch ein einheitliches Format, statt jedes Mal neu zu improvisieren. Praktisch für Teams, die Wert auf durchsuchbare, vergleichbare PR-Historie legen und nicht bei jedem PR manuell an die Formatvorgaben erinnern wollen. Der Nutzen hängt davon ab, wie konsequent das Team die Vorlage im echten Repo bereits pflegt.
## Praxis-Tipp
Regel mit dem tatsächlichen PR-Template des Repos abgleichen und Cursor per Prompt „Erstelle die PR-Beschreibung nach unserem Template“ nutzen lassen.
## Lizenz & Quelle
- **Lizenz:** CC0 1.0
- **Quelle:** [PatrickJS/awesome-cursorrules (GitHub)](https://github.com/PatrickJS/awesome-cursorrules)
Inhalt ansehen (pr-template.mdc)
Lade …
Erfahrungen & Kommentare.
Funktioniert der Regel bei Ihnen? Tipps, Stolperfallen, Varianten — teilen Sie es mit der Community.
Lade Kommentare …
Passt dazu.
AI Agent Specialist
Cursor-Regel, die den KI-Editor auf diszipliniertes, spezialisiertes Agenten-Verhalten trimmt.
Alpha Skills Quant Factor Research
Cursor-Regel für quantitative Faktor-Recherche im Trading/Finance-Bereich — leitet die KI zu methodisch sauberer Analyse an.
Android Jetpack Compose
Cursor-Regel für Android-Entwicklung mit Jetpack Compose — sorgt für idiomatischen, deklarativen Kotlin-UI-Code.
