Creates a standard GitHub Pull Request with a complete workflow: QA, commits, milestone/project assignment, automatic code review.
Ce skill nécessite une authentification GitHub avec des scopes spécifiques.
| Scope | Description | Usage |
|-------|-------------|-------|
| repo | Accès complet aux repos | Création PR, lecture commits, gestion branches |
| read:org | Lecture infos organisation | Récupération infos repository organisation |
| read:project | Lecture projets GitHub | Liste et lecture des projets |
| project | Écriture aux projets | Assignation PR aux projets |
| gist | Gestion gists | Partage extraits de code si nécessaire |
bash scripts/gh_auth_setup.sh
Ce script configure automatiquement TOUS les scopes requis.
gh auth refresh --hostname github.com \
-s repo \
-s read:org \
-s read:project \
-s project \
-s gist
gh auth status
Sortie attendue:
Token scopes: 'gist', 'project', 'read:org', 'repo'
⚠️ Note: read:project n'apparaît pas toujours explicitement mais est inclus avec project.
Le skill vérifie automatiquement les scopes au démarrage (Étape 1.5).
Si un scope manque :
Le titre de la PR respecte le format Conventional Commits avec emoji, conforme à git/commands/commit.md.
emoji type(scope): description
| Nom de branche | Titre généré |
|----------------|--------------|
| feat/add-login | ✨ feat: add login |
| fix/123-button-bug | 🐛 fix: [titre issue #123] |
| feat/auth/oauth-support | ✨ feat(auth): oauth support |
| refactor/api/cleanup | ♻️ refactor(api): cleanup |
| random-branch | 🔧 chore: random branch |
Le mapping type → emoji utilise le script centralisé ${CLAUDE_PLUGIN_ROOT}/scripts/commit-emoji.sh.
Voir la documentation complète dans le README principal.
Le scope est détecté si la branche suit le format type/scope/description :
feat/auth/login → ✨ feat(auth): loginfix/api/endpoint → 🐛 fix(api): endpoint/git:pr <branche-base> [milestone] [projet] [--delete] [--no-review]
ARGUMENTS="develop 1.0.0 TMA --delete" skill dev:git-pr
❌ Scopes GitHub manquants: read:project project
Solution: Relancer gh_auth_setup.sh
Vérifier authentification:
gh auth status
Si scopes corrects mais erreur persiste:
# Forcer renouvellement
gh auth logout
bash scripts/gh_auth_setup.sh
Cause: Token obsolète ou scopes révoqués
Solution:
bash scripts/gh_auth_setup.sh
Le skill utilise un système de cache pour optimiser les performances.
Fichier: .claude/cache/git-milestones.json
Fonctionnalités:
26 → 26.0.0)26.0.0 (Hotfix) → alias 26.0.0)Refresh: Automatique si milestone introuvable
Fichier: .claude/cache/git-projects.json
Fonctionnalités:
Bug Tracking → ["bug", "tracking"])Refresh: Automatique si projet introuvable
# Vider cache milestones
rm .claude/cache/git-milestones.json
# Vider cache projets
rm .claude/cache/git-projects.json
# Vider tout le cache
rm -rf .claude/cache/
git-pr/
├── SKILL.md # Définition du skill et workflow
├── README.md # Cette documentation
├── scripts/
│ ├── gh_auth_setup.sh # Configuration automatique auth
│ ├── verify_pr_template.sh
│ ├── smart_qa.sh
│ ├── analyze_changes.sh
│ ├── confirm_base_branch.py
│ ├── safe_push_pr.sh
│ ├── assign_milestone.py # Assignation milestone avec cache
│ ├── milestone_cache.py # Module cache milestones
│ ├── assign_project.py # Assignation projet avec cache
│ ├── project_cache.py # Module cache projets
│ └── cleanup_branch.sh
└── tests/
├── run_tests.sh # Lance tous les tests
├── test_milestone_cache.py # Tests unitaires milestones
└── test_project_cache.py # Tests unitaires projets
Modifier gh_auth_setup.sh:
REQUIRED_SCOPES=(
# ... scopes existants
"nouveau_scope" # Description
)
Modifier SKILL.md section "Scopes Requis"
Mettre à jour ce README
# Lancer tous les tests
bash tests/run_tests.sh
# Lancer un test spécifique
cd tests
python3 test_milestone_cache.py -v
python3 test_project_cache.py -v
Après modification:
# Tester le script
bash scripts/gh_auth_setup.sh
# Vérifier
gh auth status
# Tester assignation projet
python3 scripts/assign_project.py <pr-number> --project <nom>
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer