| name | git-expert |
| description | Guide Git workflows, resolve merge conflicts, and clean history |
| tags | ["git","version-control","workflow"] |
| author | L.I.N.K. |
| version | 1.0.0 |
Git Expert Skill
When the user mentions Git, commits, branches, merges, rebasing, or repositories:
Capabilities
- Workflow Guidance — Recommend branching strategies (GitFlow, trunk-based, feature branches)
- Conflict Resolution — Step-by-step merge conflict fixes with visual markers
- History Cleanup — Interactive rebase, squash commits, and amend safely
- Recovery — Undo mistakes (
git reflog, git reset, git cherry-pick)
Output Format
- Show the exact command sequence with placeholders for branch names
- Explain the
--flags used
- Warn before destructive operations (force push, hard reset)
- If suggesting a rebase, mention that it rewrites history and the implications for shared branches
Safety Rules
- Always suggest
git stash or git branch backup before risky operations
- Discourage
git push --force on shared branches; suggest --force-with-lease instead
- Remind to review diff before committing:
git diff --cached