.cursor/skills/audit-fix/SKILL.md
npm audit の脆弱性を調査・修正・ホワイトリスト登録するワークフロー。「audit を対応して」「脆弱性を修正して」「npm audit が失敗している」などと言われたときに使用する。
npx skillsauth add bitbankinc/bitbank-mcp-server audit-fixInstall 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.
npm audit で残存件数を確認npm audit で解消を確認してコミットnpm audit
npm ls <package-name>
npm view <parent-package>@<version> dependencies
npm view <package-name> versions --json
https://github.com/advisories/GHSA-mw96-cpmx-2vgcのようなURLを参照
調査が完了したら、必ず以下の形式で開発者に報告し、方針の承認を得てから実施する。
fix(audit): fix security issue of <package-name>@<version>
##### 脆弱性の詳細
- <CVE or GHSA> / <severity>
- 脆弱性名: ...
- <URL>
##### 調査結果のサマリ
- 依存チェーン: ...
- devDependencies のみ / 本番依存
- パッチバージョンの有無・互換性
##### 修正方針
(Fix / スキップ どちらを選ぶか、その根拠)
##### アクション
実行コマンド
開発者の承認なしに修正を実施しないこと。
typescript)@types/node 等)vitest)@biomejs/biome)package.json の devDependencies / dependencies を変更して npm install。
"overrides": {
"<package-name>": "^<fixed-version>"
}
注意: overrides は「なるべく使わない」
適用後の確認:
npm install
node -e "console.log(require('./node_modules/<package>/package.json').version)"
npm ls <package> # 入れ子になっていないか確認
npm audit
# → vulnerabilities が 0 になったことを確認
npm test
npm run format:check
fix(audit): fix security issue of <package>@<version>
<CVE or GHSA> / <severity> / <脆弱性タイトル>
- <変更内容の箇条書き>
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 等)から参照する。ブランチ名を決める際は必ずこのスキルを読み取って規則に従うこと。
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.