fix-bug — community fix-bug, react-router, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Code Analysis Agents needing advanced React Router debugging capabilities. Declarative routing for React

remix-run remix-run
[56.3k]
[10842]
Updated: 3/24/2026

Agent Capability Analysis

The fix-bug skill by remix-run is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Code Analysis Agents needing advanced React Router debugging capabilities.

Core Value

Empowers agents to resolve declarative routing issues in React applications using GitHub issue analysis, WebFetch, and Jest testing, while ensuring compatibility with various React Router modes and versions.

Capabilities Granted for fix-bug

Debugging React Router bugs reported on GitHub
Validating reproduction sequences for StackBlitz and CodeSandbox links
Generating failing tests for React Router core logic and components

! Prerequisites & Limits

  • Requires access to GitHub issue data
  • Limited to React Router version 6 and above
  • Needs pnpm and Jest for testing
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

fix-bug

Install fix-bug, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Fix React Router Bug

Fix the bug reported in the following GitHub issue: $ARGUMENTS

Branching

Bug fixes should start from a clean working tree. If there are changes, prompt me to resolve them before continuing.

Bugs should be fixed from the dev branch in in a new branch using the format {author}/{semantic-branch-name} (i.e., brophdawg11/fix-navigation):

sh
1git branch {author}/{semantic-branch-name} dev 2git checkout {author}/{semantic-branch-name}

Workflow

1. Fetch and Understand the Issue

Use gh issue view <number> --repo remix-run/react-router or WebFetch to read the full issue.

Extract:

  • Bug description and expected vs actual behavior
  • React Router version and mode (Declarative / Data / Framework / RSC)
  • Any code snippets in the issue
  • Links to reproductions (StackBlitz, CodeSandbox, GitHub repo, etc.)

2. Validate the Reproduction

If there's a StackBlitz/CodeSandbox/online sandbox link:

  • Use WebFetch to read the sandbox URL and extract the relevant code
  • Identify the exact sequence of events that triggers the bug

If there's a GitHub repository link:

  • Use WebFetch to read key files (package.json, relevant source files) from the raw GitHub URL
  • Identify the route configuration, loaders, actions, or components involved

If no reproduction link exists:

  • Search the issue comments with gh issue view <number> --repo remix-run/react-router --comments
  • Look for code snippets in comments
  • Ask the user: "No reproduction was provided. Can you share a minimal reproduction or paste the relevant code?"

3. Identify the Affected Code

Based on the bug, locate the relevant source files. Consult the key file map:

AreaFiles
Core router logicpackages/react-router/lib/router/router.ts
React components/hookspackages/react-router/lib/components.tsx, lib/hooks.tsx
DOM utilitiespackages/react-router/lib/dom/
Vite/Framework pluginpackages/react-router-dev/vite/plugin.ts
RSCpackages/react-router/lib/rsc/

Use Grep and Glob to trace the relevant code paths.

4. Write a Failing Test

Unit test (for router logic, hooks, pure component behavior — no build needed):

  • Location: packages/react-router/__tests__/
  • Use Jest; run with: pnpm test packages/react-router/__tests__/<file>
  • Match the style of nearby test files (describe/it blocks, createStaticHandler, createMemoryRouter, render, screen, etc.)

Integration test (for Vite plugin, SSR, hydration, Framework Mode):

  • Location: integration/
  • Use Playwright with createFixture()createAppFixture()PlaywrightFixture
  • Run with: pnpm test:integration:run --project chromium integration/<file>
  • Build first if needed: pnpm test:integration --project chromium

Write the test to reproduce the bug exactly — it must fail before the fix.

Run it and confirm it fails:

bash
1pnpm test packages/react-router/__tests__/<file> # unit 2# or 3pnpm test:integration:run --project chromium integration/<file> # integration

5. Implement the Fix

  • Make the minimal change needed to fix the bug
  • Do not refactor unrelated code
  • Confirm the fix addresses the root cause, not just the symptom
  • Consider all five modes: does this fix break anything in Declarative / Data / Framework / RSC?

Run the failing test again — it must now pass:

bash
1pnpm test packages/react-router/__tests__/<file>

Run the broader test suite to check for regressions:

bash
1pnpm test packages/react-router/

If the fix touches Framework/Vite code, run integration tests too:

bash
1pnpm test:integration:run --project chromium

Confirm linting and typechecking pass:

bash
1pnpm lint 2pnpm typecheck

6. Create a Changeset

Create .changeset/<descriptive-name>.md:

markdown
1--- 2"react-router": patch 3--- 4 5fix: <brief description of what was fixed>

Use patch for bug fixes. Only include packages in the frontmatter that were actually changed.

7. Report Results

Summarize:

  • What the bug was and why it happened
  • What code was changed and why
  • That the test now passes
  • Any edge cases or related issues noticed

Ask me to review the changes and iterate based on any feedback.

8. Open PR

Once I approve the fix, commit the changes and open a PR to dev. Include a Closes #NNNN in the description to link the PR to the original issue. Also link the issue in the Development sidebar

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is fix-bug?

Perfect for Code Analysis Agents needing advanced React Router debugging capabilities. Declarative routing for React

How do I install fix-bug?

Run the command: npx killer-skills add remix-run/react-router/fix-bug. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for fix-bug?

Key use cases include: Debugging React Router bugs reported on GitHub, Validating reproduction sequences for StackBlitz and CodeSandbox links, Generating failing tests for React Router core logic and components.

Which IDEs are compatible with fix-bug?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for fix-bug?

Requires access to GitHub issue data. Limited to React Router version 6 and above. Needs pnpm and Jest for testing.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add remix-run/react-router/fix-bug. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use fix-bug immediately in the current project.

Related Skills

Looking for an alternative to fix-bug or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI