スキル一覧に戻る
masa-codehub

github-branch-strategy

by masa-codehub

0🍴 0📅 2026年1月23日
GitHubで見るManusで実行

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 (統合元/マージ先)

  • 役割: 開発の起点となり、最終的な統合先となるブランチ。
  • 決定ロジック:
    1. 明示的な指定: ユーザーが指定した場合はそのブランチ。
    2. デフォルト: 指定がない場合、main または master

2. Feature Branch (作業ブランチ)

  • 役割: 特定のタスク、機能追加、バグ修正を行うための短命なブランチ。
  • 決定ロジック:
    1. 明示的な指定: ユーザーが指定した場合はそのブランチ。
    2. 自動生成: 指定がない場合、以下の命名規則で新規作成する。
      • 規則: <type>/<subject>
      • Type の例:
        • feat: 新機能の追加
        • fix: バグ修正
        • docs: ドキュメントの変更
        • refactor: リファクタリング
        • chore: その他保守
      • Subject の例: (英語推奨、ハイフン繋ぎ)
        • add-user-registration
        • fix-login-auth-bug
        • update-readme
      • 例: feat/add-user-registration

運用ルール (Rules)

  1. 最新化 (Sync): 作業開始前には必ず Base Branch の最新状態をリモートから取り込む。 git pull --rebase origin <base_branch>

  2. 統合 (Integration): 既にある Feature Branch で作業を再開する場合も、Base Branch の最新変更を取り込む(マージまたはリベース)。

  3. 保護 (Protection): Base Branch (main/master) への直接コミットは禁止。必ず Feature Branch を介する。

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

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

レビュー

💬

レビュー機能は近日公開予定です