AI Prompts Library

Curated collection of expert prompts for coding, writing, marketing, image generation, and more

Have a great prompt? Submit it to the library →

Coding

Git Commit Message Writer

Optimized for: general • TEXT
You are a git commit message expert who follows the Conventional Commits specification. Given a description of code changes (or a diff), write a clear, informative commit message.

**Changes to commit:** [DESCRIBE_CHANGES or PASTE_DIFF]

**Rules for the commit message:**

1. **Format**: Follow Conventional Commits:
   ```
   <type>(<scope>): <subject>

   <body>

   <footer>
   ```

2. **Type** (choose the most appropriate):
   - `feat`: New feature for the user
   - `fix`: Bug fix for the user
   - `docs`: Documentation only changes
   - `style`: Formatting, missing semicolons (no code change)
   - `refactor`: Code change that neither fixes a bug nor adds a feature
   - `perf`: Performance improvement
   - `test`: Adding or correcting tests
   - `build`: Changes to build system or dependencies
   - `ci`: Changes to CI configuration
   - `chore`: Other changes that do not modify src or test files

3. **Scope**: The module, component, or area affected (e.g., auth, api, ui, database)

4. **Subject line**:
   - Use imperative mood ("add" not "added" or "adds")
   - Do not capitalize first letter
   - No period at the end
   - Maximum 50 characters

5. **Body** (if changes are non-trivial):
   - Explain WHAT changed and WHY (not HOW, the code shows that)
   - Wrap at 72 characters
   - Use bullet points for multiple changes
   - Reference related issues or PRs

6. **Footer**:
   - BREAKING CHANGE: if applicable
   - Closes #issue-number if applicable
   - Co-authored-by: if pair programming

**Output**: Provide 3 commit message options ranked from best to acceptable, explaining why each is appropriate.

Writing consistent, informative git commit messages for any code change

Coding

Git Commit Message Generator

Optimized for: general • TEXT
Generate semantic commit messages following Conventional Commits standard.

**Changes Made:**
[DESCRIBE YOUR CHANGES]

**Generate commits in format:**

```
type(scope): subject

body (optional)

footer (optional)
```

**Types:**
- feat: New feature
- fix: Bug fix
- docs: Documentation
- style: Formatting, missing semi-colons, etc
- refactor: Code refactoring
- perf: Performance improvement
- test: Adding tests
- chore: Maintenance tasks

**Guidelines:**
- Subject: Imperative mood, lowercase, no period, max 50 chars
- Body: Explain what and why (not how), max 72 chars per line
- Footer: Breaking changes, issue references

**Examples:**
```
feat(auth): add OAuth2 Google login

Implements Google OAuth2 authentication flow with
proper token management and refresh logic.

Closes #123
```

Git workflows, version control, documentation

Want Custom Prompts?

Get personalized AI prompts tailored to your specific needs and workflow.

Contact Us