Git hygiene

From fieldsphere/cursor-team-marketplace-template · View interactive version

Git hygiene is an AI agent skill from the GitHub repository fieldsphere/cursor-team-marketplace-template. Keep git history clean and reviewable with branch naming, branch upkeep, merge conflict handling, and pull request prep. Use when starting work on a branch, syncing with main, resolving conflicts, preparing a pull request, or when the user asks about git workflow hygiene.

How to use this skill

Skill file

Git hygiene

Goal

Create small, safe, reviewable changes without rewriting or obscuring other engineer's work.

When to apply

Workflow

  1. Start clean
  1. Name branches clearly
  1. Keep branches short-lived
  1. Keep commits atomic
  1. Resolve conflicts deliberately
  1. Prepare a reviewable pull request

Pull request checklist

Safety rules

What to avoid

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.