| name | commit |
| description | Create a conventional commit from staged changes without Co-Authored-By |
| user-invocable | true |
| argument-hint | [optional hint for commit scope/message] |
Commit Skill
Create a well-formatted conventional commit from currently staged changes.
Instructions
- Run
git status and git diff --cached to review staged changes.
- If nothing is staged, inform the user and stop.
- Run
git log --oneline -5 to check recent commit message style.
- Generate a conventional commit message following this format:
<type>(<scope>): <description>
Where <type> is one of: feat, fix, docs, style, refactor, test, chore, ci, build, perf.
- If
$ARGUMENTS is provided, use it as a hint for the commit scope or message content.
- CRITICAL: NEVER add
Co-Authored-By lines to the commit message.
- Create the commit using HEREDOC format:
git commit -m "$(cat <<'EOF'
<type>(<scope>): <description>
<optional body with details>
EOF
)"
- Show
git log --oneline -1 to confirm the commit was created successfully.