mcpField
B
branche

branche

github.com/naiersaidaneDevelopment63371 installsUpdated 14w ago
Repository

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

  1. 01Update local main
  2. 02Create a branch with a supplied name
  3. 03Suggest feat/ or fix/ names
  4. 04Confirm the active branch

Use cases

  1. 01Start developing a new feature
  2. 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 branche

After 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

  1. Bascule sur main et récupère la dernière version :

    git checkout main && git pull origin main
    
  2. Si $ARGUMENTS est 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>
  3. 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/ ou fix/
    • Une fois confirmé, crée la branche : git checkout -b <nom-de-branche>
  4. 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