react-router-sibling-route-conflict

Community

Fix react-router v6/v7 sibling route shadowing bugs.

Authorfreedomw1987
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill resolves the common, silent react-router v6/v7 bug where two sibling routes with overlapping paths (such as a top-level /settings route and a /settings/* layout route) cause route shadowing. This leads to blank layout outlets or incorrect page rendering even when TypeScript compiles with zero errors, making the issue hard to detect without manual browser testing.

Core Features & Use Cases

  • Diagnoses the root cause of sibling route shadowing between overlapping path declarations in react-router v6/v7 configurations.
  • Provides 3 proven fix patterns (nested layout with index route, legacy route redirect, order-dependent sibling, or full path renaming) tailored to different refactor constraints and legacy link preservation needs.
  • Includes mandatory browser smoke test steps to verify fixes, avoiding false positives from passing TypeScript checks alone.
  • Common use case: When upgrading a legacy react-router v5 application to v6/v7, use this skill to fix broken settings routes that show blank layouts after adding new settings subpages.

Quick Start

Use the react-router-sibling-route-conflict skill to diagnose and fix the blank layout issue on your /settings route after adding a /settings/users subroute.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: react-router-sibling-route-conflict
Download link: https://github.com/freedomw1987/tree_monstor/archive/main.zip#react-router-sibling-route-conflict

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.