Generate Conventional Commits style commit messages or summarize existing commits
Generates Conventional Commits messages for staged changes or rewrites recent commits.
/plugin marketplace add openshift-eng/ai-helpers/plugin install git@ai-helpers[N]git:commit-suggest
/git:commit-suggest # Analyze staged changes
/git:commit-suggest [N] # Analyze last N commits (1-100)
AI-powered command that analyzes code changes and generates Conventional Commits–style messages.
Modes:
git add required)Use cases:
Difference from /git:summary – That command is read-only, while git:commit-suggest generates actionable commit message suggestions for user review and manual use.
The command operates in two modes based on input:
Mode 1 (no argument):
git diff --cached1, use option 2, commit with option 3, skipgit commit with selected message if user requestsMode 2 (with N):
git logfix > feat > perf > refactor > docs > test > chore)1, use option 2, amend with option 3, skipgit commit --amend (N=1) or squash operation (N≥2) if user requests# Generate message for staged files
git add src/auth.ts src/middleware.ts
/git:commit-suggest
# Rewrite last commit message
/git:commit-suggest 1
# Summarize last 5 commits for squash
/git:commit-suggest 5
Generates 3 commit message suggestions:
Each suggestion includes:
type(scope): description)Example:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Suggestion #1 (Recommended)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
feat(auth): add JWT authentication middleware
Implement token-based authentication for API endpoints.
The middleware verifies JWT tokens and extracts user information.
Fixes: #123
Which suggestion would you like to use? (1/2/3 or skip)
Squashed from N commits: + original commit listtype(scope): description
[optional body]
[optional footer]
feat – New featurefix – Bug fixdocs – Documentation changesrefactor – Code refactoringperf – Performance improvementstest – Test additions or modificationsbuild – Build system or dependency changesci – CI configuration changeschore – Other changes that don't modify src or test filesScope: auth, api, ui, db, deps (indicates affected module)
Footer:
Fixes: #123, Closes: #456, Related: #789BREAKING CHANGE: descriptionCo-authored-by: Name <email@example.com>/git:summary – Display repository status and recent commits (read-only)