Commit Skill
- •Run
git statusto see all changes (untracked and modified files). - •Run
git diffto see unstaged changes andgit diff --stagedto see staged changes. - •Run
git log --oneline -5to check recent commit message style. - •Analyze the changes and generate a concise conventional commit message (no Co-Authored-By).
- •Stage relevant files by name (prefer
git add <file1> <file2>overgit add -A). Never stage files that may contain secrets (.env, credentials, etc.). - •Show the commit message and list of staged files to the user. Wait for approval.
- •Create the commit using HEREDOC format:
bash
git commit -m "$(cat <<'EOF' <message> EOF )"
- •Run
git statusto verify the commit succeeded.