Skip to content

Client-side routing for React, Vue, and Angular apps with lazy loading and route protection.

CCM score
37 of 100
skills.sh installs
457
GitHub stars
396
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers navigation, URL-based state, guarded routes, lazy-loaded components, and query parameter handling across three frameworks
  • Includes a React Router v6 quick start with a ProtectedRoute wrapper and lazy-loaded pages, plus Vue Router 4 and Angular Routing guides
  • Adds reference guides for query parameter handling and route transition effects
  • Designed for multi-page single-page applications that need navigation and access control

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill frontend-routing -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Frontend Routing

Table of Contents

Overview

Implement client-side routing with navigation, lazy loading, protected routes, and state management for multi-page single-page applications.

When to Use

  • Multi-page navigation
  • URL-based state management
  • Protected/guarded routes
  • Lazy loading of components
  • Query parameter handling

Quick Start

Minimal working example:

// App.tsx
import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom';
import { Layout } from './components/Layout';
import { Home } from './pages/Home';
import { NotFound } from './pages/NotFound';
import { useAuth } from './hooks/useAuth';
import React from 'react';

// Lazy loaded components
const Dashboard = React.lazy(() => import('./pages/Dashboard'));
const UserProfile = React.lazy(() => import('./pages/UserProfile'));
const Settings = React.lazy(() => import('./pages/Settings'));

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Category
Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the frontend-routing skill do?

frontend-routing gives an agent the patterns for client-side routing with React Router, Vue Router, and Angular Router. It covers navigation, lazy loading of components, protected routes, and query parameter handling for multi-page applications.

When should I use the frontend-routing skill?

Use frontend-routing when building a multi-page single-page application that needs URL-based state, navigation between pages, or guarded routes. Its listing says it fits projects that need route protection and lazy-loaded components.

How do I install the frontend-routing skill?

Run npx -y skills add aj-geddes/useful-ai-prompts --skill frontend-routing -y in your project. After that, frontend-routing lets the agent write routing code for React Router, Vue Router, or Angular Router.

Where does frontend-routing stand in the Frontend and UI Code category?

frontend-routing sits in the Frontend and UI Code category, next to vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns, and lark-apps. Its own focus is routing across three frameworks, with reference guides for each router and for transitions between routes.

More from aj-geddes/useful-ai-prompts

All 258

Similar to Frontend Routing

More Frontend & UI Code