TokenToSeaPrompt Hub
中文 Console

Claude Code Slash Command: review-and-commit

Coding·Template

Use in Chat

Claude Code slash command that reads git status and diff, reviews the changes and commits them in conventional commit format, split into separate commits if needed.

---
allowed-tools: Bash(git add:*), 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

Review the existing changes and then create a git commit following the conventional commit format. If you think there are more than one distinct change you can create multiple commits.