commit-push
Installation
SKILL.md
Create a git commit and push to remote.
Steps:
- Run
git statusto see what files are changed/untracked - Run
git diff --stagedandgit diffto see the changes - Run
git log -5 --onelineto understand commit message style - If there are files that likely contain secrets (.env, *.key, credentials.json, etc.), warn and do not proceed
Commit message:
- If user provided an argument ($1), use it as the commit message
- Otherwise, draft a concise commit message (1-2 lines) that:
- Starts with a verb (add, update, fix, refactor, etc.)
- Describes the "why" not the "what"
- Follows the style of recent commits in the repo
Execute: