fix

Fix lint errors and formatting in JavaScript/TypeScript projects before commit.

5|10|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/chaitin/MonkeyCodeOfficialPlugins --skill fix-chaitin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix
Source: https://github.com/chaitin/MonkeyCodeOfficialPlugins/tree/main/skills/react-code-fix-linter
Command: npx skills add https://github.com/chaitin/MonkeyCodeOfficialPlugins --skill fix-chaitin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Fix lint errors and formatting issues before committing code to ensure it passes CI.

Core Features & Use Cases

  • Automatically formats changed files using Prettier to enforce consistent styling.
  • Runs lint checks (linc) and reports remaining issues, guiding manual fixes before commit.
  • Ensures CI success by reducing formatting and lint failures in the codebase.

Quick Start

Run the fix skill to automatically format changed files and resolve lint issues before committing.

Frequently Asked Questions about fix

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

FAQPage Schema
How do I auto-fix lint and formatting errors before committing JavaScript code?

To auto-fix lint and formatting before committing, you can run a fix skill that executes yarn prettier to format changed files and yarn linc to report remaining issues. This resolves styling locally to ensure CI success.

Why does my CI pipeline fail due to Prettier formatting checks?

CI pipeline formatting checks fail when committed code violates Prettier styling rules. You can prevent this by running an auto-fix process locally that formats changed files with Prettier before pushing, ensuring the codebase meets CI standards.

Can I use this auto-fix approach for TypeScript projects as well as JavaScript?

Yes, this auto-fix approach applies to both JavaScript and TypeScript projects. It runs Prettier to enforce consistent styling and executes lint checks to guide necessary manual fixes before you commit code to pass CI.

What is the best way to ensure code passes precommit lint and formatting checks?

The best way to pass precommit checks is to run an automated fix process that formats changed files with Prettier and runs linc to identify remaining lint errors. This allows you to resolve issues locally before triggering CI.

Does running Prettier automatically resolve all lint issues in my codebase?

Running Prettier automatically resolves formatting issues but does not fix all lint issues. After Prettier formats the files, a lint check runs to report remaining errors that require manual fixes before you commit your code.

How do I handle remaining lint errors after auto-formatting my code?

After auto-formatting your code, you handle remaining lint errors by reviewing the reported issues from the linc check. The auto-fix process reports these specific errors to guide your manual fixes before committing to ensure CI passes.