willyu1007/template-skill-addon/implement-frontend-routing

Claude Code and agent skill by willyu1007/template-skill-addon

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Implement frontend routing with predictable route definitions, lazy loading, nested layouts, and error/404 handling.

Install

npx vskill@latest install willyu1007/template-skill-addon/implement-frontend-routing

SKILL.md

The same SKILL.md was published earlier as willyu1007/template-skill-addon/implement-frontend-routing.

Implement Frontend Routing

Purpose

Standardize client-side routing so navigation, code-splitting, and error states are predictable and maintainable.

When to use

Use this skill when you are:

  • Adding new pages or routes
  • Introducing lazy loading / code splitting
  • Implementing nested routes and layouts
  • Adding route guards (auth, permissions)
  • Debugging routing issues (404s, broken links, chunk loading errors)

Inputs

  • Route list and URL structure
  • Authentication/authorization requirements
  • Layout and navigation expectations
  • Router library and conventions used by the codebase

Outputs

  • Route definitions (paths, components, metadata)
  • Lazy-loading strategy (what to split and where)
  • Error/404 handling plan

Rules

  • Routes MUST have a single source of truth (central config or feature routes, not both without a clear rule).
  • Route guards MUST be explicit and testable.
  • Lazy loading SHOULD be used for large feature routes to reduce initial bundle size.
  • The app MUST have a 404/not-found route.

Steps

  1. Add a route entry:
  • path
  • component
  • optional metadata (title, required roles)
  1. Decide if the route should be lazy-loaded.
  2. Add a guard if access is restricted.
  3. Ensure there is a not-found fallback.
  4. Verify:
  • navigation works
  • direct URL entry works
  • lazy chunk loads successfully
  • unauthorized access is handled gracefully

Verification

  • [ ] Navigation between routes works
  • [ ] Direct URL entry loads the correct page
  • [ ] Lazy-loaded chunks load successfully
  • [ ] 404/not-found route renders for unknown paths
  • [ ] Protected routes redirect unauthenticated users appropriately
  • [ ] Route guards block unauthorized access

Boundaries

  • MUST NOT define routes in multiple places without a clear consolidation rule
  • MUST NOT skip 404 handling
  • MUST NOT lazy-load critical above-the-fold routes
  • SHOULD NOT create deeply nested route structures without clear navigation
  • SHOULD NOT hardcode URLs (use route constants or helpers)
  • SHOULD NOT skip chunk loading error handling for lazy routes

Included assets

  • Templates: ./templates/ includes lazy route scaffolds.
  • Examples: ./examples/ includes route configuration patterns.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/willyu1007/template-skill-addon/implement-frontend-routing/badge)](https://verified-skill.com/skills/willyu1007/template-skill-addon/implement-frontend-routing)

Something wrong with this skill or its page? Tell us.