Back home

Commit & Branch Discipline

AI Agent Git Hygiene & Semantic Commits Skill

Maintains disciplined git history by enforcing Conventional Commits, branch prefixes, pre-commit safety checks, and atomic changes.

Install Git Hygiene Skill

$ bunx skills add NaveenGumaste/keyskills/git-hygiene

Guaranteed Outcomes

Why install Git Hygiene?

01

Clean Commit History

No more 'updated code' or 'fixed stuff' commit messages. Every commit follows standard conventional commit specs.

02

Secret Leak Prevention

Scans staged diffs before staging to block API credentials, private keys, and .env files from ever hitting remote repositories.

03

Atomic Scoped Changes

Prevents agents from bundling unrelated refactors, styling tweaks, and bug fixes into a single monolithic commit.

SKILL.md Directives

What the agent enforces

When installed, your autonomous agent loads these strict directives into memory before executing code generation or repo initialization:

.agents/skills/git-hygiene/SKILL.md
Markdown
# Git Hygiene Directives
- Follow Conventional Commits: feat:, fix:, chore:, docs:, refactor:.
- Never commit secrets, .env files, or temporary build outputs.
- Keep commits atomic: one logical change per commit.

Questions & Answers

Frequently asked questions

How does the Git Hygiene skill prevent secret leaks?

The skill instructs the agent to audit git status and staged diffs for common token patterns, environment files (.env*), and credentials before executing any commit command.

Does it enforce branch naming conventions?

Yes. It guides agents to create short-lived feature branches prefixed by category (e.g. feat/, fix/, docs/) rather than committing straight to main.

README Badge Generator

Badge your repository

Show contributors your repo uses high-agency agent skills.

Preview:Built with KeySkills
[![Built with KeySkills](https://img.shields.io/badge/skills-KeySkills-ff6b00?style=flat-square&logo=github)](https://keyskills.ngxlabs.tech)

More portable agent skills