nylo-routing

A routing guide for Nylo v7 Flutter apps. Routing defines which page appears for a URL and how users move between pages, including protected pages, tabs, and onboarding journeys.

In plain words
What is it for?
Use it to define routes, choose the starting page, navigate or go back, pass data and URL parameters, add sign-in or role checks, create deep links, configure transitions, and build tab or onboarding navigation.
Why use it?
It keeps page navigation and access rules in one routing setup. This helps avoid scattered navigation code and makes links, parameters, transitions, and protected areas easier to manage.

Skill for Claude CodeCodex

Part of the nylo-claude-code plugin — 21 skills, 3 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/nylo-core/claude-code/nylo-routing
Any agent
npx skills add nylo-core/claude-code --skill nylo-routing
Clone the repo
git clone --depth 1 https://github.com/nylo-core/claude-code

Made for: Claude Code, Codex.

Or install nylo-claude-code, the plugin that ships this one along with the rest of its 21 skills, 3 agents.

Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,502 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00054 $0.03502
Opus 5 $0.00027 $0.01751
Sonnet 5 $0.00011 $0.00700
Haiku 4.5 $0.00005 $0.00350

Measured 2d ago against content hash 7d15ecce42ea, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

nylo-routing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/nylo-routing/SKILL.md · 547 lines

How it starts

The opening of the file, as written. The whole thing — 547 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Nylo Routing

Overview

Nylo v7 routing is defined in lib/routes/router.dart using nyRoutes(). Routes map URL paths to page widgets, support guards for access control, and integrate with NavigationHub for tab-based and journey navigation layouts.

When to Use

  • Defining or modifying app routes
  • Navigating between pages (push, replace, pop)
  • Passing data, query parameters, or path parameters between pages
  • Protecting routes with guards (auth, roles, subscriptions)
  • Setting up bottom navigation, top tabs, or onboarding journeys
  • Configuring page transition animations
  • Implementing deep linking
  • When NOT to use: For state management within a single page, use NyState/NyPage instead

Quick Reference

Action Code
Define route router.add(MyPage.path)
Set initial route router.add(MyPage.path).initialRoute()
Navigate to page routeTo(MyPage.path)
Navigate with data routeTo(MyPage.path, data: {"key": "val"})
Navigate with query params routeTo(MyPage.path, queryParameters: {"tab": "1"})
Navigate with path params routeTo(MyPage.path.withParams({"id": 7}))
Go back pop()
Go back with result pop(result: {"status": "done"})
Replace current route routeTo(MyPage.path, navigationType: NavigationType.pushReplace)
Clear stack and navigate routeTo(MyPage.path, navigationType: NavigationType.pushAndForgetAll)
Navigate to initial route routeToInitial()
Navigate to auth route routeToAuthenticatedRoute()
Add route guard router.add(MyPage.path, routeGuards: [MyGuard()])
Create page (CLI) metro make:page profile_page
Create guard (CLI) metro make:route_guard auth
Create nav hub (CLI) metro make:navigation_hub base

Route Definitions

Routes live in lib/routes/router.dart:

appRouter() => nyRoutes((router) {
  router.add(HomePage.path).initialRoute();
  router.add(ProfilePage.path);
  router.add(SettingsPage.path);
});

Read the full file on GitHub · 547 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 547 lines · 54 tokens per session scan A 7d15ecce42ea

Subscribe to this mod's changes

nylo-routing is a skill published in the GitHub repository nylo-core/claude-code (4 stars, last pushed 4mo ago), licensed MIT. It adds 54 tokens to every session and 3,502 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories