with one click
branch
Create formatted branches
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Create formatted branches
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Generate deployment summary
Create conventional commits
Contextual linting
Create pull requests
Pre-commit security validation
| description | Create formatted branches |
| name | branch |
| version | 1.0.0 |
Crée une branche formatée selon les conventions du projet.
/branch
Format de branche : [nom]/[type]/[sujet]
feat, refactor, fix, chore, teststaging(Voir AGENTS.md pour détails)
# Vérifier la branche actuelle
git branch --show-current
# Vérifier s'il y a des changements non commités
git status --porcelain
Si changements non commités :
⚠️ WARNING: Changements non commités détectés
→ Fichiers modifiés : 3
→ Action suggérée : Commiter ou stasher avant de créer une branche
→ Voulez-vous continuer quand même ? (y/n)
Si branche actuelle != staging :
⚠️ WARNING: Vous n'êtes pas sur staging
→ Branche actuelle : main
→ AGENTS.md: Les branches partent de staging
→ Voulez-vous basculer sur staging ? (y/n)
staging (si nécessaire)# Passer sur staging
git checkout staging
# Mettre à jour staging (optionnel)
git pull origin staging
Demander confirmation pour le pull :
→ Voulez-vous mettre à jour staging depuis origin ? (y/n)
Prompt interactif pour collecter :
→ Nom du développeur (ex: valentin) : _____
Validation :
→ Type de branche :
1. feat - Nouvelle fonctionnalité
2. refactor - Refactorisation de code
3. fix - Correction de bug
4. chore - Tâche de maintenance
5. test - Ajout/modification de tests
Choix (1-5) : _____
Map vers :
1 → feat2 → refactor3 → fix4 → chore5 → testValidation : Type doit être dans la liste autorisée.
→ Sujet de la branche (ex: add-client-tracking) : _____
Validation :
-)Auto-conversion :
Add Client Tracking → add-client-trackingFix: Date Picker Bug → fix-date-picker-bugFormat final : [nom]/[type]/[sujet]
Exemple :
Nom : valentin
Type : feat
Sujet : add-client-tracking
→ Branche : valentin/feat/add-client-tracking
# Vérifier si la branche existe déjà (locale)
git branch --list "valentin/feat/add-client-tracking"
# Vérifier si la branche existe déjà (remote)
git ls-remote --heads origin "valentin/feat/add-client-tracking"
Si branche existe :
❌ ERREUR: Branche déjà existante
→ Branche : valentin/feat/add-client-tracking
→ Local : oui
→ Remote : oui
→ Actions suggérées :
1. Utiliser un autre nom/sujet
2. Basculer sur la branche existante : git checkout valentin/feat/add-client-tracking
3. Supprimer la branche existante (si obsolète) : git branch -D valentin/feat/add-client-tracking
STOP : Ne pas créer la branche.
# Créer et basculer sur la nouvelle branche
git checkout -b valentin/feat/add-client-tracking
# Afficher la branche actuelle
git branch --show-current
# Afficher le dernier commit (hérité de staging)
git log -1 --oneline
Message de succès :
✅ Branche créée avec succès
→ Branche : valentin/feat/add-client-tracking
→ Parent : staging
→ Dernier commit : 9d1ba65 - chore(api): add Claude workflows
→ Prochaines étapes suggérées :
1. Faire vos modifications
2. Commiter : /commit
3. Créer une PR : /pr
→ Nom : valentin
→ Type : feat
→ Sujet : add-event-client-id
✅ Branche créée : valentin/feat/add-event-client-id
→ Nom : marie
→ Type : fix
→ Sujet : date-picker-validation
✅ Branche créée : marie/fix/date-picker-validation
→ Nom : thomas
→ Type : refactor
→ Sujet : simplify-export-job
✅ Branche créée : thomas/refactor/simplify-export-job
→ Nom : valentin
→ Type : chore
→ Sujet : update-dependencies
✅ Branche créée : valentin/chore/update-dependencies
→ Nom : sophie
→ Type : test
→ Sujet : add-e2e-filters
✅ Branche créée : sophie/test/add-e2e-filters
Entrée utilisateur : Valéntín Müller
Auto-conversion :
Valentin Mullervalentin mullervalentin-mullerRésultat : valentin-muller/feat/...
Entrée utilisateur : Add: Client Tracking (V2)
Auto-conversion :
Add Client Tracking V2add client tracking v2add-client-tracking-v2Résultat : .../add-client-tracking-v2
Entrée utilisateur (> 50 chars) : add-comprehensive-client-tracking-with-analytics-support
Warning :
⚠️ WARNING: Sujet trop long (56 caractères, max 50)
→ Sujet : add-comprehensive-client-tracking-with-analytics-support
→ Suggestion : add-client-tracking-with-analytics
→ Utiliser la suggestion ? (y/n)
Pour automatisation, supporter les arguments :
/branch --name valentin --type feat --subject add-client-tracking
Skip les prompts et créer directement la branche.
Permissions requises dans .claude/settings.local.json :
Bash(git branch:*)Bash(git checkout:*)Bash(git status:*)Bash(git log:*)Read(*)Ce skill peut être utilisé :
/branchstaging (convention du projet)