Claude CodeのCustom Slash Commandのdocsページに記載の、gitのcommitを作るカスタムスラッシュコマンドを試用してみたが、なかなか快適だった。
「複数のstagingされていないファイルがあるが、手動でgit addしたものだけをgit commitしたい」みたいな場面が多いので、 Bash(git add:*) は allowed-tools から削除した。他は特に違和感なく使えている。
しばらく試用してみる。
--- allowed-tools: Bash(git status:*), Bash(git commit:*) description: Create a git commit --- ## Context - Current git status: !`git status` - Current git diff (staged and unstaged changes): !`git diff HEAD` - Current branch: !`git branch --show-current` - Recent commits: !`git log --oneline -10` ## Your task Based on the above changes, create a single git commit.