1. Habit
  2. Skills
  3. Fix Bug skill
remix-run · 102 installs

Fix Bug skill
Runs by itself, you pass an issue.

Fix reported bugs with tests.

Install the Fix Bug skill and make it a habit: follow https://gethabit.dev/skills/remix-run/fix-bug.md

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

102 installs57K starsMIT licenceSource on GitHub ↗

Fix Bug

by remix-run · 102 installs

The skill

The fix bug skill takes a React Router GitHub issue and works through it: reads the issue, checks the reproduction, writes a failing test, makes a minimal fix, runs tests, lint and typecheck, and prepares a PR.

Only when you ask.

The habit

Fix reported bugs with tests.

↻ Runs by itselfyou pass an issue

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 issue and at most two fix attempts per run.

  1. 01

    Check clean tree

    Your agent asks you to resolve local changes, then branches from main.

  2. 02

    Read the issue

    It reads the issue with gh issue view and notes version and mode.

  3. 03

    Validate reproduction

    It reads the linked sandbox or repo, or asks you for a reproduction.

  4. 04

    Write failing test

    It adds a Jest unit test or a Playwright integration test that fails.

  5. 05

    Implement the fix

    It makes the smallest change that fixes the root cause.

  6. 06

    Run all checks

    It runs the test, the package suite, pnpm lint and pnpm typecheck.

  7. 07

    Add change file

    It writes a patch, minor, major or unstable change file.

  8. 08

    Review then PR

    You review; only after your approval does it commit and open a PR to main.

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 Bug skill helps.

Use it when

  • ✓ You have a React Router bug issue
  • ✓ You need a failing test first
  • ✓ You prepare a fix PR

Skip it when

  • – You work outside the React Router repo
  • – The issue is a feature request

Questions

Fix Bug skill, answered.

What if the issue has no reproduction?

The agent checks the comments, then asks you for a minimal reproduction.

Will it open a PR by itself?

No. It reports first and opens the PR only after you approve.

How do I install the Fix Bug skill?

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

Is the Fix Bug skill free?

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

Fix Bug. Now as a habit.

Install the Fix Bug skill and make it a habit: follow https://gethabit.dev/skills/remix-run/fix-bug.md

  • Free
  • No account
  • Undo in one line

All remix-run skills →More code skills →

Works in

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

Made by remix-run, 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.