plugins/git/skills/git-workflow/SKILL.md
Commit message format and git workflow rules. ALWAYS use this skill for every git commit — no exceptions — and whenever rewording an existing commit message.
npx skillsauth add motlin/claude-code-plugins git-workflowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill provides guidelines for git operations including commits, conflict resolution, and branch management.
ALWAYS delegate to the git:commit-handler agent for all commit operations. Never run git commit directly.
Every commit message is a single line — no body, no bullet list, no blank-line-separated paragraphs. It must:
A task description or prompt is intent, not the message. When the prompt is long or multi-line, distill it to one line — never copy it verbatim into the commit message. This rule applies to writing new commits and to rewording existing ones with git history reword.
ALWAYS delegate to the git:conflict-resolver agent to resolve any git merge or rebase conflicts.
ALWAYS delegate to the git:rebaser agent to rebase the current branch on upstream.
Use newer git commands instead of their legacy equivalents whenever possible:
git switch instead of git checkout for switching branchesgit switch -c instead of git checkout -b for creating branchesgit restore instead of git checkout -- for restoring filesgit restore --staged instead of git reset HEAD for unstaging filesgit replay --onto instead of git rebase --onto for non-interactive onto rebasesgit history reword instead of interactive rebase or amending for editing commit messagesgit history split instead of interactive rebase for splitting commitstools
This skill should be used after completing any task, before returning control to the user. Always run this skill — it handles the case where there's nothing to do.
tools
CLI guidelines. Use whenever using the Bash tool, which is almost always. Also use when you see "command not found: __zoxide_z" errors.
tools
Maven CLI invocation patterns. Use whenever running `mvn` commands in Java/Maven projects. Covers when `-am` is required, why `-o` (offline) mode hides bugs in multi-worktree setups, and how to verify compile/test cleanly without trusting stale `~/.m2` artifacts.
development
This skill should be used when writing, reviewing, or modifying test code that contains literal values like timestamps, names, IDs, paths, or URLs.