# Willyu1007 AI First Template Routing Guide

> Routing Guide

- Skill: `tomevault-io/willyu1007-ai-first-template-routing-guide` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/willyu1007-ai-first-template-routing-guide`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/willyu1007-ai-first-template-routing-guide/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/willyu1007-ai-first-template-routing-guide

---


# Routing Guide

This skill provides routing patterns for frontend applications.

---

## 1. Principles

- Keep routing structure predictable and discoverable.
- Lazy-load route-level components when they are heavy.
- Keep route params validated and typed where possible.

---

## 2. Nested routing (common pattern)

- Prefer nested routes for step-by-step flows and detail pages.
- Keep shared layout components at a parent route level to avoid remount churn.

---

## 3. Links and navigation

- Prefer declarative navigation (`<Link>` components) over imperative navigation when possible.
- Ensure active states and breadcrumbs are consistent (if used).

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/willyu1007) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-15 -->

