Aller au contenu
Skillpedia
Déploiement et cloud (DevOps)48k · #5485

pr-merge-champion

Ce qu’il fait

Ce guide vous aide à préparer vos modifications de code (appelées « pull requests ») pour qu'elles soient approuvées et intégrées au projet plus rapidement. Il vous aide à vous assurer que votre code est propre, relu par vous-même et accompagné d'une bonne description.

Quand l’utiliser

  • ✓Lorsque vous avez fini de modifier le code et que vous êtes prêt à le soumettre.
  • ✓Lorsque vous voulez vérifier que votre code est bien rangé avant qu'une autre personne le relise.
  • ✓Lorsque vous souhaitez que vos modifications soient approuvées et intégrées au projet le plus vite possible.

Lien du skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/pr-merge-champion/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/pr-merge-champion/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Comment puis-je faire en sorte que ma pull request soit approuvée rapidement ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Le guide vous conseille de nettoyer votre code, de vérifier les erreurs de base et de rédiger une description claire expliquant ce que vous avez modifié et pourquoi. Il vous demande aussi de relire votre propre code avant de le soumettre.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

PR Merge Champion

Overview

A systematic playbook for preparing, reviewing, and documenting pull requests to ensure they are high-quality, free of common oversights, and optimized for instant maintainer approval and merging.

When to Use This Skill

  • Use when preparing to open a new pull request on GitHub or any Git hosting platform.
  • Use when self-auditing a feature or bug-fix branch for code cleanliness and consistency.
  • Use when trying to minimize review cycles and speed up the integration of your changes.

How It Works

Step 1: Pre-Flight Clean Up & Rebase

Before presenting your code to reviewers, clean up any workspace noise and ensure your branch is up to date:

  1. Rebase your feature branch on top of the latest target branch (e.g., main or master) to resolve conflicts early.
  2. Clean up untracked, temp, or swap files from your repository.
  3. Run local linters, formatters, and compilers to ensure no stylistic or syntax errors exist.

Step 2: Critical Self-Review

Review your own diff line-by-line as if you were the reviewer. Look out for:

  1. Leftover debugging statements (e.g., console.log, print, breakpoints, or custom debug flags).
  2. Unnecessary changes, white-space only diffs, or commented-out code blocks.
  3. Incomplete TODO comments that should be resolved or turned into tracked issues.
  4. Correctness of error handling and edge cases.

Step 3: Local Verification & Test Suite

Verify that all changes work as expected:

  1. Run the project's automated test suite locally to verify no regressions are introduced.
  2. Check test coverage for any new code blocks you added.
  3. Manually test the critical paths and edge cases of your feature or bug fix.

Step 4: Crafting the Pull Request Description

Write a high-signal, structured PR description. A great description tells the story of the changes:

  1. Summary: A concise explanation of the changes.
  2. Context / Why: Why this change is necessary and what problem it solves.
  3. Verification: Explicit details on how you tested it (test commands, screenshots, or step-by-step reproduction).
  4. Checklist: Conform to the repository's contributing guidelines and checklist requirements.

Examples

Example 1: Creating a Clean PR Description

# Pull Request: Implement Rate Limiting on Authentication Endpoint

## Summary
Introduces an IP-based rate limiter on the `/api/v1/auth/login` endpoint using Redis to prevent brute-force attacks.

## Why
We identified a high volume of login attempts targeting single accounts. This rate limiting window slows down attackers while keeping the system responsive for genuine users.

## Verification
- Ran unit tests: `npm run test tests/auth.test.js` (all green)
- Manually verified using Postman: sending 15 requests in under 60 seconds returns `429 Too Many Requests`.

## Checklist
- [x] Code follows the style guide
- [x] Unit tests added/updated
- [x] Documentation updated

Example 2: Self-Review Clean Up Commands

Before committing, run these commands to inspect the diff for accidental additions:

# Check the names of files changed to ensure no unwanted files are staged
git status --porcelain

# Review the actual diff for any leftover print statements or debuggers
git diff | grep -E "(console\.log|debugger|print\(|var_dump|binding\.pry)"

Best Practices

  • ✅ Keep PRs Small and Focused: A PR with fewer than 200 lines of changes gets reviewed and merged significantly faster than a large one.
  • ✅ Perform a Self-Review first: Finding your own bugs and formatting issues first builds trust with the maintainers.
  • ✅ Respect Repository Guidelines: Check the project's CONTRIBUTING.md and pull request templates, and adhere to them strictly.
  • ❌ Do Not Bundle Unrelated Changes: Avoid sneaking refactoring or unrelated bug fixes into a feature PR. Create separate PRs instead.
  • ❌ Do Not Ignore CI Failures: Always fix failing tests, linters, or security scans on your branch before requesting a review.

Limitations

  • This skill does not replace project-specific CI/CD validation, automated testing, or domain-expert reviews.
  • It assumes a standard Git and GitHub-like environment, though the core principles apply to GitLab, Bitbucket, and other platforms.

Common Pitfalls

  • Problem: A PR is left open for a long time due to minor formatting or style comments.

…

Questions fréquentes

Qu'est-ce qu'une « pull request » ?

C'est une demande visant à ajouter vos modifications de code à un projet plus large. C'est un peu comme proposer une contribution à un livre.

Pourquoi nettoyer le code est-il important ?

Un code propre est plus facile à comprendre et à relire, ce qui aide à prévenir les erreurs et accélère l'approbation.

Que signifie une « auto-relecture » ?

Cela signifie que vous vérifiez vous-même votre code pour repérer les erreurs, les commentaires inutiles ou les parties qui ne fonctionnent pas, avant de demander à quelqu'un d'autre de le relire.

Détails

Description originale de l’auteur

Optimize pull requests for quick approval and merging by ensuring clean diffs, comprehensive self-reviews, and structured documentation.

repo: sickn33/agentic-awesome-skills

Popularité

Étoiles GitHub
48k
Position au classement
#5485
Licence
MIT
Mis à jour
15/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires