Git Commit Skill for dbt-icebreaker
Purpose
Commit staged or unstaged changes to the dbt-icebreaker repository, ensuring the correct GitHub identity (tysondoberneck) and remote (https://github.com/tysondoberneck/dbt-icebreaker.git) are used.
Pre-flight Checks (MANDATORY)
Before making any commit, you MUST verify all of the following. If any check fails, STOP and inform the user.
- •Working directory must be
/Users/tysondoberneck/codebase/dbt-icebreaker. - •Current branch – Run
git branch --show-currentand confirm the branch belongs to thedbt-icebreakerproject. Do NOT commit onmainordevelopunless the user explicitly approves. - •Git identity – Run
git config user.nameandgit config user.email. They must be:- •
user.name=tysondoberneck - •
user.email=tysondoberneck@users.noreply.github.comIf they differ, set them for this repo before committing:
bashgit config user.name "tysondoberneck" git config user.email "tysondoberneck@users.noreply.github.com"
- •
- •Remote – Run
git remote -vand confirm origin points tohttps://github.com/tysondoberneck/dbt-icebreaker.git.
Commit Workflow
- •Show status – Run
git statusand present the summary to the user. - •Stage files – Ask the user which files to stage, or stage all with
git add -Aif they approve. - •Compose commit message – Suggest a conventional-commit-style message (e.g.,
feat:,fix:,chore:,docs:). Let the user confirm or edit the message. - •Commit – Run:
bash
git commit -m "<approved message>"
- •Push – Ask the user if they want to push. If yes:
If the branch has no upstream yet:bash
git push origin <current-branch>
bashgit push -u origin <current-branch>
Rules
[!CAUTION] NEVER create a Pull Request or merge into any branch without explicit user permission (per user rule #5).
- •Always show the user the exact
gitcommands you intend to run before executing them. - •If there are merge conflicts or push rejections, stop and inform the user rather than attempting an automatic resolution.
- •Never force-push (
--forceor--force-with-lease) without explicit approval.