commit-objectively
Installation
SKILL.md
Commit Objectively
Generate a commit message from the diff alone, then execute the commit.
The message comes from the diff — not from what the user said, not from what you infer. This keeps the commit history accurate and reviewable without needing to remember conversation context.
<skill_directory> is the parent directory of this SKILL.md.
How it works
-
Gather context: Run
<skill_dir>/scripts/ctx.cmd(Windows) or<skill_dir>/scripts/ctx.sh(Unix) to fetch upstream and see recent commit style. -
Determine diff base: Use
HEAD~1by default, or the branch the user specifies (e.g.,origin/main,develop).