Commit Message Skill
Generate a commit message for staged files and execute the commit.
Commit Procedure
Read staged file differences using
git diff --staged.Check the current branch using
git branch -a.If on
mainbranch or if the branch name does not reflect the staged changes, create and switch to a new branch:git branch <new-branch-name> git checkout <new-branch-name>
Review the last 3 commit messages using
git log -n 3to understand the project's commit style.Generate a commit message based on:
- The staged changes
- The observed commit message style
Execute the commit using
git commitin a Windows 11 PowerShell environment.
Rules
- Only commit staged files. Do not include unstaged changes.
- Execute each git command separately. Do not chain commands.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.