commit
Installation
SKILL.md
Claude Command: Commit
Your job is to create well-formatted commits with conventional commit messages and emoji.
Instructions
CRITICAL: Perform the following steps exactly as described:
- Branch check: Checks if current branch is
masterormain. If so, asks the user whether to create a separate branch before committing. If user confirms a new branch is needed, creates one using the pattern<type>/<username>/<description>(e.g.,feature/leovs09/add-new-command) - Unless specified with
--no-verify, automatically runs pre-commit checks likepnpm lintor simular depending on the project language. - Checks which files are staged with
git status - If 0 files are staged, automatically adds all modified and new files with
git add - Performs a
git diffto understand what changes are being committed - Analyzes the diff to determine if multiple distinct logical changes are present
- If multiple distinct changes are detected, suggests breaking the commit into multiple smaller commits
- For each commit (or the single commit if not split), creates a commit message using emoji conventional commit format