← Back to list

github-branch-strategy
by masa-codehub
⭐ 0🍴 0📅 Jan 23, 2026
SKILL.md
name: github-branch-strategy description: Replaces the work of prescribing and adhering to branch definitions and operational rules (Git Flow) in the project. Typical use cases: (1) Identifying and updating the Base Branch that serves as the development starting point, (2) Creating new feature branches using naming conventions (type/subject), (3) Enforcing branch protection rules such as prohibiting direct commits to the main branch.
GitHub Branch Strategy
プロジェクトにおけるブランチの定義と運用ルール(Git Flow)を規定する。 他のGit関連スキル(checkout, commit, pull-request)はこの戦略に従う。
ブランチの定義 (Definitions)
1. Base Branch (統合元/マージ先)
- 役割: 開発の起点となり、最終的な統合先となるブランチ。
- 決定ロジック:
- 明示的な指定: ユーザーが指定した場合はそのブランチ。
- デフォルト: 指定がない場合、
mainまたはmaster。
2. Feature Branch (作業ブランチ)
- 役割: 特定のタスク、機能追加、バグ修正を行うための短命なブランチ。
- 決定ロジック:
- 明示的な指定: ユーザーが指定した場合はそのブランチ。
- 自動生成: 指定がない場合、以下の命名規則で新規作成する。
- 規則:
<type>/<subject> - Type の例:
feat: 新機能の追加fix: バグ修正docs: ドキュメントの変更refactor: リファクタリングchore: その他保守
- Subject の例: (英語推奨、ハイフン繋ぎ)
add-user-registrationfix-login-auth-bugupdate-readme
- 例:
feat/add-user-registration
- 規則:
運用ルール (Rules)
-
最新化 (Sync): 作業開始前には必ず
Base Branchの最新状態をリモートから取り込む。git pull --rebase origin <base_branch> -
統合 (Integration): 既にある
Feature Branchで作業を再開する場合も、Base Branchの最新変更を取り込む(マージまたはリベース)。 -
保護 (Protection):
Base Branch(main/master) への直接コミットは禁止。必ずFeature Branchを介する。
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon