- Home
- Skills
- Yuniorglez
- Gemini Elite Core
- Commit Sentinel
commit-sentinel_skill
- Python
7
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill yuniorglez/gemini-elite-core --skill commit-sentinel- SKILL.md4.2 KB
Overview
This skill is Commit Sentinel, the guardian of repository integrity and clear history. It enforces a 4-step validation protocol, encourages surgical history sculpting, and automates hooks to prevent noisy, insecure, or untraceable commits. Designed for high-velocity teams and AI-generated codeflows, it prepares repositories for Git 3.0 and forensic debugging.
How this skill works
Commit Sentinel runs a deterministic pre-commit flow that inspects staged changes, performs a strict type audit, runs linters, and verifies logical atomicity before allowing a commit. It integrates interactive rebase patterns and automated bisect helpers for post-facto investigations. The skill also includes checks for modern Git requirements (SHA-256 readiness) and orchestrates automated hooks to catch secrets, debug artifacts, and anti-patterns.
When to use it
- Before every commit in active feature branches
- When onboarding AI/code-generation agents into the pipeline
- Prior to pushing to shared or main branches
- During regression hunting to speed up root-cause discovery
- While preparing a repo for migration to Git 3.0 (SHA-256)
Best practices
- Run the 4-step validation: surgical diff review, strict type audit, linter enforcement, and ensure logical atomicity
- Adopt Conventional Commits with concise scopes and bodies for machine and human forensics
- Keep local history sculpted via interactive rebase; avoid pushing rebased public branches
- Split large changes into atomic commits using git add -p to preserve bisectability
- Never bypass hooks with --no-verify; fix the underlying failures instead
Example use cases
- Enforce pre-commit checks across an AI-assisted CI to prevent history pollution and debug artifacts from entering main
- Use automated git bisect run to quickly find regressions introduced by generated code
- Clean and squash local micro-fix commits before pushing a feature branch to maintain readable history
- Validate repository readiness for Git 3.0 migration by flagging SHA-1 assumptions and secret-detection gaps
- Automate push protection to block commits that contain console logs, API keys, or TODO debug markers
FAQ
It is a mandatory sequence: review staged diffs for debug artifacts, run a strict type check (no type errors), execute the linter, and confirm each commit is logically atomic.
How do I recover if I accidentally pushed a messy commit?
Use interactive rebase on local branches before pushing; for public history fixes coordinate a revert or a documented corrective commit—avoid rewriting public history without team agreement.