fix-precommit

Fix pre-commit hook failures and re-stage corrected files.

1|1|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/jadecli/researchers --skill fix-precommit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-precommit
Source: https://github.com/jadecli/researchers/tree/main/.claude/skills/fix-precommit
Command: npx skills add https://github.com/jadecli/researchers --skill fix-precommit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, and includes scripts (resource) components.

What problem does it solve?

The skill automates diagnosing and fixing pre-commit hook failures across multiple tools (ruff, tsc, eslint, vitest, pytest) and re-stages corrected files, simplifying the commit process.

Core Features & Use Cases

  • Automatic failures capture by running pre-commit and parsing output with scripts/parse-output.sh
  • Sequentially fix common hook failures: ruff, tsc, eslint, vitest, and pytest, reducing manual debugging
  • Re-stage changed files to ensure clean, ready-to-push commits
  • Adaptable workflow that can be extended to additional hooks as needed

Quick Start

Run pre-commit on a failing repository and let the tool automatically fix and re-stage changes.

Frequently Asked Questions about fix-precommit

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

FAQPage Schema
How do I automatically fix pre-commit hook failures and re-stage files?

To automatically fix pre-commit hook failures and re-stage files, run the tool to parse hook output and apply sequential fixes to corrected files. It diagnoses failures and re-stages changes to ensure clean, ready-to-push commits.

Can I automate ruff, tsc, eslint, vitest, and pytest fixes during pre-commit?

Yes, you can automate ruff, tsc, eslint, vitest, and pytest fixes during pre-commit. The tool sequentially inspects error output from these hooks and applies appropriate automated remediations to the codebase.

Do I need jq installed to fix pre-commit hook failures automatically?

Yes, you need jq installed to fix pre-commit hook failures automatically. The tool relies on jq for structured JSON reporting and utilizes the parse-output.sh utility to safely inspect and audit automated remediation actions.

What's the best way to handle pre-commit lint errors without manually debugging code?

The best way to handle pre-commit lint errors without manual debugging is using an automated remediation tool. It captures failures, sequentially applies fixes to the codebase, and re-stages changed files for a clean commit.

Can I extend the pre-commit auto-fix workflow to support additional hooks?

Yes, you can extend the pre-commit auto-fix workflow to support additional hooks. The tool features an adaptable workflow designed to sequentially fix common hook failures and can be expanded as needed.

Why does my pre-commit auto-fix process need to re-stage corrected files?

Your pre-commit auto-fix process needs to re-stage corrected files to ensure clean, ready-to-push commits. After applying fixes to the codebase, re-staging includes the corrected changes in the original commit attempt.