.cursor/skills/lint-and-commit/SKILL.md
lint・format を実行してから git diff をもとに Conventional Commits 形式のコミットメッセージを提案し、ユーザー確認後にコミットする。「lint and commit」「コミットして」「フォーマットしてコミットして」などと言われたときに使用する。
npx skillsauth add bitbankinc/bitbank-mcp-server lint-and-commitInstall 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.
lint/format を実行し、未コミットの差分からコミットメッセージを生成してコミットする。
npm run format:fix
lint エラーがある場合は修正してから次へ進む。
git diff
git diff --cached # staged の変更も確認
git diff --stat
差分の内容から Conventional Commits 形式のコミットメッセージを提案する。
形式:
<type>(<scope>): <subject>
scope は省略可能(例: feat: add validation でも feat(trade): add validation でも可)。
type の選択:
| type | 用途 |
|---|---|
| feat | 機能追加 |
| fix | バグ修正 |
| docs | ドキュメント変更 |
| refactor | リファクタリング |
| style | フォーマット変更 |
| test | テストの追加・修正 |
| chore | ビルド・設定変更 |
ルール:
例:
feat(get-ticker): add sell/buy spread calculation
fix(get-candles): correct datetime format conversion
chore: update biome config
test(get-depth): add unit tests for depth formatting
docs: update README with new tool description
提案したコミットメッセージをユーザーに伝え、確認を得てから実行する:
git add -A # または個別に git add <ファイル>
git commit -m "<コミットメッセージ>"
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 等)から参照する。ブランチ名を決める際は必ずこのスキルを読み取って規則に従うこと。
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 が失敗している」などと言われたときに使用する。