git-guardrails

Installation
SKILL.md

Git Guardrails

Always-on safety constraints for any git operation. These rules apply universally — override only when a repository's own instructions explicitly say otherwise.

Staging & Committing

NEVER use git add . or git add -A. Always explicitly list the files to stage:

git add path/to/file1 path/to/file2

This prevents accidentally committing unrelated files (IDE settings, local configs, build artifacts, secrets).

Commit incrementally — after each logical step, not in one giant batch. Small, focused commits are easier to review, bisect, and revert.

Pre-Commit Checklist

Before EVERY git commit command, verify ALL of the following:

Related skills
Installs
11
GitHub Stars
1
First Seen
Apr 7, 2026