Create a conventional commit with auto-generated message based on staged changes.
Generates conventional commits with AI-authored messages based on staged changes.
/plugin marketplace add drewdresser/ai-dev-settings/plugin install ai-dev@ai-dev-marketplacegit/Generate and execute a conventional commit based on staged changes.
git status - Check repository stategit diff --cached - View staged changesgit diff --cached --stat - View change statisticsgit log --oneline -10 - View recent commits for style referencegit commit -m "..." - Execute the commitCheck staged changes
git diff --cached --stat
If nothing staged: Prompt user to stage files first
Analyze changes to determine:
Generate commit message following conventional commits:
type(scope): description
[optional body]
[optional footer]
Execute commit
| Type | Description |
|---|---|
feat | New feature |
fix | Bug fix |
docs | Documentation only |
style | Formatting, no code change |
refactor | Code change that neither fixes nor adds |
perf | Performance improvement |
test | Adding or updating tests |
chore | Maintenance, deps, config |
# Feature
git commit -m "feat(auth): add password reset flow"
# Bug fix
git commit -m "fix(api): handle null response from external service"
# Refactor
git commit -m "refactor(utils): extract date formatting to shared module"
If the user provides hints, incorporate them:
commit auth → scope is "auth"commit "add login" → use as description hintcommit fix → type is "fix"Staged changes:
M src/auth/login.py
A src/auth/reset.py
Commit message:
feat(auth): add password reset functionality
Committed: abc1234