Git Commit Message Prompt Template
Why This Template
Writing good commit messages is hard. This template helps you get consistent, professional messages using AI.
The Template
Analyze my git repository changes and generate 5 commit message recommendations:
**Instructions:**
1. Run git status to detect new and modified files
2. Run git diff to understand what changed in modified files
3. Read new files to understand their purpose
4. Generate 5 commit messages in numbered list format
**Requirements:**
- Use conventional commit format (feat/fix/refactor/test/docs/chore)
- Focus on business value and user impact
- Keep messages under 72 characters for title
- Consider all changes as one cohesive feature/fix
- Return as numbered list only
**Format each message as:**
type(scope): brief description
**Analysis should include:**
- What new functionality was added
- What existing code was modified and why
- The overall purpose/goal of these changes
How It Works
- Analysis first: AI examines your actual changes
- Multiple options: Get 5 different messages to choose from
- Conventional format: Follows industry standards
- Clear limits: 72 character limit keeps messages readable
Benefits
Consistent Format
All messages follow conventional commit standards.
Context-Aware
AI reads your actual changes, not just file names.
Multiple Options
Pick the message that best captures your intent.
Usage Tips
- Run before committing
- Modify for your team's needs
- Use scope to indicate project area
- Focus on "why" not just "what"
Example Output
1. feat(auth): add user login validation
2. fix(api): implement secure authentication flow
3. feat(security): add login form with validation
4. chore(auth): update user authentication system
5. feat(user): implement login functionality