
github-checkout-feature-branch
by masa-codehub
SKILL.md
name: github-checkout-feature-branch description: Replaces the task of ensuring development proceeds on the correct branch by switching and synchronizing branches. Typical use cases: (1) Creating a new feature branch after incorporating the latest Base Branch changes, (2) Safely returning to existing branches and synchronizing remote changes, (3) Instantly securing a workspace via automatic branch generation with timestamps.
GitHub Checkout Feature Branch
github-branch-strategy で規定されたロジックに従い、適切な作業ブランチ(Feature Branch)に切り替える。
手順
-
現状確認: 現在のブランチを確認する。
run_shell_command{command: "git branch --show-current"} -
Base Branch の準備:
github-branch-strategyの定義に従い、Base Branch(指定がなければmain等)を最新化する。run_shell_command{command: "git checkout <base_branch> && git pull --rebase origin <base_branch>"} -
Feature Branch への切り替え:
github-branch-strategyの定義に従い、Feature Branch に切り替える。-
Feature Branch 名の指定がある場合: (新規作成を試み、失敗したら既存ブランチに切り替えて Base Branch を取り込む)
run_shell_command{command: "git checkout -b <feature_branch> <base_branch> || (git checkout <feature_branch> && git merge <base_branch>)"} -
Feature Branch 名の指定がない場合: (自動生成して新規作成する)
run_shell_command{command: "git checkout -b feature/gemini-update-$(date +%Y%m%d-%H%M%S) <base_branch>"}
-
スコア
総合スコア
リポジトリの品質指標に基づく評価
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
レビュー
レビュー機能は近日公開予定です