subagent · Git & Code Review
Commit Guardian
by davila7
Pre-commit verification agent that runs 10 automated checks before a git commit and blocks it when one fails. Use before committing to verify staged changes, security, Conventional Commits format, build and tests.
- Claude Code
- ★ 34k on GitHub
- Updated 2026-11-18
- MIT
Calyban is a free desktop app. It checks Commit Guardian for red flags before installing, lets you choose the agent and folder, and undoes it in one click.
Install Commit Guardian manually
Prefer the terminal? This does the same thing as Calyban's install.
Claude Code
mkdir -p ~/.claude/agents
curl -fsSL https://raw.githubusercontent.com/davila7/claude-code-templates/7c6a25725518f5f3d975adfc5d901006e267fbd8/cli-tool/components/agents/git/commit-guardian.md -o ~/.claude/agents/commit-guardian.mdStart a new Claude Code session afterwards so it picks up the change.
Similar subagents
Commit Revieweraffaan-mReviews a staged diff and drafts a Conventional Commits-compliant message matching the repository's actual history norms. Use before committing, or when asked to write or check a commit message.Refactor Cleaneraffaan-mDead code cleanup and consolidation specialist. Use PROACTIVELY for removing unused code, duplicates, and refactoring. Runs analysis tools (knip, depcheck, ts-prune) to identify dead code and safely removes it.Comment Analyzeranthropics ✓Use this agent when you need to analyze code comments for accuracy, completeness, and long-term maintainability. This includes (1) after generating large documentation comments or docstrings, (2) before finalizing a…Silent Failure Hunteranthropics ✓Use this agent when reviewing code changes in a pull request to identify silent failures, inadequate error handling, and inappropriate fallback behavior. This agent should be invoked proactively after completing a…Code Refactoring Legacy ModernizerwshobsonRefactor legacy codebases, migrate outdated frameworks, and implement gradual modernization. Handles technical debt, dependency updates, and backward compatibility. Use PROACTIVELY for legacy system updates, framework…Dependency Management Legacy ModernizerwshobsonRefactor legacy codebases, migrate outdated frameworks, and implement gradual modernization. Handles technical debt, dependency updates, and backward compatibility. Use PROACTIVELY for legacy system updates, framework…
Guides
Listed in the public Calyban catalog. Commit Guardian is made by davila7, not Calyban. Inclusion isn't an endorsement and safety checks aren't a guarantee.