gitflow skill
feature、release、hotfixブランチを含むgitflowのブランチングワークフローを管理し、バージョン管理されたリリースと変更履歴(changelog)の生成を行います。
- GitHubスター
- 8
- ファイル
- 7
- 最終コミット
- 2026年10月28日
- ライセンス
- MIT
- 許可されたツール
- —
gitflow skillは何をしますか
gitflowはAgent Skillsです。 feature、release、hotfixブランチを含むgitflowのブランチングワークフローを管理し、バージョン管理されたリリースと変更履歴(changelog)の生成を行います。.
skillのSKILL.mdから生成された要約。
gitflow skill について
このSKILLは、本番環境向けのレポジトリを扱う開発者が、gitflowのような複雑なブランチ戦略を管理することを可能にします。mainブランチの安定性を確保しながら、feature、release、hotfixブランチのライフサイクルを自動化します。開発中の作業を本番環境へ昇格させる場合、緊急の修正を調整する場合、またはバージョン管理されたリリースを管理する場合に、エージェントはこのツールをロードする必要があります。
このSKILLは、プルリクエスト、マージ、リリースを処理するためにGitHub CLIを使用します。mainへのマージ前にCIチェックがパスしていることを確認したり、本番デプロイのたびに緊急回避用のリバートPRの作成を求めたりするなど、厳格な安全プロトコルを強制します。また、package.jsonやpyproject.tomlなどのプロジェクトマニフェストを更新し、changelogを生成することで、セマンティックバージョニングにも対応します。このツールはgitflowのトポロジー専用に設計されており、単純なシングルブランチのワークフローや、基本的なgitコマンドの学習には使用しないでください。
エージェントができること
- 1蓄積された開発作業のデプロイ蓄積された作業を本番環境へ準備するため、developmentブランチから新しいreleaseブランチを作成します。
- 2本番環境への緊急修正の適用本番環境の緊急の問題に対処するため、mainブランチから直接hotfixブランチを開始します。
- 3新規プロジェクト機能の開発次回のリリースサイクルに向けた機能構築のため、統合ブランチから新しいfeatureブランチを開始します。
- 4バージョン管理されたリリースドキュメントの自動化リリースプロセス中に、プロフェッショナルなchangelogを生成し、新しいセマンティックバージョンのタグを付与します。
skill の SKILL.md から作成されています。すべてのユースケースは、その引用と照合されています。
gitflow skillのインストール方法
各コマンドはskillフォルダをクライアントのskillsディレクトリにコピーします。読み込むには、クライアントを再起動するか新しいセッションを開始してください。プラグインにgitflow skillをインストールする
/plugin marketplace add mgiovani/cc-arsenal /plugin install cc-arsenal@cc-arsenal-marketplace
Claude Codeにgitflow skillをインストールする
~/.claude/skills/gitflow/SKILL.md
$ npx degit mgiovani/cc-arsenal/skills/gitflow ~/.claude/skills/gitflowClaude Code (project)にgitflow skillをインストールする
.claude/skills/gitflow/SKILL.md
$ npx degit mgiovani/cc-arsenal/skills/gitflow .claude/skills/gitflowCodexにgitflow skillをインストールする
~/.agents/skills/gitflow/SKILL.md
$ npx degit mgiovani/cc-arsenal/skills/gitflow ~/.agents/skills/gitflowGemini CLIにgitflow skillをインストールする
~/.gemini/skills/gitflow/SKILL.md
$ npx degit mgiovani/cc-arsenal/skills/gitflow ~/.gemini/skills/gitflowClaude.aiにgitflow skillをインストールする
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
GitHubで表示Gitflow
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.
このスキルのファイル
7gitflow skillに関する質問
Claude Codeにgitflow skillをインストールするには
npx degit mgiovani/cc-arsenal/skills/gitflow ~/.claude/skills/gitflowを実行してください。Claude Codeは~/.claude/skills(すべてのプロジェクト)または.claude/skills(単一プロジェクト)からskillsを読み込み、説明がタスクに一致する場合にskillを使用します。
gitflow skillはどのクライアントで使用できますか
Agent Skills形式を読み込むすべてのクライアントで使用できます: Claude Code、Codex、Gemini CLI、claude.ai(ZIPとしてアップロード)。skill内のスクリプトは、クライアントがコード実行を許可した場合にのみ実行されます。
このワークフローにおけるreleaseとhotfixの違いは何ですか?
releaseはdevブランチに蓄積された作業を本番環境へ反映するために使用されます。一方、hotfixはフルリリースのサイクルを待たずに、緊急の修正を即座に本番環境へ適用するために使用されます。
featureブランチにはどのマージ方法を使用すべきですか?
履歴の可読性を維持するため、devブランチへのfeatureおよびfixのPRにはsquash mergeを使用する必要があります。