1. Habit
  2. Skills
  3. Fix skill
react · 243K installs

Fix skill
Runs by itself, before each commit.

Commits that pass lint checks.

Install the Fix skill and make it a habit: follow https://gethabit.dev/skills/react/fix.md

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

243K installs252K starsMIT licenceSource on GitHub ↗

Fix

by react · 243K installs

The skill

The fix skill has your agent run yarn prettier and yarn linc before a commit and report lint errors that need manual work.

Only when you ask.

The habit

Commits that pass lint checks.

↻ Runs by itselfbefore each commit

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after one format and lint pass per commit, plus one retry.

  1. 01

    Format

    Run yarn prettier, which formats only the changed files.

  2. 02

    Lint

    Run yarn linc to find lint issues that remain.

  3. 03

    Report manual fixes

    List every remaining issue that needs a manual fix and log it.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the Fix skill helps.

Use it when

  • ✓ you are about to commit
  • ✓ you have lint errors
  • ✓ formatting looks off

Skip it when

  • – the repo has no yarn linc script
  • – you are not changing code

Questions

Fix skill, answered.

Does prettier touch the whole repo?

No. In this setup yarn prettier formats only changed files.

What if linc still fails?

The loop lists the errors for you. The skill warns that these fail CI.

Does this work outside the React repo?

Only where yarn prettier and yarn linc exist as scripts.

How do I install the Fix skill?

Copy the prompt at the top into your agent. It installs the skill from react/react and sets up the habit. Or run npx skills add react/react --skill fix.

Is the Fix skill free?

Yes. It is published under MIT. Habit is free too.

Fix. Now as a habit.

Install the Fix skill and make it a habit: follow https://gethabit.dev/skills/react/fix.md

  • Free
  • No account
  • Undo in one line

All react skills →More code skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by react, published under MIT. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.