Safe git integration

From Dadmin88/hermes-profile-packs · View interactive version

Safe git integration is an AI agent skill from the GitHub repository Dadmin88/hermes-profile-packs. Integrate reviewed work into Git safely using exact repository state, scoped staging, coherent commits, branch hygiene, conflict discipline, and remote verification.

How to use this skill

Skill file

Safe Git Integration

Use for staging, committing, rebasing, merging, cherry-picking, pull requests, or release checkpoints.

Procedure

  1. Inspect branch, HEAD, remotes, worktrees, status, staged state, and divergence before changing Git state.
  2. Preserve unrelated work. Never stage by broad pattern when the requested change can be scoped to known paths.
  3. Review the exact diff being committed and verify generated/vendor changes are intentional.
  4. Create coherent commits whose message describes the resulting change, not the editing process.
  5. Before rebasing/merging/cherry-picking, identify local modifications and conflict risk; use a recoverable strategy.
  6. Resolve conflicts by understanding both sides, then rerun relevant validation.
  7. After push/merge, verify the remote branch or PR points at the intended commit and report exact identifiers when useful.

Quality gate

A Git operation is complete only when repository state is understood and no unrelated work was silently lost, staged, or overwritten.

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.