Skip to content
Development
Command

/commit

Create a conventional commit with auto-generated message

BOOST
From plugin
project-starter
1.4k26 skills7 agents26 commands6 hooks
Install
> /plugin marketplace add CloudAI-X/claude-workflow-v2
> /plugin install project-starter@claude-workflow

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/commit

Context preview

What this command does when you run it.

Create a conventional commit with auto-generated message

Command definition

commit.md
allowed-tools: Bash(git status:*), Bash(git diff:*), Bash(git add:*), Bash(git commit:*)
description: Create a conventional commit with auto-generated message
argument-hint: "[optional scope or message hint]"

Context

  • Current branch: !`git branch --show-current`
  • Git status: !`git status --short`
  • Staged changes: !`git diff --cached --stat`
  • Staged diff: !`git diff --cached`
  • Recent commits (for style reference): !`git log --oneline -5 2>/dev/null || echo "No commits yet"`

Task

Based on the staged changes above, create a single git commit:

1. Analyze the staged diff to understand what changed 2. Generate a conventional commit message following the format:

  • `type(scope): description`
  • Types: feat, fix, docs, style, refactor, perf, test, chore

3. If no changes are staged, inform the user and suggest staging files 4. Execute the commit

$ARGUMENTS

Ships withproject-starter

A universal Claude Code workflow plugin with specialized agents, skills, hooks, and mode commands for any software project. Compatible with skills.sh — works with Claude Code, Cursor, Codex, and 35+ AI agents.

Get the whole plugin

Other commands on project-starter.