writing-and-creating-git-commits
Installation
SKILL.md
Contains Shell Commands
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Create a semantic commit to accomodate user request.
Soft Validation
If any of these checks fail, check with the user before proceeding.
- WARN_ON_DEFAULTBRANCH: !
[$(git branch --show-current) = $(gh repo view --json defaultBranchRef --jq .defaultBranchRef.name)] && echo 1 || echo 0should equal 0 - WARN_MERGECONFLICTS: !
git ls-files -u | wc -lshould equal 0 - WARN_INVALIDBRANCHNAME: !
git branch --show-currentshould match^(feat|fix|docs|style|refactor|perf|test|chore)\/[a-z0-9\-]+$(if not on default branch)
Hard Validation
If any of these checks fail, fix the issue before proceeding. or Exit if human intervention is required.
- on default branch, but it needs to be fastforwarded from remote.
- uncommitted merge conflicts detected. Please resolve them before committing.