pre-commit-fixer

Diagnose and fix pre-commit hook failures with user confirmation before re-committing.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/jasonmichaelbell78-creator/JASON-OS --skill pre-commit-fixer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pre-commit-fixer
Source: https://github.com/jasonmichaelbell78-creator/JASON-OS/tree/main/.claude/skills/pre-commit-fixer
Command: npx skills add https://github.com/jasonmichaelbell78-creator/JASON-OS --skill pre-commit-fixer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Diagnose and fix pre-commit hook failures with user confirmation at each step. Reads hook output, classifies failures by category, spawns targeted subagents for complex fixes, and presents a structured report before re-committing. Reduces context waste from manual fix-commit-retry cycles. JASON-OS v0: Foundation-scoped to the gitleaks-only .husky/pre-commit scaffold; generic recipes (ESLint, Prettier, tsc, lint-staged) stay armed for when their triggers earn their place in the hook.

Core Features & Use Cases

  • Classify failures by category and spawn targeted subagents
  • Present a structured report before re-committing
  • Guardrails to prevent unintended changes and ensure changes are limited to staged/working files

Quick Start

Use the pre-commit-fixer when a git commit fails due to pre-commit hook errors to diagnose, classify, fix, and report before re-committing.

Frequently Asked Questions about pre-commit-fixer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix pre-commit hook failures automatically without altering unstaged files?

You can diagnose and fix pre-commit hook failures by having this Skill read the hook output, classify errors by category, and spawn targeted subagents for remediation. It enforces guardrails to ensure only staged or working-tree files are altered.

What causes pre-commit hook errors when running git commit?

Pre-commit hook errors happen when integrated checks like gitleaks, ESLint, Prettier, or tsc fail. This Skill diagnoses these failures by reading hook output and classifying errors to apply targeted fixes before re-committing.

Can I use this to diagnose gitleaks and lint-staged failures in Husky pre-commit hooks?

Yes, this Skill diagnoses failures in Husky pre-commit hooks. It is foundation-scoped to the gitleaks-only scaffold while keeping generic recipes like lint-staged, ESLint, Prettier, and tsc armed for when their triggers earn their place.

How do I prevent unintended changes when automating pre-commit hook fixes?

This Skill prevents unintended changes by enforcing guardrails that limit modifications to staged or working-tree files only. It also requires explicit user confirmation before attempting to re-commit the remediated code.

Why does my pre-commit fixer keep retrying failed commits and wasting context?

Manual fix-commit-retry cycles waste context. This Skill reduces context waste by reading hook output, classifying failures, spawning targeted subagents for complex fixes, and presenting a structured report before re-committing.

Does the pre-commit fixer remember my preferred report format?

Yes, this Skill remembers user preferences for report formats. After analyzing hook output and categorizing failures, it presents the structured remediation report according to your saved format preferences.