.cursor/skills/create-pr/SKILL.md
--- 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/
npx skillsauth add bitbankinc/bitbank-mcp-server .cursor/skills/create-prInstall 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.
bitbank-mcp-server リポジトリの PR テンプレートに従って構造化 PR を作成する。
.github/pull_request_template.md を必ず読み取り、最新の形式に従って本文を生成すること。
git status # 未コミットの変更がないことを確認
git branch --show-current
git fetch origin
git log origin/main..HEAD --oneline # origin/main との差分コミットを確認
未コミットの変更がある場合: lint-and-commit スキルに従ってコミットする。
ブランチが未 push の場合: ユーザーに確認してから push する:
git push -u origin <ブランチ名>
.github/pull_request_template.md を読み取り、その形式に従って以下の内容を埋める。
Description セクション:
git log origin/main..HEAD --oneline と git diff origin/main...HEAD --stat から変更内容を要約するType of Change セクション:
Related Issue(s) セクション:
#123)が含まれる場合はそれを使用する(例: Fixes #123)Changes Made セクション:
Checklist セクション:
Additional Notes セクション:
タイトルの形式:
<type>(<scope>): <subject>
コミットメッセージから生成する。
ラベルの候補:
| 変更種別 | ラベル |
|---|---|
| 機能追加 | feat |
| バグ修正 | fix |
| ドキュメント | docs |
| リファクタリング | refactor |
| 設定・ビルド | chore |
提案内容をユーザーに確認し、承認を得てから実行する。
実行前に gh コマンドの存在を確認する:
command -v gh
gh が見つかった場合: 以下のコマンドで PR を作成するgh pr create \
--title "<タイトル>" \
--body "$(cat <<'EOF'
<PR本文>
EOF
)"
gh が見つからない場合: ユーザーに以下を案内してこのステップを終了する
brew install gh を実行後、gh auth login で認証https://github.com/bitbankinc/bitbank-mcp-server/compare/<ブランチ名>PR 作成後、ブラウザで開く:
gh pr view --web
gh pr create の実行はユーザーの確認後のみ行う.github/pull_request_template.md を読み取って確認するdevelopment
lint・format を実行してから git diff をもとに Conventional Commits 形式のコミットメッセージを提案し、ユーザー確認後にコミットする。「lint and commit」「コミットして」「フォーマットしてコミットして」などと言われたときに使用する。
tools
bitbank-mcp-server リポジトリのブランチ命名規則リファレンス。他のスキル(branch-from-diff 等)から参照する。ブランチ名を決める際は必ずこのスキルを読み取って規則に従うこと。
data-ai
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.
testing
npm audit の脆弱性を調査・修正・ホワイトリスト登録するワークフロー。「audit を対応して」「脆弱性を修正して」「npm audit が失敗している」などと言われたときに使用する。