.cursor/skills/branch-from-diff/SKILL.md
Create a new branch from uncommitted changes on main or master by analyzing the diff and proposing a branch name. Use when the user says "branch-from-diff", wants to create a branch from current changes, or is working on main/master with uncommitted changes.
npx skillsauth add bitbankinc/bitbank-mcp-server branch-from-diffInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
main(または master)ブランチにいる状態の未コミット変更から、新規ブランチを作成して切り替える。
git branch --show-current
git status
git diff --stat
<ブランチ名> ブランチにいます」と伝え、ブランチ作成をスキップする変更ファイル名と git diff の要約から、意味が分かる短いブランチ名を提案する。
命名規則は branch-naming スキルを読み取って従うこと。
ユーザーがコマンドの後にブランチ名を指定している場合(例: branch-from-diff fix/my-fix)はその名前を優先する。
提案したブランチ名をユーザーに伝え、確認を得てから実行する:
git checkout -b <ブランチ名>
git checkout -b は未コミット変更をそのまま持っていく)development
lint・format を実行してから git diff をもとに Conventional Commits 形式のコミットメッセージを提案し、ユーザー確認後にコミットする。「lint and commit」「コミットして」「フォーマットしてコミットして」などと言われたときに使用する。
tools
--- name: create-pr description: PRテンプレートに沿った構造化プルリクエストを作成する。「PRを作って」「プルリクを出して」「create-pr」と言われたときに使用する。コマンド引数に issue 番号(例: "create-pr #123")が含まれる場合はPRタイトルと Related Issue(s) に反映する。 --- # create-pr bitbank-mcp-server リポジトリの PR テンプレートに従って構造化 PR を作成する。 ## PR テンプレートの場所 `.github/pull_request_template.md` を必ず読み取り、最新の形式に従って本文を生成すること。 ## 手順 ### Step 1: ブランチの準備を確認 ```bash git status # 未コミットの変更がないことを確認 git branch --show-current git fetch origin git log origin/main..HEAD --oneline # origin/
tools
bitbank-mcp-server リポジトリのブランチ命名規則リファレンス。他のスキル(branch-from-diff 等)から参照する。ブランチ名を決める際は必ずこのスキルを読み取って規則に従うこと。
testing
npm audit の脆弱性を調査・修正・ホワイトリスト登録するワークフロー。「audit を対応して」「脆弱性を修正して」「npm audit が失敗している」などと言われたときに使用する。