Claude Code Skill (Slash Command): review-and-commit.md
A slash command for Claude Code to perform (a) commit(s) following the conventional style.
Prompt template
- Format
- Yaml
- Outputs
- result (text)
---
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.
What you'll create
A coding-agent command inspects status, diffs, branch context and recent history before proposing focused commit structure.
Frequently asked questions
Can distinct changes become separate commits?
Yes, the source explicitly allows multiple commits.
Comments
Tried this prompt? Share what you made, compare results, or ask a question