Create a conventional commit from current workspace changes. Use when the user asks to run $commit, asks to commit changes, or asks for a commit message from the current diff.
Create a conventional commit from current workspace changes. Use when the user asks to run $commit, asks to commit changes, or asks for a commit message from the current diff.
metadata
{"short-description":"Minimal commit workflow"}
Commit
Use this skill for a small, safe commit workflow. If the user only wants a commit message from the
current diff, generate the message and stop before committing.
Workflow
Inspect state:
git status --short
If there are no changes, stop and report.
Determine scope:
If the user included --all, stage all changes with git add -A.
Otherwise, treat the currently staged changes as the commit candidate.
If both staged and unstaged changes exist, call out that only staged changes will be
committed unless --all was requested.