スラッシュコマンドライブラリ
これらを .claude/commands/<name>.md(プロジェクト)または ~/.claude/commands/<name>.md(個人)にコピーしてください。ファイル名がコマンド名になります。仕組みについては カスタムスラッシュコマンドを参照してください。
/commit — ステージされた差分から Conventional Commit を作る
---
description: Write a Conventional Commit message from the staged changes
---
Run `git diff --cached`. Write ONE Conventional Commit message (feat/fix/docs/
refactor/test/chore) describing the change. Output only the message.
/review — ファイルまたは差分をレビューする
---
description: Review code for bugs, edge cases, and clarity
---
Review the target for correctness bugs, missing edge cases, and clarity issues.
Report only real, high-confidence findings as a checklist. Target: $ARGUMENTS
/pr — PR の説明文を作成する
---
description: Draft a pull request description from the branch diff
---
Compare against the default branch (`git diff main...HEAD`). Write a PR
description: what changed, why, and how it was verified. Use short sections.
/explain — コードを平易な言葉で説明する
---
description: Explain how something works
---
Explain $ARGUMENTS in plain language: what it does, how it flows, and any gotchas.
Read the relevant files first.
/scaffold — 新しいコンポーネント/モジュール
---
description: Scaffold a new component following project conventions
---
Create a new $ARGUMENTS following this repo's existing patterns (structure,
naming, tests). Show a plan first, then create the files.
/changelog — 最近の変更を要約する
---
description: Summarize recent commits into a changelog entry
---
Run `git log --oneline -20`. Group the changes into Added / Changed / Fixed in
Keep a Changelog style.
:::tip プラグインとして共有する チームのお気に入りのコマンド(加えてフックやスキル)を プラグインにまとめれば、全員が一度の手順でインストールできます。 :::