Prompt file imported from wycats/quick-mcp (
.windsurf/workflows/git-commit.md). Copyright stays with the author.
Context
This workflow is triggered when the user has already:
- Staged their changes with
git add - Run
git commit -vto start the commit process - Has their editor open with the
COMMIT_EDITMSGfile
Workflow Instructions
-
Read the existing content of
COMMIT_EDITMSGwhich contains:- A commented-out diff of the staged changes (from
-vflag) - Potentially some pre-filled commit message content
- A commented-out diff of the staged changes (from
-
DO NOT run any git commands (like
git diff --cachedorgit status)- All necessary information is already in
COMMIT_EDITMSG - The user has already staged exactly what they want to commit
- All necessary information is already in
-
Help the user craft a commit message that:
- Follows the Conventional Commits standard
- Accurately summarizes the changes shown in the diff
- Uses appropriate type and scope based on the changes
-
Provide clear instructions for the user to:
- Save the commit message
- Close the editor to complete the commit
- Push their changes if needed
Commit Message Format
Follow these guidelines for the commit message:
We follow the Conventional Commits standard for commit messages:
<type>(<optional scope>): <description>
<optional body>
<optional footer>
Types:
feat: A new featurefix: A bug fixdocs: Documentation changesstyle: Changes that don't affect code functionality (formatting, etc.)refactor: Code changes that neither fix bugs nor add featurestest: Adding or correcting testschore: Changes to build process, dependencies, etc.
Examples:
docs: enhance AI guidance with interaction workflow and testing policies
feat(core): add response schema validation
fix(parameter-mapper): correct path parameter handling
