commit-message

Installation
SKILL.md

Git Commit Message

Instructions

When this skill is invoked, follow these steps:

  1. Check if there are staged changes: Run git status
  2. If the output of git status contains Changes not staged for commit, then:
    • Generate an interactive yes/no prompt artifact asking "You have unstaged changes. Would you like me to stage your changes?"
    • Upon confirmation, proceed by adding the staged changes
  3. If the output of git status contains nothing to commit, working tree clean, then:
    • Display response to the user: "No changes found. Please make changes to your files before trying to commit."
    • Stop and exit the skill.
  4. Only proceed if all changes have been staged, and there are no unstaged changes.
  5. Check current branch: Run git branch --show-current to determine the current branch.
    • If the current branch is main or master or dev or development:
      • Inform the user they are committing directly to the mainline branch
      • Generate an interactive yes/no prompt artifact asking "You're on the <branch> branch. Would you like me to create the branch <branch-name> for this commit?" Mention the new branch name.
      • Upon confirmation:
Related skills
Installs
9
GitHub Stars
1
First Seen
Jan 27, 2026