Pre Commit — Git skill for Claude Code
Run pre-commit validation before pushing GarraRUST changes.
How to install Pre Commit
Installs to ~/.claude/skills/michelbr84-garrarust-pre-commit/SKILL.md
mkdir -p ~/.claude/skills/michelbr84-garrarust-pre-commit && curl -fsSL https://raw.githubusercontent.com/michelbr84/GarraRUST/HEAD/skills/pre-commit.md -o ~/.claude/skills/michelbr84-garrarust-pre-commit/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Pre Commit does
Run pre-commit validation before pushing GarraRUST changes.
Steps:
git diff --cached --name-only— lista arquivos staged- Segredos — busca por padrões perigosos nos arquivos staged:
GARRAIA_JWT_SECRET,ANTHROPIC_API_KEY,OPENAI_API_KEY,.envcommitado- Se encontrar: BLOQUEIO — desstagie antes de continuar
- Debug artifacts — busca por
dbg!,println!,console.log,print(em código Rust/Dart staged - Arquivos grandes — avisa se algum arquivo staged >
Alternatives in Git
- Gen Commit Msg — Generate intelligent commit messages based on staged changes 5.7k ★
- Linting — Run rm -rf .mypy_cache && pre-commit run --all-files and fix the issues 3.1k ★
- Prepare Commit — Comment out inappropriate logging before commit 1.6k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Pre PR
Run complete validation workflow before creating PR
V Triage
Classify one change request before any work starts — resolve, score, and write plus COMMIT the pre-eval triage
Spine Plan
Plan-first spine population — a Socratic per-unit dialogue that authors a unit's contract (purpose/pre/post) u
Git Sanitize
Git Sanitize - Scan for Sensitive Info Before Pushing
Check PR
Pre-PR validation checklist - ensures code is ready for pull request.
Agenfk Release Beta
Commit local changes, push to remote, and create a GitHub beta/pre-release
Related Agents
Pre Commit
Run the full quality pipeline before committing — typecheck, tests, build, and size measurement. Use before an
Pre Commit Reviewer
Crosswalker pre-commit alignment auditor. Reviews staged changes against project conventions BEFORE commit — f
Git Ops
Git operations agent for committing, pushing, and opening PRs. Use when asked to commit changes, push to remot