| name | git-pr |
| description | Automatise la création de Pull Requests GitHub avec workflow complet : QA, commits, assignation milestone/projet, code review automatique. |
| allowed-tools | Bash, Read, Write, TodoWrite, AskUserQuestion |
| model | claude-sonnet-4-5-20250929 |
Git PR Skill
Usage
/git:pr [branche-base] [milestone] [projet] [--delete] [--no-review]
Configuration
SCRIPTS_DIR="${CLAUDE_PLUGIN_ROOT}/skills/git-pr/scripts"
PR_TEMPLATE_PATH=".github/pull_request_template.md"
Workflow
- Vérifier scopes GitHub (
scripts/check_scopes.sh) - Vérifier template PR (
scripts/verify_pr_template.sh) - Lancer QA intelligente (
scripts/smart_qa.sh) - Analyser changements git (
scripts/analyze_changes.sh) - Confirmer branche de base (ou
AskUserQuestion) - Générer description PR intelligente
- Push et créer PR avec titre Conventional Commits (
scripts/create_pr.sh) - Assigner milestone (
scripts/assign_milestone.py) - Assigner projet GitHub (
scripts/assign_project.py) - Code review automatique (si plugin review installé)
- Nettoyage branche (
scripts/cleanup_branch.sh)
Code Review
Si plugin review installé, lance 4 agents en parallèle :
code-reviewer- Conformité CLAUDE.mdsilent-failure-hunter- Erreurs silencieusestest-analyzer- Couverture testsgit-history-reviewer- Contexte historique
Agrège résultats (score >= 80) dans commentaire PR.
Options
| Flag | Description |
|---|---|
--delete |
Supprimer branche après création PR |
--no-review |
Désactiver code review automatique |
References
- Template review - Format commentaire et agents
- Todos template - TodoWrite et génération description
Error Handling
- Template absent → ARRÊT
- QA échouée → ARRÊT
- Milestone/projet non trouvé → WARNING (non bloquant)