About branche
branche is a skill for creating Git branches from the latest main. It accepts a supplied branch name or proposes a feat/ or fix/ name based on a work description.
Key features
- 01Update local main
- 02Create a branch with a supplied name
- 03Suggest feat/ or fix/ names
- 04Confirm the active branch
Use cases
- 01Start developing a new feature
- 02Create a branch for a bug fix
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ naiersaidane/ claude-mastery --skill brancheAfter installing, type/branchein Claude Code to confirm it loaded.
Details
From the project README/branche
Crée une nouvelle branche à partir de la dernière version de main.
Étapes
-
Bascule sur main et récupère la dernière version :
git checkout main && git pull origin main -
Si
$ARGUMENTSest fourni (ex./branche feat/algorithme-churn) :- Utilise l'argument directement comme nom de branche
- Crée et bascule sur la branche :
git checkout -b <nom-de-branche>
-
Si aucun argument n'est fourni :
- Demande à l'utilisateur le nom de la branche ou une description du travail
- Propose un nom avec un préfixe conventionnel :
feat/oufix/ - Une fois confirmé, crée la branche :
git checkout -b <nom-de-branche>
-
Confirme la création de la branche en exécutant
git branch --show-current
Conventions de nommage des branches
Utilise ces préfixes :
feat/— Nouvelle fonctionnalitéfix/— Correction de bug
Si l'utilisateur fournit un nom sans préfixe, propose d'en ajouter un.
Comments
Markdown supported