Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Git Hygiene?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-git-hygiene)
---
name: git-hygiene
description: "Clean commits and branches: Conventional Commits, atomic commits, rebasing, conflict resolution and PR descriptions."
tags: [core, git]
---
# Git Hygiene
## When to use
- Committing work
- Preparing a PR
- Resolving conflicts
## Procedure
1. Stage related changes only (git add -p)
2. Write type(scope): summary under 72 chars
3. Explain why in the body
4. Rebase onto the latest target branch
5. Resolve conflicts by understanding both sides, then re-run tests
6. Open a PR with why/what/how-tested
## Example
```text
feat(payments): verify Razorpay webhook signatures on raw body
Parsing JSON before verification changed whitespace and broke HMAC checks.
Closes #142
```
## Checklist
- [ ] Each commit builds
- [ ] No secrets or generated files
- [ ] Branch up to date
## Anti-patterns
- WIP commits on shared branches
- Force-pushing others' work
- Mixing refactors with features