react-routing

Detect routing libraries in React projects and apply compatible routing patterns.

9|1|Updated Jun 16, 2026
One-click install
npx skills add https://github.com/AratKruglik/antigravity-sdlc --skill react-routing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-routing
Source: https://github.com/AratKruglik/antigravity-sdlc/tree/main/plugins/react-plugin/skills/react-routing
Command: npx skills add https://github.com/AratKruglik/antigravity-sdlc --skill react-routing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React SPAs require consistent, scalable routing configurations across different libraries. This Skill guides you to detect the installed routing solution and apply suitable patterns without rewriting app logic.

Core Features & Use Cases

  • Detects React Router, TanStack Router, or wouter and selects compatible APIs.
  • Supports declarative routes, file-based routing, lazy loading, and navigation guards.
  • Enforces type-safe params and robust guards for protected routes in real apps.

Quick Start

Detect the routing library in your project and apply the recommended routing patterns for your setup.

Frequently Asked Questions about react-routing

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

FAQPage Schema
How do I set up routing in a React SPA using React Router or TanStack Router?

React SPA routing setup involves detecting the installed routing library and applying compatible declarative or file-based patterns. This Skill validates dependency checks and provides API usage guidance to ensure correct navigation hooks and lazy loading configuration.

What's the best way to implement protected routes with type-safe params in React?

Protected routes with type-safe params in React require robust navigation guards and parameter validation. This Skill applies appropriate routing patterns to enforce access control and type safety across typical SPA scenarios without rewriting existing application logic.

Does this routing approach work with wouter or only React Router and TanStack Router?

The routing approach works with wouter, React Router, and TanStack Router by detecting the installed solution and selecting compatible APIs. It ensures pattern compatibility across these libraries through dependency checks and API validation.

How do I add lazy loading and file-based routing to a React single page application?

Lazy loading and file-based routing in a React SPA are applied by selecting appropriate patterns based on the detected routing library. This Skill guides declarative route configuration, code splitting, and navigation hook integration for scalable SPA architecture.

Can I switch routing libraries in my React project without rewriting app logic?

Switching routing libraries without rewriting app logic is possible by detecting the installed solution and applying suitable patterns. This Skill enforces dependency checks and validates API usage to maintain compatibility across React Router, TanStack Router, and wouter.