commit-workflow
Installation
SKILL.md
Commit Workflow
Use this skill to turn local repository changes into a clean semantic commit, and optionally push or open a pull request.
Workflow
- Inspect the current branch, git status, unstaged/staged diff, and recent commits.
- Decide whether the change should be one commit or split into multiple focused commits.
- Stage only the files that belong to the requested change.
- Use semantic commit format:
type(scope): description. - When creating a pull request, create a feature branch first if the current branch is the default branch.
- Use the repo's existing pull request templates when present.
Safety
- Do not include unrelated dirty work in the commit.
- Do not rewrite history unless the user explicitly asks.
- Prefer
--force-with-leaseover force push when a forced update is explicitly required.