git-best-practices
Installation
SKILL.md
Git Best Practices Skill
This skill provides comprehensive guidelines for proper git workflow management, with a focus on .gitignore setup and preventing accidental commits of unwanted files.
.gitignore Management
Critical: Always Check Before Initializing Package Managers
BEFORE initializing npm, pip, poetry, cargo, or any other package manager:
- Check if
.gitignoreexists: Usels -la .gitignoreor check via file system - If
.gitignoredoesn't exist: Create it with appropriate patterns for your project type - If
.gitignoreexists: Verify it includes the necessary patterns for your package manager - After creating/updating
.gitignore: Verify it's working withgit statusto ensure ignored files don't appear