# Git Hygiene

> Use before committing, reviewing, or summarizing local changes in a shared repository.

- Skill: `davidondrej/git-hygiene` (Agent Skill)
- Install (CLI): `npx skillmds@latest add davidondrej/git-hygiene`
- Raw SKILL.md: https://api.skillmd.com/api/skills/davidondrej/git-hygiene/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: David Ondrej (https://skillmd.com/u/davidondrej)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/davidondrej/git-hygiene

---


# Git Hygiene

Use this skill to inspect local changes without disturbing them.

## Steps

1. Run `git status --short`.
2. Review diffs for files you changed.
3. Do not stage unrelated files.
4. Do not rewrite history unless explicitly requested.
5. Do not push without explicit permission.
6. Summarize changed files and validation.

## Notes

If the folder is not a git repository, say so and continue with filesystem checks.


