Notre avis
Ce guide fournit des bonnes pratiques pour l'utilisation de Git : gestion des branches, commits atomiques, résolution de conflits et procédures de fusion.
Points forts
- Conventions claires pour les noms de branches et messages de commit
- Processus détaillé de résolution de conflits
- Liste de contrôle pré-fusion pour éviter les erreurs courantes
Limites
- Suppose un schéma de nommage spécifique (feature/CR-NNN) qui peut ne pas convenir à tous les projets
- Ne couvre pas le rebasing ou la réécriture avancée de l'historique
- Se concentre sur un workflow linéaire, peut ne pas correspondre à git-flow
Utilisez ce guide lorsque vous avez besoin d'un workflow Git cohérent pour les branches de fonctionnalités et les fusions.
Ne l'utilisez pas pour des projets utilisant des stratégies de branchement différentes comme GitHub Flow ou trunk-based development.
Analyse de sécurité
SûrThe skill provides only standard git workflow guidance with no destructive commands, file exfiltration, or unsafe instructions. All mentioned commands are typical and expected.
Aucun point d'attention détecté
Exemples
Create a new feature branch named feature/CR-042-user-auth from the development branch.Merge the development branch into the current feature branch and resolve any conflicts.Resolve the merge conflict in the file src/auth.js, keeping the changes from both branches where appropriate.name: git-workflow description: Use when the Integrator is performing git operations — committing, branching, merging feature branches, resolving conflicts, managing branch lifecycle, or maintaining commit history. Activates for any git-related work. version: 1.0.0
Git Workflow Expertise
When This Applies
Apply this guidance when:
- Creating or managing branches
- Committing and pushing changes
- Merging feature branches into development
- Resolving merge conflicts
- Managing commit history
Branch Management
Branch Naming
- Feature branches:
feature/CR-NNN-short-description - Hotfix branches:
hotfix/NNN-short-description - Keep names lowercase with hyphens
- Always include the CR or issue number
Branch Lifecycle
1. Create: git checkout -b feature/CR-001-user-auth development
2. Work: Multiple commits as work progresses
3. Update: git merge development (keep in sync)
4. Test: Run ALL tests before final merge
5. Merge: git checkout development && git merge --no-ff feature/CR-001-user-auth
6. Cleanup: git branch -d feature/CR-001-user-auth
Keeping Branches Current
Regularly sync feature branches with development:
git checkout feature/CR-001-user-auth
git merge development
# Resolve any conflicts
# Run tests to verify
Commit Practices
Commit Message Format
[TASK-NNN] Brief description of what changed
Optional longer description explaining:
- Why this change was made
- What approach was taken
- Any notable decisions
Commit Guidelines
- Atomic commits — Each commit should be one logical change
- Meaningful messages — "Fix bug" is bad; "[TASK-042] Fix null reference in auth token validation" is good
- Never commit broken code — All tests must pass before committing
- Reference the task — Always include the TASK-NNN in the commit message
- No merge commits in feature branches — Use
mergeonly when merging to development
What to Include in a Commit
- Source code changes related to the task
- Related configuration changes
- Updated documentation if behavior changed
What NOT to Commit
- Debug logging or temporary code
- IDE settings or personal configuration
- Unrelated changes (even if they're improvements)
- Files with secrets, tokens, or credentials
Merge Conflict Resolution
Process
- Identify conflicting files:
git status - For each conflict:
- Read BOTH sides of the conflict
- Understand the intent of each change
- Choose the correct resolution (may be a combination)
- Remove all conflict markers (
<<<<,====,>>>>)
- Run tests after resolving all conflicts
- Commit the merge
Conflict Prevention
- Sync feature branches with development frequently
- Communicate with other roles about shared file changes
- Keep changes focused — large diffs create more conflicts
Pre-Merge Checklist (feature → development)
- [ ] All tests pass on the feature branch
- [ ] Feature branch is up to date with development
- [ ] No unresolved merge conflicts
- [ ] Commit messages reference task IDs
- [ ] No debug code or temporary files
- [ ] Changes match the task scope (no extras)
- [ ] Notify Manager after successful merge
Expert Next.js App Router
Developpement
Un skill qui transforme Claude en expert Next.js App Router.
Générateur de README
Developpement
Crée des README.md professionnels et complets pour vos projets.
Rédacteur de Documentation API
Developpement
Génère de la documentation API complète au format OpenAPI/Swagger.