Skip to content
Back to skills

Git Hygiene

ASecurity

Clean commits and branches: Conventional Commits, atomic commits, rebasing, conflict resolution and PR descriptions.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsgit

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add karthikrshet/saarthi --skill git-hygiene --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Git Hygiene?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Git Hygiene
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/karthikrshet-git-hygiene/badge)](https://www.skillsdirectory.com/skills/karthikrshet-git-hygiene)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.