Git patterns for Conventional Commits, rebase, reflog recovery, bisect, worktrees, and stash. Load before any commit, rebase, or other git operation, however small.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Git Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ku5ic-git-patterns)
---
name: git-patterns
description: Git patterns for Conventional Commits, rebase, reflog recovery, bisect, worktrees, and stash. Load before any commit, rebase, or other git operation, however small.
---
# Git Patterns
Default assumption: Git 2.56 and Conventional Commits 1.0.0, per the Git release notes and the Conventional Commits specification.
A row applies when `git --version` is at least its version. A 3.0 row is scheduled and applies once 3.0 ships.
## Reference files
Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.
| Before | Read |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| Upgrading git, or scripting a git command | [reference/upgrades.md](reference/upgrades.md) |
| Any commit, rebase, push, reset, stash, or history rewrite, or reading history across a path | [reference/anti-patterns.md](reference/anti-patterns.md) |
| Writing a commit message, fixing up or testing commits in a rebase, force-pushing your own branch, finding the ignore rule for a path, recovering lost commits, bisecting, or using a worktree | [reference/practices.md](reference/practices.md) |
| Configuring commitlint, gitleaks, or git's own safety settings | [reference/tooling.md](reference/tooling.md) |