Synthèse automatique
Crée et checkout une nouvelle branche Git avec un nom conventionnel basé sur la description de la tâche.
Points forts
- Génère automatiquement des noms de branche selon des conventions claires (ex: feat/, fix/).
- Vérifie l'état du dépôt pour éviter les conflits avec des modifications non commitées.
- Guide l'utilisateur dans le choix du type de branche approprié.
Limites
- Nécessite une description de tâche explicite ou une interaction pour clarifier.
- Ne gère pas les cas de branche existante ou les conflits de fusion.
- Dépend de Git installé dans l'environnement.
Quand vous devez démarrer une nouvelle tâche et créer une branche structurée suivant les conventions Git.
Si vous travaillez déjà sur une branche existante ou si le projet n'utilise pas de conventions de nommage de branches.
Analyse de sécurité
SûrThe skill only uses restricted Git commands (git checkout, git branch, git status) and AskUserQuestion. No destructive or unauthorized actions are possible.
Aucun point d'attention détecté
Comment cette analyse est faiteExemples
Create a branch for adding user authenticationStart working on fixing the memory leak in the parserI need a branch to update the API documentationname: checkout-branch description: Create and checkout a new git branch with conventional naming based on the task description. Use when the user asks to create a branch, start working on a feature/fix, or begin a new task. allowed-tools: Bash(git checkout:), Bash(git branch:), Bash(git status:*), AskUserQuestion model: haiku
Checkout Branch Skill
This skill helps you create and checkout a new git branch following conventional naming conventions.
Instructions
When the user asks to create a branch or start working on a task, follow these steps:
1. Understand the Task
If the user provides a clear task description, use it directly. If not, use the AskUserQuestion tool to ask:
- What task are they working on?
- What type of work is it? (feature, fix, chore, etc.)
2. Determine the Branch Type
Analyze the task description to determine the appropriate type:
-
feat: New features or enhancements
- Keywords: "add", "create", "implement", "build", "new feature"
- Examples: "add user authentication", "implement dark mode"
-
fix: Bug fixes
- Keywords: "fix", "resolve", "bug", "issue", "patch"
- Examples: "fix memory leak", "resolve login error"
-
chore: Maintenance, dependencies, tooling, configuration
- Keywords: "update dependencies", "configure", "setup", "maintain"
- Examples: "update npm packages", "configure eslint"
-
docs: Documentation changes
- Keywords: "document", "readme", "docs", "documentation"
- Examples: "update API docs", "add setup instructions"
-
refactor: Code restructuring without changing behavior
- Keywords: "refactor", "restructure", "reorganize", "simplify"
- Examples: "refactor auth logic", "simplify error handling"
-
test: Adding or updating tests
- Keywords: "test", "testing", "unit test", "integration test"
- Examples: "add unit tests", "update test coverage"
-
style: Code formatting and style changes
- Keywords: "format", "style", "lint", "prettier"
- Examples: "format components", "apply linting rules"
-
perf: Performance improvements
- Keywords: "optimize", "performance", "speed up", "improve performance"
- Examples: "optimize queries", "reduce bundle size"
-
ci: CI/CD pipeline changes
- Keywords: "ci", "pipeline", "workflow", "github actions"
- Examples: "add github actions", "update deploy workflow"
-
security: Security fixes and improvements
- Keywords: "security", "vulnerability", "secure", "auth"
- Examples: "fix xss vulnerability", "improve authentication"
3. Generate Branch Name
Convert the task description to a branch name following these rules:
- Lowercase: Convert all characters to lowercase
- Kebab-case: Replace spaces with hyphens
- Remove special characters: Keep only letters, numbers, and hyphens
- Trim: Remove leading/trailing hyphens
- Format: Use pattern
<type>/<description>
Examples:
- "Add user authentication" →
feat/add-user-authentication - "Fix memory leak in parser" →
fix/memory-leak-in-parser - "Update API Documentation!" →
docs/update-api-documentation - "Refactor: error handling" →
refactor/error-handling
4. Check Current Branch Status
Before creating the branch, check the current status:
git status
If there are uncommitted changes, warn the user and ask if they want to:
- Commit the changes first
- Stash the changes
- Continue anyway (changes will carry over to the new branch)
5. Create and Checkout the Branch
Create and checkout the new branch:
git checkout -b <branch-name>
6. Confirm Success
After creating the branch:
- Verify with
git branchorgit status - Inform the user of the branch name
- Confirm they're ready to start working
Best Practices
- Be descriptive: Branch names should clearly indicate the work being done
- Be concise: Keep names under 50 characters when possible
- Consistent format: Always use
<type>/<description>pattern - Check for conflicts: Ensure branch name doesn't already exist
- Clean branches: Remind users to delete branches after merging
Examples
Example 1: User provides clear description
User: "Create a branch to add user authentication"
Assistant: I'll create a new branch for adding user authentication.
Command: git checkout -b feat/add-user-authentication
Output: Switched to a new branch 'feat/add-user-authentication'
Response: "Created and checked out branch 'feat/add-user-authentication'. You're ready to start working on user authentication!"
Example 2: User needs clarification
User: "Create a new branch"
Assistant: [Uses AskUserQuestion to ask what task they're working on]
User: "I need to fix a bug in the login form"
Assistant: I'll create a new branch for fixing the login form bug.
Command: git checkout -b fix/login-form-bug
Output: Switched to a new branch 'fix/login-form-bug'
Response: "Created and checked out branch 'fix/login-form-bug'. Ready to fix the bug!"
Example 3: Uncommitted changes
User: "Create a branch to refactor the database layer"
Assistant: [Runs git status and sees uncommitted changes]
Response: "You have uncommitted changes. Would you like to commit them first, stash them, or continue anyway?"
User: "Commit them first"
Assistant: [Uses commit skill to commit changes, then creates branch]
Command: git checkout -b refactor/database-layer
Response: "Committed changes and created branch 'refactor/database-layer'."
Error Handling
- Branch already exists: Inform user and ask if they want to checkout the existing branch or choose a different name
- Not a git repository: Inform user they need to initialize a git repository first
- Uncommitted changes: Warn and provide options as described above
- Invalid characters: Clean the branch name by removing invalid characters
After Creating the Branch
Optionally suggest next steps:
- "Would you like me to help you implement [task]?"
- "Should I create a commit plan for this work?"
- "Need help getting started with this task?"
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/checkout-git-branch-with-conventional-naming-mmbizkox/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/checkout-git-branch-with-conventional-naming-mmbizkox' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/checkout-git-branch-with-conventional-naming-mmbizkox/download' --output '.skill-downloads/checkout-git-branch-with-conventional-naming-mmbizkox/SKILL.md.part' && mv '.skill-downloads/checkout-git-branch-with-conventional-naming-mmbizkox/SKILL.md.part' '.skill-downloads/checkout-git-branch-with-conventional-naming-mmbizkox/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Outils déclarés par l’auteur (à vérifier dans votre agent) : Bash(git checkout:*), Bash(git branch:*), Bash(git status:*), AskUserQuestion
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/checkout-git-branch-with-conventional-naming-mmbizkox/SKILL.md' && test -s '.skill-downloads/checkout-git-branch-with-conventional-naming-mmbizkox/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/checkout-branch' && cp -R '.skill-downloads/checkout-git-branch-with-conventional-naming-mmbizkox' '.claude/skills/checkout-branch'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/checkout-git-branch-with-conventional-naming-mmbizkox'openskills read 'checkout-git-branch-with-conventional-naming-mmbizkox'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/checkout-git-branch-with-conventional-naming-mmbizkox/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Bonnes pratiques React Hook Form
Developpement
Maîtrisez React Hook Form : évitez les anti-patterns, gérez les abonnements, et traitez correctement reset, dirty state et entrées contrôlées.
Migration Emotion vers Mantine
Developpement
Migrer les styled-components Emotion vers des composants Mantine avec style props et modules CSS. Pour convertir .styled.tsx ou supprimer les imports @emotion.
Détecteur de dérive de périmètre
Developpement
Analyse les diffs git par rapport à une intention pour détecter la dérive de périmètre, fichiers non liés et PR trop larges, puis suggère de garder, diviser ou justifier.