home / skills / toilahuongg / shopify-agents-kit / git-cm
This skill helps you create conventional git commits by staging changes and composing clear messages.
npx playbooks add skill toilahuongg/shopify-agents-kit --skill git-cmReview the files below or copy the command above to add this skill to your agents.
---
name: git-cm
description: Commit changes to git with a descriptive conventional commit message. Use when ready to commit staged or unstaged changes.
argument-hint: "[optional commit message]"
disable-model-invocation: true
allowed-tools: Bash(git:*)
---
# Git Commit
Commit changes with a conventional commit message.
1. Check the current git status to understand what has changed.
- Command: `git status`
2. View the diff if necessary to understand the changes better.
- Command: `git diff --staged` or `git diff`
3. Add all changes to the staging area (unless specific files are requested).
- Command: `git add .`
4. Commit the changes with a descriptive and conventional commit message.
- Command: `git commit -m "<type>: <subject>"`
- Ensure the message follows conventional commit standards (e.g., feat, fix, chore, docs, refactor).
This skill helps you create and apply Git commits using descriptive Conventional Commit messages. It guides you through checking status, reviewing diffs, staging changes, and creating a well-formed commit that follows common commit types like feat, fix, docs, chore, and refactor. Use it when you’re ready to record a logical change in your repository history.
The skill inspects the current repository state by suggesting a git status check and optional diffs to understand what changed. It recommends staging either all changes or specific files, then formats a concise Conventional Commit message and runs the git commit command. The focus is on producing clear, standardized commit messages that improve history readability and automation compatibility.
What if I only want to commit some files?
Stage the specific files with git add <file1> <file2> and then run the commit command with the Conventional Commit message.
Which types should I use?
Common types are feat, fix, docs, chore, refactor. Pick the one that best describes the change’s purpose.
How long should the subject be?
Keep it short and imperative, ideally under 50 characters, with additional details in the body if needed.