Skill gitflow
Gérez un workflow de branching gitflow incluant les branches feature, release et hotfix, avec des versions publiées et la génération de changelogs.
- Étoiles GitHub
- 8
- Fichiers
- 7
- Dernier commit
- 28 oct. 2026
- Licence
- MIT
- Outils autorisés
- —
Que fait la skill gitflow ?
gitflow est une agent skill. Gérez un workflow de branching gitflow incluant les branches feature, release et hotfix, avec des versions publiées et la génération de changelogs.
Résumé généré à partir du SKILL.md de la skill.
À propos du skill gitflow
La gestion de stratégies de branching complexes comme gitflow est ce que ce SKILL permet aux développeurs travaillant sur des dépôts prêts pour la production. Il automatise le cycle de vie des branches feature, release et hotfix tout en garantissant la stabilité de la branche de production principale. Un agent devrait charger cet outil lorsqu'un utilisateur doit promouvoir un travail de développement vers la production, coordonner un correctif d'urgence ou gérer des releases versionnées.
Le SKILL s'appuie sur l'outil GitHub CLI pour gérer les pull requests, les merges et les releases. Il impose des protocoles de sécurité stricts, comme la vérification que les tests CI sont au vert avant de merger vers main et l'exigence de créer une PR de revert de secours après chaque déploiement en production. Il gère également le versionnement sémantique en mettant à jour les manifestes du projet tels que package.json ou pyproject.toml et en générant des changelogs. Cet outil est spécifiquement conçu pour la topologie gitflow et ne doit pas être utilisé pour des workflows simples à branche unique ou pour l'apprentissage de base des commandes git.
Ce qu'un agent peut faire avec
- 1Déployer le travail de développement accumuléCréez une nouvelle branche de release à partir de la branche de développement pour préparer le travail accumulé pour la production.
- 2Appliquer un correctif de production d'urgenceInitialisez une branche de hotfix directement depuis la branche main pour résoudre un problème urgent en production.
- 3Développer de nouvelles fonctionnalités de projetDémarrez une nouvelle branche de feature à partir de la branche d'intégration pour construire des fonctionnalités pour le prochain cycle de release.
- 4Automatiser la documentation des releases versionnéesGénérez un changelog professionnel et créez un tag pour une nouvelle version sémantique durant le processus de release.
Rédigé à partir du SKILL.md du skill. Chaque cas d'utilisation est vérifié par rapport à une citation de celui-ci.
Comment installer la skill gitflow
Chaque commande copie le dossier de la skill dans le répertoire des skills du client. Redémarrez le client ou démarrez une nouvelle session pour la charger.Installer la skill gitflow dans Plugin
/plugin marketplace add mgiovani/cc-arsenal /plugin install cc-arsenal@cc-arsenal-marketplace
Installer la skill gitflow dans Claude Code
~/.claude/skills/gitflow/SKILL.md
$ npx degit mgiovani/cc-arsenal/skills/gitflow ~/.claude/skills/gitflowInstaller la skill gitflow dans Claude Code (project)
.claude/skills/gitflow/SKILL.md
$ npx degit mgiovani/cc-arsenal/skills/gitflow .claude/skills/gitflowInstaller la skill gitflow dans Codex
~/.agents/skills/gitflow/SKILL.md
$ npx degit mgiovani/cc-arsenal/skills/gitflow ~/.agents/skills/gitflowInstaller la skill gitflow dans Gemini CLI
~/.gemini/skills/gitflow/SKILL.md
$ npx degit mgiovani/cc-arsenal/skills/gitflow ~/.gemini/skills/gitflowInstaller la skill gitflow dans Claude.ai
npx degit mgiovani/cc-arsenal/skills/gitflow gitflow && zip -r gitflow.zip gitflow # claude.ai → Customize → Skills → + → Create skill → Upload a skill → gitflow.zip
SKILL.md
Voir sur GitHubGitflow
This skill covers the full gitflow branching model with two long-lived branches and short-lived branches off them.
mainis production. Merging tomaintriggers your deploy pipeline. Treat every merge tomainas a production deploy that your users will see shortly after.dev(sometimes calleddevelop) is the integration branch. Day-to-day feature and fix work lands here first.- Short-lived branches:
feat/<desc>andfix/<desc>offdev,release/<x.y.z>offdev,hotfix/<x.y.z>offmain.
Pick the flow
Read the matching reference in full and follow it step by step. Each one is self-contained.
| The user wants to... | Flow | Read |
|---|---|---|
Ship the accumulated dev work to production |
Release | references/release.md |
| Get an urgent fix into production now, can't wait for a release | Hotfix | references/hotfix.md |
| Build a new feature or a fix that will ride the next release | Feature | references/feature.md |
If the intent is ambiguous (e.g. "ship the settings fix"), ask one question: is this urgent enough to go straight to production (hotfix), or does it ride the next release (feature now, release later)? Then stop and wait for the answer. Don't pick a flow, name a branch, run a command or propose a version until the user replies.
Universal rails
These apply to every flow. They exist because main is live production and a mistake here is user-visible, so the cost of a shortcut is real.
- Requires
gh(brew install gh) for PRs, merges, and releases. Confirmgh auth statussucceeds before the first PR; if not, stop and tell the user to rungh auth login. mainis a deploy button. Never merge tomainwhile any CI check is not green. The full Definition-of-Done gate runs on a PR tomain; wait for all of it. Poll CI every few minutes rather than tight-looping, to keep token cost sane. No CI pipeline configured on the repo? Skip the wait-for-green step and say so explicitly before merging.- Always update
CHANGELOG.mdduring a release and a hotfix (never per-feature; the changelog is assembled at ship time). Seereferences/changelog.mdfor the format. - Conventional Commits. Follow the Conventional Commits spec. Keep commit messages, PR titles, PR bodies, the changelog, and release notes clean and professional.
- Never force-push. Never bypass git hooks (
--no-verifyor equivalent). The pre-push hooks are part of the safety net. If a push fails due to a hook, investigate and root-fix the underlying issue; never bypass. - Stage only the files you intend. Prefer
git add <specific-files>over blanket staging commands. Verify what you are about to stage withgit diff --stagedbefore committing. - Verify before every push. Run
git log --oneline <base>..HEADandgit diff --stat <base>..HEADso you know exactly what is going to the remote, especially before anything that touchesmain. - After any merge to
main(release or hotfix), open a break-glass revert PR and leave it OPEN. It is the one-click rollback. Never merge it yourself. See the shared procedure inreferences/release.md(the revert step is identical for hotfix).
Versioning
Semantic versioning. The current version lives in your project manifest (package.json, pyproject.toml, Cargo.toml, etc.) on both long-lived branches (kept in sync; both are at the last released version). No version manifest in the repo? Version via the latest git tag alone and skip the bump-file step.
- Release: bump minor for new features (e.g.
1.1.0to1.2.0), major for breaking changes. - Hotfix: bump patch (e.g.
1.1.0to1.1.1). - The tag is
v<x.y.z>, annotated, placed on the merge commit onmain.
Merge methods (they differ by target, on purpose)
| Merge | Method |
|---|---|
Feature/fix PR into dev |
Squash merge (one clean commit per PR with the (#NNN) suffix). This keeps dev history readable. |
release/* or hotfix/* into main |
Merge commit (--no-ff). This preserves the release as a first-parent merge so the break-glass revert (git revert -m 1) is clean. |
Back-merge release/* or hotfix/* into dev |
Merge commit. |
Delete short-lived branches yourself once they are merged everywhere they need to go.
Stay in the loop
These flows touch production. When CI is running or a deploy is in flight, report each milestone to the user as it lands (CI green, merged, deploy healthy, tagged) rather than going silent. If any gate is red, stop and root-fix; do not merge around it.
Fichiers de cette skill
7Questions sur la skill gitflow
Comment installer la skill gitflow dans Claude Code ?
Exécutez npx degit mgiovani/cc-arsenal/skills/gitflow ~/.claude/skills/gitflow. Claude Code charge les skills depuis ~/.claude/skills (tous les projets) ou .claude/skills (un seul projet) et utilise une skill lorsque sa description correspond à la tâche.
Quels clients peuvent utiliser la skill gitflow ?
Tout client qui lit le format Agent Skills : Claude Code, Codex, Gemini CLI et claude.ai (envoi sous forme de ZIP). Les scripts de la skill ne s'exécutent que si le client autorise l'exécution de code.
Quelle est la différence entre une release et un hotfix dans ce workflow ?
Une release est utilisée pour déployer le travail accumulé de la branche dev vers la production, tandis qu'un hotfix est utilisé pour appliquer un correctif urgent en production immédiatement, sans attendre un cycle de release complet.
Quelle méthode de merge doit être utilisée pour les branches feature ?
Les PR de feature et de fix vers la branche dev doivent utiliser un squash merge afin de maintenir un historique lisible.