commit
Commit
Create a git commit with a minimal commit message. Do not use subagents. Follow these steps in order.
1. Gather context
Run the bundled script in a single Bash call (the skill's base directory is shown when the skill is invoked):
bash <skill-base-dir>/scripts/gather-context.sh
It prints the branch, a JIRA key candidate extracted from the branch name, git status, the last 5 commits (to match the repo's commit style), and the staged/unstaged diffs (truncated past 400 lines — set MAX_DIFF_LINES to raise).
Treat the JIRA key as a candidate, not a fact: reject it if it's clearly not a ticket reference (e.g. feature/uc-1-gtfs-import yields UC-1, which is a use-case number, not an issue). If the key is none or rejected, scan the most recent ~10 user messages in this conversation for a [A-Z]+-\d+ mention and use the most recent one. If still nothing, proceed without a prefix.