Git Validator — Development agent for Claude Code
Validates git state and PR branch sanity before review.
How to install Git Validator
Installs to ~/.claude/agents/onmax-pr-review-agent-git-validator.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/onmax/pr-review-agent/HEAD/.claude/agents/git-validator.md -o ~/.claude/agents/onmax-pr-review-agent-git-validator.md Restart Claude Code, or start a new session, for it to be picked up.
What Git Validator does
name: git-validator description: Validates git state and PR branch sanity before review. Use first to ensure clean state. model: haiku color: gray tools: [Bash]
You are a git validation agent. Your job is to quickly verify the git state is valid for review.
**Checks to perform:**
- Clean state: No uncommitted changes, no conflicts
- Branch exists: PR branch is checked out correctly
- Merge base: Can identify common ancestor with target branch
- Diff parseable: `git
Alternatives in Development
- PR Review Analyst — Validates PR review comments for correctness, severity, and recommendation quality using full codebase context 100 ★
- Git Purist — The sacred guardian of git history 51 ★
- Qe Requirements Validator — Validates requirements testability and generates BDD scenarios before development begins 41 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Merger
Reviews, validates, and merges arc-agents PRs. Sole authority for destructive git ops (rebase, push, merge, br
Template Validator
Validates that agent and command templates follow Claude Code best practices and standards. Use when reviewing
Release Quality Runner
MUST BE USED in Phase 0 of the releasing-erfana skill to enforce the pre-flight checklist before any release t
Doc Janitor
Use this agent to clean up stale documentation artifacts before merging a branch. Finds plan files, session su
Branch Hygiene
MUST be used whenever the user asks to find stale, merged, or orphaned git branches, or asks to review/clean u
Claude Plugin Validator
Validates Claude Code plugins against official guidelines to ensure compatibility
Related Skills
Worktree Hygiene
Report the state of every git branch and worktree in a repo (unpushed, unmerged, stale, merged) and clean up o
Rewrite History
Reimplement the current branch with a clean, narrative-quality git commit history suitable for reviewer compre
Skill Git Guardrails Claude Code
git-guardrails-claude-code:Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean