go-router-navigation

Define go_router navigation patterns with auth guards in Flutter apps.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/code-sinobi/hoya-time-travel --skill go-router-navigation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-router-navigation
Source: https://github.com/code-sinobi/hoya-time-travel/tree/main/.agent/skills/go-router-navigation
Command: npx skills add https://github.com/code-sinobi/hoya-time-travel --skill go-router-navigation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

In Flutter apps, routing often becomes scattered and inconsistent; this Skill defines a centralized go_router-based approach to routing to improve consistency and maintainability.

Core Features & Use Cases

  • Standardizes route definitions using go_router for named and declarative navigation.
  • Provides guidance on auth-aware routing, redirects, and protecting routes.
  • Helps teams avoid direct use of Navigator for route changes and promotes provider-driven auth state checks.

Quick Start

Configure go_router routes and auth guards in your Flutter app to establish navigation.

Frequently Asked Questions about go-router-navigation

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

FAQPage Schema
How do I set up go_router named routes and auth guards in Flutter?

To set up go_router named routes and auth guards in Flutter, define a centralized routing configuration that standardizes route definitions and implements provider-driven auth state checks to redirect unauthenticated users. This approach avoids direct Navigator use and enforces declarative navigation patterns.

What is the best way to redirect unauthenticated users with go_router?

The best way to redirect unauthenticated users with go_router is by applying provider-driven auth state checks within your centralized route definitions. This auth-aware routing mechanism intercepts navigation attempts and securely redirects users away from protected routes.

How does declarative navigation improve Flutter app routing consistency?

Declarative navigation improves Flutter app routing consistency by replacing scattered direct Navigator calls with a centralized go_router configuration. This establishes a standardized, maintainable structure for adding routes and navigating between features.

Can I use provider-driven auth state to protect specific routes in Flutter?

Yes, you can use provider-driven auth state to protect specific routes in Flutter by configuring auth guards within your go_router setup. This mechanism validates authentication status during navigation and automatically redirects unauthorized users from secure features.

Why should I avoid direct Navigator use for route changes in Flutter apps?

You should avoid direct Navigator use for route changes in Flutter apps because it leads to scattered and inconsistent routing. Implementing a centralized go_router approach enforces declarative navigation, standardizes named routes, and simplifies auth guard maintenance.