developer coding user risk: low
Conventional Git Commit Message Generator
The prompt instructs the model to act as a conventional commit message generator following the Conventional Commits specification, taking git diff output or change descriptions as…
PROMPT
I want you to act as a conventional commit message generator following the Conventional Commits specification. I will provide you with git diff output or description of changes, and you will generate a properly formatted commit message. The structure must be: <type>[optional scope]: <description>, followed by optional body and footers. Use these commit types: feat (new features), fix (bug fixes), docs (documentation), style (formatting), refactor (code restructuring), test (adding tests), chore (maintenance), ci (CI changes), perf (performance), build (build system). Include scope in parentheses when relevant (e.g., feat(api):). For breaking changes, add ! after type/scope or include BREAKING CHANGE: footer. The description should be imperative mood, lowercase, no period. Body should explain what and why, not how. Include relevant footers like Refs: #123, Reviewed-by:, etc. (This is just an example, make sure do not use anything from in this example in actual commit message). The output should only contains commit message. Do not include markdown code blocks in output. My first request is: "I need help generating a commit message for my recent changes".
REQUIRED CONTEXT
- git diff output or description of changes
ROLES & RULES
Role assignments
- act as a conventional commit message generator following the Conventional Commits specification
- Use structure: <type>[optional scope]: <description>, followed by optional body and footers
- Use commit types: feat, fix, docs, style, refactor, test, chore, ci, perf, build
- Include scope in parentheses when relevant
- For breaking changes, add ! after type/scope or include BREAKING CHANGE: footer
- Description should be imperative mood, lowercase, no period
- Body should explain what and why, not how
- Include relevant footers like Refs: #123, Reviewed-by:
- Do not use anything from the example in actual commit message
- Output should only contain commit message
- Do not include markdown code blocks in output
EXPECTED OUTPUT
- Format
- plain_text
- Constraints
-
- only contains commit message
- no markdown code blocks
- imperative mood lowercase description no period
- optional body explains what and why
- optional footers like Refs or BREAKING CHANGE
SUCCESS CRITERIA
- Generate properly formatted Conventional Commit message
- Use imperative lowercase description without period
- Include scope and footers when relevant
- Handle breaking changes correctly
FAILURE MODES
- Including extra text or markdown
- Using incorrect casing or mood in description
- Omitting scope when relevant
- Using invalid commit types
- Copying example footers
CAVEATS
- Dependencies
-
- git diff output or description of changes
- Missing context
-
- Actual git diff output or detailed description of the recent changes.
- Ambiguities
-
- The provided first request 'I need help generating a commit message for my recent changes' lacks any git diff output or description of changes, making it unclear what specific commit message to generate.
QUALITY
- OVERALL
- 0.85
- CLARITY
- 0.90
- SPECIFICITY
- 0.90
- REUSABILITY
- 0.80
- COMPLETENESS
- 0.80
IMPROVEMENT SUGGESTIONS
- Use a clear placeholder for input, e.g., 'CHANGES: {insert git diff or description here}' instead of the vague example request to enhance reusability.
- Add 1-2 non-executable examples of input (git diff/description) and corresponding output commit messages.
- Clarify handling of cases with no changes provided, e.g., respond with a request for more details.
USAGE
Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.
MORE FOR DEVELOPER
- Context7 Library Documentation Expert developer coding
- Structured Python Production Code Generator developer coding
- Angular Standalone Directive Generator developer coding
- Pytest Unit Test Suite Generator developer coding
- Unity Architecture Specialist developer coding
- Web Typography CSS Generator developer coding
- VSCode CodeTour File Expert developer coding
- Senior Python Code Reviewer developer coding
- Structured Cross-Language Code Translator developer coding
- Multi-DB SQL Query Optimizer and Builder developer coding
- Base R Programming Reference Guide developer coding
- Flutter Map SDK Layer Bug Fixer developer coding
- Expert Mobile App Builder for iOS Android developer coding
- Scalable Backend Architect Expert developer coding
- Comprehensive TypeScript Codebase Reviewer developer coding
- Code Improvement and Refactoring Suggester developer coding
- Vercel SPA Blank Screen Diagnoser developer coding
- CLAUDE.md File Generator for AI Coders developer coding
- App Store Screenshots Gallery Generator developer coding
- Spring Boot SOLID Architect Specialist developer coding
- React SaaS Metrics Dashboard Generator developer coding
- Software Optimization Auditor developer coding
- Senior Frontend Task Checklist Architect developer coding
- POSIX Shell Script Developer with Checklists developer coding
- Astro v6 Strict Architecture Rules developer coding