❌️.claude/commands
Custom commands have been merged into skills. A file at .claude/commands/deploy.md and a skill at .claude/skills/deploy/SKILL.md both create /deploy and work the same way. Your existing .claude/commands/ files keep working. Skills add optional features: a directory for supporting files, frontmatter to control whether you or Claude invokes them, and the ability for Claude to load them automatically when relevant. ref .claude/commandsは引き続き使えるが、新たに作るならskillを作るほうが良い
明示的に呼ばなくても使えて便利なので
.claude/commands/
プロジェクトごと
~/.claude/commands
個人用
dotfilesで管理すると良さそうmrsekut.icon
code:_
.claude/
├── commands/ # カスタムスラッシュコマンド
│ ├── fix-bug.md
│ ├── create-test.md
│ └── frontend/
│ └── component.md
プロジェクト固有のコマンド例
code:markdown
<!-- .claude/commands/fix-github-issue.md -->
GitHub issue を分析して修正してください: $ARGUMENTS
手順:
1. gh issue view でissueの詳細を取得
2. 問題を理解する
3. 関連ファイルをコードベースから検索
4. 必要な変更を実装
5. テストを書いて動作確認
6. リンターと型チェックを通す
7. 分かりやすいコミットメッセージを作成
8. PRを作成
GitHub関連の操作にはGitHub CLI (gh) を使用してください。
使用方法:
code:bash
/project:fix-github-issue 1234