Generate AIPCC Commits style commit messages or summarize existing commits
Generate AIPCC-formatted commit messages from staged changes or summarize existing commits for rewriting/squashing. Use it to create compliant commits or improve the last N commits (1-100) before pushing.
/plugin marketplace add opendatahub-io/ai-helpers/plugin install aipcc@odh-ai-helpersNaipcc:commit-suggest
/aipcc:commit-suggest # Analyze staged changes
/aipcc:commit-suggest [N] # Analyze last N commits (1-100)
AI-powered command that analyzes code changes and generates commit messages following the project's AIPCC format requirements.
Modes:
git add required)Use cases:
Difference from /git:summary – That command is read-only, while aipcc: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 -s with selected message if user requests (includes sign-off)Mode 2 (with N):
git log1, use option 2, amend with option 3, skipgit commit --amend -s (N=1) or squash operation (N≥2) if user requests# Generate message for staged files
git add src/auth.ts src/middleware.ts
/aipcc:commit-suggest
# Rewrite last commit message
/aipcc:commit-suggest 1
# Summarize last 5 commits for squash
/aipcc:commit-suggest 5
Generates 3 AIPCC-formatted commit message suggestions:
Each suggestion includes:
AIPCC-XXX: description)Fixes AIPCC-XXX)Example:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Suggestion #1 (Recommended)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
AIPCC-123: Add JWT authentication middleware
Implement token-based authentication for API endpoints to enhance
security. The middleware verifies JWT tokens and extracts user
information for authorization decisions.
Fixes AIPCC-123
Co-Authored-By: [AI_NAME] ([AI_MODEL])
Signed-off-by: Your Name <your.email@example.com>
Which suggestion would you like to use? (1/2/3 or skip)
Squashed from N commits: + original commit listAll commits must follow this project-specific format:
AIPCC-XXX: Short description
Longer explanation of what the commit does, written in at least one
complete sentence explaining the purpose and impact of the change.
[Optional: Fixes AIPCC-XXX]
[Optional: Co-Authored-By: [AI_NAME] ([AI_MODEL])]
Signed-off-by: Your Name <your.email@example.com>
Signed-off-by line (use git commit -s)Co-Authored-By: Name <email@example.com>Co-Authored-By: [AI_NAME] ([AI_MODEL]) when AI assists with code generationAIPCC-456: Fix memory leak in authentication service
Resolve memory leak caused by unclosed database connections in the
auth service. This improves server stability under high load.
Fixes AIPCC-456
Co-Authored-By: [AI_NAME] ([AI_MODEL])
Signed-off-by: Jane Developer <jane@example.com>
AIPCC-789: Add user profile management API
Implement REST endpoints for user profile CRUD operations.
Includes validation, error handling, and comprehensive test coverage.
Co-Authored-By: [AI_NAME] ([AI_MODEL])
Signed-off-by: John Developer <john@example.com>
/git:summary – Display repository status and recent commits (read-only)