An automated git commit pipeline where Claude Code proactively runs linters, fixes formatting, and handles pre-commit hook failures before they block commits — eliminating the recurring `--no-verify` workaround that bypasses quality checks. ## The Problem With git as the #1 goal (dozens of sessions, thousands of commits), small per-commit friction compounds: pre-existing lint errors fail commit hooks after Claude makes valid changes, and `--no-verify` bypasses checks entirely. ## The Self-Healing Pipeline A commit protocol in CLAUDE.md that makes Claude a git guardian: 1. Pre-commit analysis: `git diff --cached --name-only` 2. Proactive lint fixing: `rubocop -A`, `npx eslint --fix` on changed files 3. Stage fixes 4. Attempt commit with hooks enabled 5. Intelligent failure handling: is the error in files I touched, or pre-existing? 6. Explicit escalation: list pre-existing issues, ask before `--no-verify` 7. Never silently skip hooks The same principle generalizes to CI/CD (catch failures early, auto-fix where possible, escalate clearly) and to vault organization (auto-fix formatting, escalate ambiguous placement). ## Related Concepts - [[Delegation-Heavy Automation Pattern]] — the workflow this optimizes - [[Scope Misinterpretation as Trust Boundary]] — why "never silently skip" matters - [[Skill Chaining for Workflow Automation]] *Source: the author's own Claude Code usage telemetry, published in "Governing Delegation: Using Architecture to Stop AI Scope Creep" (link pending publication)*