Create commits with well-formatted messages
Creates a commit with AI-generated conventional commit messages from staged or all changes.
/plugin marketplace add adeonir/claude-code-plugins/plugin install debug-tools@claude-code-extras[-s|--staged]Create a commit with a well-formatted message based on the actual file changes.
-s or --staged: Use only files already stagedGather context (run in parallel):
git status
git diff HEAD
git log --oneline -5
Analyze changes:
Stage files (if not using -s/--staged):
git add .
Create commit using HEREDOC format:
git commit -m "$(cat <<'EOF'
type: concise description
- Optional body item 1
- Optional body item 2
EOF
)"
Verify commit:
git log -1 --format="%B"
git status
Handle pre-commit hooks (if files were modified):
git log -1 --format='%an %ae'| Type | Use when |
|---|---|
feat | Adding new functionality |
fix | Fixing a bug |
refactor | Restructuring code without changing behavior |
chore | Maintenance tasks, dependencies, configs |
docs | Documentation changes |
test | Adding or updating tests |
type: concise description in imperative mood
- Optional: area or component affected
- Optional: another key change
Create a commit for changes with $ARGUMENTS.
Use only git commands. Do not use other tools or send additional messages beyond the tool calls.